[llvm] [llvm-exegesis][AArch64] Adding PR_PAC_APIAKEY macro definition (PR #137888)
via llvm-commits
llvm-commits at lists.llvm.org
Tue Apr 29 15:26:34 PDT 2025
llvmbot wrote:
<!--LLVM PR SUMMARY COMMENT-->
@llvm/pr-subscribers-tools-llvm-exegesis
Author: Haowei (zeroomega)
<details>
<summary>Changes</summary>
In older Linux distros, PR_PAC_APIAKEY is not defined and it causes build failures on linux arm64 platform. This patch adds the definition of this macro if it is not defined.
---
Full diff: https://github.com/llvm/llvm-project/pull/137888.diff
1 Files Affected:
- (modified) llvm/tools/llvm-exegesis/lib/AArch64/Target.cpp (+3)
``````````diff
diff --git a/llvm/tools/llvm-exegesis/lib/AArch64/Target.cpp b/llvm/tools/llvm-exegesis/lib/AArch64/Target.cpp
index 6d8e19e5820c7..aa34522cd7b7d 100644
--- a/llvm/tools/llvm-exegesis/lib/AArch64/Target.cpp
+++ b/llvm/tools/llvm-exegesis/lib/AArch64/Target.cpp
@@ -18,6 +18,9 @@
#ifndef PR_PAC_GET_ENABLED_KEYS
#define PR_PAC_GET_ENABLED_KEYS 61
#endif
+#ifndef PR_PAC_APIAKEY
+#define PR_PAC_APIAKEY (1UL << 0)
+#endif
#endif
#define GET_AVAILABLE_OPCODE_CHECKER
``````````
</details>
https://github.com/llvm/llvm-project/pull/137888
More information about the llvm-commits
mailing list