[PATCH] D95966: [AIX][support] Implement getHostCPUName

Hubert Tong via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Feb 3 13:12:10 PST 2021


hubert.reinterpretcast 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"};
----------------
I think the interfaces from `sys/systemcfg.h` can be used?


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