[PATCH] D95966: [AIX][support] Implement getHostCPUName
David Tenty via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Feb 3 13:43:42 PST 2021
daltenty planned changes to this revision.
daltenty added inline comments.
================
Comment at: llvm/lib/Support/Host.cpp:1233
+ // We return a value base on the current processor implementation mode.
+ const char *ExePath = "/usr/sbin/getsystype";
+ ArrayRef<llvm::StringRef> argv = {ExePath, "-i"};
----------------
hubert.reinterpretcast wrote:
> I think the interfaces from `sys/systemcfg.h` can be used?
Thanks, I'll check those out! I was having some trouble finding a documented system interface to get the same functionality, would definitely be preferable if possible.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D95966/new/
https://reviews.llvm.org/D95966
More information about the llvm-commits
mailing list