Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[cilksan] Update llvm.va.start and llvm.va.end hooks for LLVM 19. Ad… #54

Merged
merged 1 commit into from
Feb 4, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
33 changes: 26 additions & 7 deletions cilksan/libhooks.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -750,10 +750,10 @@ CILKSAN_API void __csan_llvm_trap(const csi_id_t call_id,
MAAPs.pop();
}

CILKSAN_API void __csan_llvm_va_start(const csi_id_t call_id,
const csi_id_t func_id,
unsigned MAAP_count,
const call_prop_t prop, va_list ap) {
CILKSAN_API void __csan_llvm_va_start_p0(const csi_id_t call_id,
const csi_id_t func_id,
unsigned MAAP_count,
const call_prop_t prop, va_list ap) {
if (!CILKSAN_INITIALIZED)
return;

Expand All @@ -764,9 +764,10 @@ CILKSAN_API void __csan_llvm_va_start(const csi_id_t call_id,
MAAPs.pop();
}

CILKSAN_API void __csan_llvm_va_end(const csi_id_t call_id,
const csi_id_t func_id, unsigned MAAP_count,
const call_prop_t prop, va_list ap) {
CILKSAN_API void __csan_llvm_va_end_p0(const csi_id_t call_id,
const csi_id_t func_id,
unsigned MAAP_count,
const call_prop_t prop, va_list ap) {
if (!CILKSAN_INITIALIZED)
return;

Expand Down Expand Up @@ -1312,6 +1313,24 @@ CILKSAN_API void __csan_lldiv(const csi_id_t call_id, const csi_id_t func_id,
return;
}

CILKSAN_API void __csan_erff(const csi_id_t call_id, const csi_id_t func_id,
unsigned MAAP_count, const call_prop_t prop,
float result, float arg) {
return;
}

CILKSAN_API void __csan_erf(const csi_id_t call_id, const csi_id_t func_id,
unsigned MAAP_count, const call_prop_t prop,
double result, double arg) {
return;
}

CILKSAN_API void __csan_erfl(const csi_id_t call_id, const csi_id_t func_id,
unsigned MAAP_count, const call_prop_t prop,
long double result, long double arg) {
return;
}

CILKSAN_API void __csan_execl(const csi_id_t call_id, const csi_id_t func_id,
unsigned MAAP_count, const call_prop_t prop,
int result, const char *filename, const char *arg,
Expand Down
Loading