From 458233bf301ee48c2d90e9e95e19e8fa58424624 Mon Sep 17 00:00:00 2001 From: TB Schardl Date: Fri, 5 Jul 2024 16:48:50 -0400 Subject: [PATCH] Update stacksave and stackrestore LLVM intrinsic hooks for LLVM 18. --- cilksan/libhooks.cpp | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/cilksan/libhooks.cpp b/cilksan/libhooks.cpp index 93da9eb..255fb6a 100644 --- a/cilksan/libhooks.cpp +++ b/cilksan/libhooks.cpp @@ -638,10 +638,10 @@ CILKSAN_API void __csan_llvm_clear_cache(const csi_id_t call_id, return; } -CILKSAN_API void __csan_llvm_stacksave(const csi_id_t call_id, - const csi_id_t func_id, - unsigned MAAP_count, - const call_prop_t prop, void *sp) { +CILKSAN_API void __csan_llvm_stacksave_p0(const csi_id_t call_id, + const csi_id_t func_id, + unsigned MAAP_count, + const call_prop_t prop, void *sp) { if (!CILKSAN_INITIALIZED) return; @@ -657,10 +657,10 @@ CILKSAN_API void __csan_llvm_stacksave(const csi_id_t call_id, CilkSanImpl.advance_stack_frame((uintptr_t)sp); } -CILKSAN_API void __csan_llvm_stackrestore(const csi_id_t call_id, - const csi_id_t func_id, - unsigned MAAP_count, - const call_prop_t prop, void *sp) { +CILKSAN_API void __csan_llvm_stackrestore_p0(const csi_id_t call_id, + const csi_id_t func_id, + unsigned MAAP_count, + const call_prop_t prop, void *sp) { START_HOOK(call_id); for (unsigned i = 0; i < MAAP_count; ++i)