[llvm] [AMDGPU] Link TransformUtils lib to AMDGPUUtils. (PR #100323)

via llvm-commits llvm-commits at lists.llvm.org
Wed Jul 24 01:19:54 PDT 2024


llvmbot wrote:


<!--LLVM PR SUMMARY COMMENT-->

@llvm/pr-subscribers-backend-amdgpu

Author: Chaitanya (skc7)

<details>
<summary>Changes</summary>

#<!-- -->98863 merged AMDGPUAsanInstrumentation module which missed TransformUtils to be linked to AMDGPUUtils.
This PR links the lib and fixes linking errors like "undefined reference to `llvm::SplitBlockAndInsertIfThen".


---
Full diff: https://github.com/llvm/llvm-project/pull/100323.diff


1 Files Affected:

- (modified) llvm/lib/Target/AMDGPU/Utils/CMakeLists.txt (+1) 


``````````diff
diff --git a/llvm/lib/Target/AMDGPU/Utils/CMakeLists.txt b/llvm/lib/Target/AMDGPU/Utils/CMakeLists.txt
index 4d69fb67db860..241c84de4fdf0 100644
--- a/llvm/lib/Target/AMDGPU/Utils/CMakeLists.txt
+++ b/llvm/lib/Target/AMDGPU/Utils/CMakeLists.txt
@@ -16,6 +16,7 @@ add_llvm_component_library(LLVMAMDGPUUtils
   MCParser
   Support
   TargetParser
+  TransformUtils
 
   ADD_TO_COMPONENT
   AMDGPU

``````````

</details>


https://github.com/llvm/llvm-project/pull/100323


More information about the llvm-commits mailing list