[llvm] [AMDGPU] Add LLVMInstrumnetation to link with AMDGPUCodeGen. (PR #106039)
via llvm-commits
llvm-commits at lists.llvm.org
Sun Aug 25 22:44:05 PDT 2024
https://github.com/skc7 created https://github.com/llvm/llvm-project/pull/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.
>From 32bf18152ca394c3bf5fadcbf9a0a34c3d5bba13 Mon Sep 17 00:00:00 2001
From: skc7 <Krishna.Sankisa at amd.com>
Date: Mon, 26 Aug 2024 11:09:26 +0530
Subject: [PATCH] [AMDGPU] Add LLVMInstrumnetation to link with AMDGPUCodeGen.
---
llvm/lib/Target/AMDGPU/CMakeLists.txt | 1 +
1 file changed, 1 insertion(+)
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