Skip to content

Commit

Permalink
Update stacksave and stackrestore LLVM intrinsic hooks for LLVM 18.
Browse files Browse the repository at this point in the history
  • Loading branch information
neboat committed Jul 30, 2024
1 parent 5a30947 commit 458233b
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions cilksan/libhooks.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand All @@ -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)
Expand Down

0 comments on commit 458233b

Please sign in to comment.