[SystemZ/ZOS] Implement computeHostNumPhysicalCores
authorKai Nacke <kai.nacke@de.ibm.com>
Tue, 28 Jul 2020 08:33:50 +0000 (10:33 +0200)
committerKai Nacke <kai@redstar.de>
Wed, 12 Aug 2020 12:31:33 +0000 (08:31 -0400)
commitbca1b8ed994336690db4775e67953aad533b0e31
treec5b057ce6f31d9dc2b386f7fbd7d623f8b99edb1
parentea8448e3618a1581b5eca39d39bedaa55fede75d
[SystemZ/ZOS] Implement computeHostNumPhysicalCores

On z/OS, the information is stored in the Common System Data Area
(CSD). It is the number of CPs allocated to the current LPAR.

Reviewers: aganea, hubert.reinterpertcast, MaskRay

Reviewed By: hubert.reinterpertcast

Differential Revision: https://reviews.llvm.org/D85531
llvm/lib/Support/Host.cpp
llvm/unittests/Support/Host.cpp