[ASan][AMDGPU] Make shadow offset match X86 on Linux
authorReshabh Sharma <Reshabhkumar.Sharma@amd.com>
Fri, 9 Jul 2021 02:18:03 +0000 (07:48 +0530)
committerReshabh Sharma <Reshabhkumar.Sharma@amd.com>
Fri, 9 Jul 2021 02:18:03 +0000 (07:48 +0530)
commit2e194dec6076d06ccb40f50a1718e2250255a3dc
treed1337000b1ba617553cda067853e6ffa6f1dfb57
parented102ce20a5f5ddf388bc71217228b756e2f5fe3
[ASan][AMDGPU] Make shadow offset match X86 on Linux

This patch explicitly sets the shadow offset for
AMDGPU to match that of X86 on Linux.

Reviewed By: vitalybuka

https://reviews.llvm.org/D105282
llvm/lib/Transforms/Instrumentation/AddressSanitizer.cpp
llvm/test/Instrumentation/AddressSanitizer/AMDGPU/asan_instrument_constant_address_space.ll
llvm/test/Instrumentation/AddressSanitizer/AMDGPU/asan_instrument_generic_address_space.ll
llvm/test/Instrumentation/AddressSanitizer/AMDGPU/asan_instrument_global_address_space.ll