Skip to content

[MLIR] Add missing MLIRFuncDialect dep to MLIRAMDGPUTransforms #84550

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
Mar 11, 2024

Conversation

RoboTux
Copy link
Contributor

@RoboTux RoboTux commented Mar 8, 2024

This fixes the following failure when doing a clean build (in particular
no .ninja* lying around) of lib/libMLIRAMDGPUTransforms.a only:

In file included from mlir/lib/Dialect/AMDGPU/Transforms/OptimizeSharedMemory.cpp:21:
mlir/include/mlir/Dialect/Func/IR/FuncOps.h:29:10: fatal error: mlir/Dialect/Func/IR/FuncOps.h.inc: No such file or directory

This fixes a failure when doing a clean build of
lib/libMLIRAMDGPUTransform.a only.
@llvmbot
Copy link
Member

llvmbot commented Mar 8, 2024

@llvm/pr-subscribers-mlir-gpu
@llvm/pr-subscribers-mlir-amdgpu
@llvm/pr-subscribers-backend-amdgpu

@llvm/pr-subscribers-mlir

Author: Thomas Preud'homme (RoboTux)

Changes

This fixes a failure when doing a clean build of
lib/libMLIRAMDGPUTransform.a only.


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

1 Files Affected:

  • (modified) mlir/lib/Dialect/AMDGPU/Transforms/CMakeLists.txt (+1)
diff --git a/mlir/lib/Dialect/AMDGPU/Transforms/CMakeLists.txt b/mlir/lib/Dialect/AMDGPU/Transforms/CMakeLists.txt
index 2274656e84a5c1..a955d585b9a1dc 100644
--- a/mlir/lib/Dialect/AMDGPU/Transforms/CMakeLists.txt
+++ b/mlir/lib/Dialect/AMDGPU/Transforms/CMakeLists.txt
@@ -14,6 +14,7 @@ add_mlir_dialect_library(MLIRAMDGPUTransforms
   MLIRAMDGPUUtils
   MLIRArithDialect
   MLIRControlFlowDialect
+  MLIRFuncDialect
   MLIRIR
   MLIRPass
   MLIRTransforms

@RoboTux RoboTux requested review from krzysz00 and erman-gurses March 8, 2024 20:12
Copy link
Contributor

@krzysz00 krzysz00 left a comment

Choose a reason for hiding this comment

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

Yeah, looks like that's now a dependency with the LDS rewrites PR

@RoboTux
Copy link
Contributor Author

RoboTux commented Mar 10, 2024

Yeah, looks like that's now a dependency with the LDS rewrites PR

I've modified the description as suggested by Mehdi to show the error. As you can see the problem is OptimiseSharedMemory transform including FuncOps.h which includes tablegen'd FuncOps.h.inc

@krzysz00
Copy link
Contributor

Do I need to land this for you?

@RoboTux
Copy link
Contributor Author

RoboTux commented Mar 11, 2024

Do I need to land this for you?

No I just wanted to see if you change your mind with a longer explanation. I'll land this now.

@RoboTux RoboTux merged commit 36cf982 into llvm:main Mar 11, 2024
@RoboTux RoboTux deleted the amdgputransforms_missing_funcdialect branch April 18, 2024 15:56
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.

3 participants