[llvm] 2e9cbb6 - [AMDGPU] Add LLVMInstrumnetation to link with AMDGPUCodeGen. (#106039)

via llvm-commits llvm-commits at lists.llvm.org
Sun Aug 25 23:45:47 PDT 2024


Author: Chaitanya
Date: 2024-08-26T12:15:42+05:30
New Revision: 2e9cbb63d6a0c32e650cf76467b25235250c1472

URL: https://github.com/llvm/llvm-project/commit/2e9cbb63d6a0c32e650cf76467b25235250c1472
DIFF: https://github.com/llvm/llvm-project/commit/2e9cbb63d6a0c32e650cf76467b25235250c1472.diff

LOG: [AMDGPU] Add LLVMInstrumnetation to link with AMDGPUCodeGen. (#106039)

Fixes linking error in llvm CI: 
"AMDGPUSwLowerLDS::run()':

AMDGPUSwLowerLDS.cpp:(.text._ZN12_GLOBAL__N_116AMDGPUSwLowerLDS3runEv+0x164):
undefined reference to `llvm::getAddressSanitizerParams(llvm::Triple
const&, int, bool, unsigned long*, int*, bool*)'"

#87265 amdgpu-sw-lower-lds pass uses getAddressSanitizerParams method
from AddressSanitizer pass. It misses linking of LLVMInstrumentation to
AMDGPUCodegen. This PR adds it.

Added: 
    

Modified: 
    llvm/lib/Target/AMDGPU/CMakeLists.txt

Removed: 
    


################################################################################
diff  --git a/llvm/lib/Target/AMDGPU/CMakeLists.txt b/llvm/lib/Target/AMDGPU/CMakeLists.txt
index e7aa97bb1e5282..e813653158e5d9 100644
--- a/llvm/lib/Target/AMDGPU/CMakeLists.txt
+++ b/llvm/lib/Target/AMDGPU/CMakeLists.txt
@@ -187,6 +187,7 @@ add_llvm_target(AMDGPUCodeGen
   HipStdPar
   IPO
   IRPrinter
+  Instrumentation
   MC
   MIRParser
   Passes


        


More information about the llvm-commits mailing list