Skip to content

[AMDGPU] Move AMDGPUAsanInstrumentation outside of utils #100323

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jul 24, 2024

Conversation

skc7
Copy link
Contributor

@skc7 skc7 commented Jul 24, 2024

#98863 merged AMDGPUAsanInstrumentation module which missed TransformUtils to be linked to AMDGPUUtils.
This PR moves AMDGPUAsanInstrumentation files outside utils folder and adds them to AMDGPUCodegen.

@skc7 skc7 requested a review from ergawy July 24, 2024 08:19
@llvmbot
Copy link
Member

llvmbot commented Jul 24, 2024

@llvm/pr-subscribers-backend-amdgpu

Author: Chaitanya (skc7)

Changes

#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 --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

Copy link
Member

@ergawy ergawy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the quick fix.

@arsenm
Copy link
Contributor

arsenm commented Jul 24, 2024

We probably don't want this utils library depending on transforms. This probably should be lifted out of the utils library

@skc7 skc7 changed the title [AMDGPU] Link TransformUtils lib to AMDGPUUtils. [AMDGPU] Move AMDGPUAsanInstrumentation outside of utils Jul 24, 2024
@skc7 skc7 requested a review from arsenm July 24, 2024 09:19
@skc7 skc7 force-pushed the skc7/amdgpu_utils_cmake branch from 1601e46 to 092dadb Compare July 24, 2024 09:27
@skc7 skc7 merged commit e6c20e1 into llvm:main Jul 24, 2024
7 checks passed
yuxuanchen1997 pushed a commit that referenced this pull request Jul 25, 2024
Summary:
#98863 merged AMDGPUAsanInstrumentation module which missed
TransformUtils to be linked to AMDGPUUtils.
This PR moves AMDGPUAsanInstrumentation files outside utils folder and
adds them to AMDGPUCodegen lib.

Test Plan: 

Reviewers: 

Subscribers: 

Tasks: 

Tags: 


Differential Revision: https://phabricator.intern.facebook.com/D60250608
searlmc1 pushed a commit to ROCm/llvm-project that referenced this pull request Nov 22, 2024
llvm#98863 merged AMDGPUAsanInstrumentation module which missed
TransformUtils to be linked to AMDGPUUtils.
This PR moves AMDGPUAsanInstrumentation files outside utils folder and
adds them to AMDGPUCodegen lib.

Change-Id: I5ad1bb76ce80c2c129739d256ec4d76bc360296e
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants