[compiler-rt] [compiler-rt] Add initial ARM64EC builtins support (PR #139279)

Martin Storsjö via llvm-commits llvm-commits at lists.llvm.org
Wed May 14 02:01:03 PDT 2025


================
@@ -10,9 +10,22 @@ extern void __enable_execute_stack(void* addr);
 
 typedef int (*pfunc)(void);
 
+#ifdef __x86_64__
+// On ARM64EC, we need the x86_64 version of this function, but the compiler
----------------
mstorsjo wrote:

Doing this for all of x86_64 seems a bit far-reaching; wouldn't it be cleaner to restrict this case to arm64ec? Then again, extending it to all of x86_64 does give it more coverage and exposure, but ideally I wouldn't be touching the behaviour for other architectures in a patch like this.

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


More information about the llvm-commits mailing list