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

Abhilash Majumder via llvm-commits llvm-commits at lists.llvm.org
Tue May 27 03:50:48 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);
+  }
----------------
abhilash1910 wrote:

Yes this is added in the newer revision, please help to review. Thanks

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


More information about the llvm-commits mailing list