[all-commits] [llvm/llvm-project] 318ed9: [AIX][llvm][support] Implement getHostCPUName
David Tenty via All-commits
all-commits at lists.llvm.org
Tue Feb 9 13:30:37 PST 2021
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 318ed901448203284a103b488a37cd92fbc82447
https://github.com/llvm/llvm-project/commit/318ed901448203284a103b488a37cd92fbc82447
Author: David Tenty <daltenty at ibm.com>
Date: 2021-02-09 (Tue, 09 Feb 2021)
Changed paths:
M llvm/lib/Support/Host.cpp
M llvm/unittests/Support/Host.cpp
Log Message:
-----------
[AIX][llvm][support] Implement getHostCPUName
We implement getHostCPUName() for AIX via systemcfg interfaces since access to the processor version register is a privileged operation. We return a value based on the current processor implementation mode.
This fixes the cpu detection used by clang for `-mcpu=native`.
Reviewed By: hubert.reinterpretcast
Differential Revision: https://reviews.llvm.org/D95966
More information about the All-commits
mailing list