Skip to content

Commit

Permalink
[cilksan] Add hook for AArch64 hint intrinsic.
Browse files Browse the repository at this point in the history
  • Loading branch information
neboat committed Aug 29, 2022
1 parent 0928dd4 commit 7bc8054
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions cilksan/libhooks.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -338,6 +338,23 @@ CILKSAN_API void __csan_llvm_x86_sse2_pause(const csi_id_t call_id,
return;
}

CILKSAN_API void __csan_llvm_aarch64_hint(const csi_id_t call_id,
const csi_id_t func_id,
unsigned MAAP_count,
const call_prop_t prop, int32_t arg) {
switch (arg) {
case 1: { // yield instruction
// Nothing to do to check a yield instruction.
return;
}
default: {
// Unknown hint. Call the default libhook.
__csan_default_libhook(call_id, func_id, MAAP_count);
return;
}
}
}

CILKSAN_API void __csan_llvm_stacksave(const csi_id_t call_id,
const csi_id_t func_id,
unsigned MAAP_count,
Expand Down

0 comments on commit 7bc8054

Please sign in to comment.