clang/test/CodeGenCUDA/Inputs/amdgpu-asanrtl.ll
raw| 1 | ; Sample code for amdgpu address sanitizer runtime. |
| 2 | |
| 3 | ; Note the runtime functions need to have weak linkage and default |
| 4 | ; visibility, otherwise they may be internalized and removed by GlobalOptPass. |
| 5 | |
| 6 | define weak void @__amdgpu_device_library_preserve_asan_functions() { |
| 7 | tail call void @__asan_report_load1(i64 0) |
| 8 | ret void |
| 9 | } |
| 10 | |
| 11 | define weak void @__asan_report_load1(i64 %0) { |
| 12 | ret void |
| 13 | } |