Page MenuHomePhabricator

[ASAN] Emit AMDGPU intrinsics only for target triple AMDGPU
Needs ReviewPublic

Authored by pvellien on Jul 27 2022, 10:50 PM.

Details

Summary

The functions @llvm.amdgcn.is.private and @llvm.amdgcn.is.shared is emitted for all module which are instrumented regardless of target triple. This patch attempts to fix that behavior by emitting them only for AMDGPU target.

Diff Detail

Unit TestsFailed

TimeTest
1,370 msx64 debian > SanitizerCommon-asan-x86_64-Linux.SanitizerCommon-asan-x86_64-Linux::sanitizer_coverage_allowlist_ignorelist.cpp
Script: -- : 'RUN: at line 10'; DIR=/var/lib/buildkite-agent/builds/llvm-project/build/projects/compiler-rt/test/sanitizer_common/asan-x86_64-Linux/Output/sanitizer_coverage_allowlist_ignorelist.cpp.tmp_workdir
1,470 msx64 debian > SanitizerCommon-lsan-x86_64-Linux.SanitizerCommon-lsan-x86_64-Linux::sanitizer_coverage_allowlist_ignorelist.cpp
Script: -- : 'RUN: at line 10'; DIR=/var/lib/buildkite-agent/builds/llvm-project/build/projects/compiler-rt/test/sanitizer_common/lsan-x86_64-Linux/Output/sanitizer_coverage_allowlist_ignorelist.cpp.tmp_workdir
1,340 msx64 debian > SanitizerCommon-msan-x86_64-Linux.SanitizerCommon-msan-x86_64-Linux::sanitizer_coverage_allowlist_ignorelist.cpp
Script: -- : 'RUN: at line 10'; DIR=/var/lib/buildkite-agent/builds/llvm-project/build/projects/compiler-rt/test/sanitizer_common/msan-x86_64-Linux/Output/sanitizer_coverage_allowlist_ignorelist.cpp.tmp_workdir

Event Timeline

pvellien created this revision.Jul 27 2022, 10:50 PM
Herald added a project: Restricted Project. · View Herald TranscriptJul 27 2022, 10:50 PM
pvellien requested review of this revision.Jul 27 2022, 10:50 PM
Herald added a project: Restricted Project. · View Herald TranscriptJul 27 2022, 10:50 PM
pvellien retitled this revision from Emit AMDGPU intrinsics only for target triple AMDGPU to [ASAN] Emit AMDGPU intrinsics only for target triple AMDGPU.Jul 27 2022, 10:50 PM
pvellien updated this revision to Diff 449189.Aug 1 2022, 11:09 PM

Retry build.