[llvm] [llvm-exegesis][AArch64] Check for PAC keys before disabling them (PR #138643)

Anatoly Trosinenko via llvm-commits llvm-commits at lists.llvm.org
Mon May 12 11:11:09 PDT 2025


================
@@ -199,6 +200,12 @@ class ExegesisAArch64Target : public ExegesisTarget {
     PM.add(createAArch64ExpandPseudoPass());
   }
 
+  // Converts variadic arguments to `long` and passes zeros for the unused
+  // arg2-arg5, as tested by the Linux kernel.
+  static long prctl_wrapper(int op, long arg2 = 0, long arg3 = 0) {
+    return prctl(op, arg2, arg3, /*arg4=*/0L, /*arg5=*/0L);
+  }
----------------
atrosinenko wrote:

Please surround this in `#if ... #endif`, as otherwise compilation fails for non-AArch64 systems.

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


More information about the llvm-commits mailing list