Skip to content

[MLIR] Add missing MLIRFuncDialect dep to MLIRNVVMToLLVM #84548

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/libMLIRNVVMToLLVM.a only:

In file included from mlir/lib/Conversion/NVVMToLLVM/NVVMToLLVM.cpp:18:
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/libMLIRNVVMToLLVM.a only.
@llvmbot llvmbot added the mlir label Mar 8, 2024
@llvmbot
Copy link
Member

llvmbot commented Mar 8, 2024

@llvm/pr-subscribers-mlir

Author: Thomas Preud'homme (RoboTux)

Changes

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


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

1 Files Affected:

  • (modified) mlir/lib/Conversion/NVVMToLLVM/CMakeLists.txt (+1)
diff --git a/mlir/lib/Conversion/NVVMToLLVM/CMakeLists.txt b/mlir/lib/Conversion/NVVMToLLVM/CMakeLists.txt
index 2afff1a4e5f169..23174d11287199 100644
--- a/mlir/lib/Conversion/NVVMToLLVM/CMakeLists.txt
+++ b/mlir/lib/Conversion/NVVMToLLVM/CMakeLists.txt
@@ -11,6 +11,7 @@ add_mlir_conversion_library(MLIRNVVMToLLVM
   Core
 
   LINK_LIBS PUBLIC
+  MLIRFuncDialect
   MLIRGPUDialect
   MLIRLLVMCommonConversion
   MLIRLLVMDialect

@RoboTux RoboTux requested a review from grypp March 8, 2024 20:11
Copy link
Member

@grypp grypp left a comment

Choose a reason for hiding this comment

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

Thanks, good catch

@joker-eph
Copy link
Collaborator

Same comment as the other: if you can put the error in the description (I can't reproduce annoyingly).

@RoboTux
Copy link
Contributor Author

RoboTux commented Mar 10, 2024

Same comment as the other: if you can put the error in the description (I can't reproduce annoyingly).

I don't seem to be able to anymore, but ninja shows the problem if you run cmake and then do ninja -t missingdeps lib/libMLIRNVVMToLLVM.a

@RoboTux
Copy link
Contributor Author

RoboTux commented Mar 10, 2024

Same comment as the other: if you can put the error in the description (I can't reproduce annoyingly).

I don't seem to be able to anymore, but ninja shows the problem if you run cmake and then do ninja -t missingdeps lib/libMLIRNVVMToLLVM.a

As pointed by @zero9178 in another similar PR, it can be reproduced if building in a totally empty directory (in particular no .ninja* file). I've updated the description accordingly.

@RoboTux RoboTux merged commit 9688a6d into llvm:main Mar 11, 2024
@RoboTux RoboTux deleted the nvvmtollvm_missing_funcdialect branch April 18, 2024 15:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants