[clang] [llvm] [clang][AArch64] Add getHostCPUFeatures to query for enabled features in cpu info (PR #97749)

Elvina Yakubova via cfe-commits cfe-commits at lists.llvm.org
Mon Oct 28 09:19:27 PDT 2024


================
@@ -70,6 +70,10 @@ static std::unique_ptr<llvm::MemoryBuffer>
     LLVM_ATTRIBUTE_UNUSED getProcCpuinfoContent() {
   llvm::ErrorOr<std::unique_ptr<llvm::MemoryBuffer>> Text =
       llvm::MemoryBuffer::getFileAsStream("/proc/cpuinfo");
+  if (const char *cpuinfoIntercept = std::getenv("LLVM_CPUINFO")) {
----------------
ElvinaYakubova wrote:

Thanks, changed that

https://github.com/llvm/llvm-project/pull/97749


More information about the cfe-commits mailing list