Skip to content
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

[mlir] Fix missing FuncOps.h.inc #97885

Merged
merged 1 commit into from
Jul 29, 2024
Merged

[mlir] Fix missing FuncOps.h.inc #97885

merged 1 commit into from
Jul 29, 2024

Conversation

jschueller
Copy link
Contributor

@jschueller jschueller commented Jul 6, 2024

Closes #84568

Similar to #71691 (reproduce with make -j1)

/cc @tblah

@llvmbot
Copy link
Collaborator

llvmbot commented Jul 6, 2024

@llvm/pr-subscribers-mlir-affine

@llvm/pr-subscribers-mlir

Author: Julien Schueller (jschueller)

Changes

Closes #84568

Similar to #71691

/cc @tblah


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

1 Files Affected:

  • (modified) mlir/lib/Dialect/Affine/Analysis/CMakeLists.txt (+3)
diff --git a/mlir/lib/Dialect/Affine/Analysis/CMakeLists.txt b/mlir/lib/Dialect/Affine/Analysis/CMakeLists.txt
index 61e49b0da8b2d..3a1996349dbed 100644
--- a/mlir/lib/Dialect/Affine/Analysis/CMakeLists.txt
+++ b/mlir/lib/Dialect/Affine/Analysis/CMakeLists.txt
@@ -8,6 +8,9 @@ add_mlir_dialect_library(MLIRAffineAnalysis
   ADDITIONAL_HEADER_DIRS
   ${MLIR_MAIN_INCLUDE_DIR}/mlir/Dialect/Affine
 
+  DEPENDS
+  MLIRFuncOpsIncGen
+
   LINK_LIBS PUBLIC
   MLIRAffineDialect
   MLIRAnalysis

@jschueller
Copy link
Contributor Author

hello @tblah, maybe this could be merged ?

@tblah
Copy link
Contributor

tblah commented Jul 29, 2024

hello @tblah, maybe this could be merged ?

Yeah this LGTM. Do you need help merging?

@jschueller
Copy link
Contributor Author

yes, I dont have write access, could you please merge it ?

@tblah tblah merged commit 1f38301 into llvm:main Jul 29, 2024
10 checks passed
@jschueller jschueller deleted the funcopsinc branch July 29, 2024 12:03
@@ -8,6 +8,9 @@ add_mlir_dialect_library(MLIRAffineAnalysis
ADDITIONAL_HEADER_DIRS
${MLIR_MAIN_INCLUDE_DIR}/mlir/Dialect/Affine

DEPENDS
MLIRFuncOpsIncGen
Copy link
Collaborator

Choose a reason for hiding this comment

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

This does not seem like the right dependency to me: we should depend on the FuncDialect here. The IncGen targets are meant to be depending on by the dialects themselves.

You can also see this as a transitive dependency issue: you're skipping one step in the dependency chain.

banach-space pushed a commit to banach-space/llvm-project that referenced this pull request Aug 7, 2024
Closes llvm#84568

Similar to llvm#71691 (reproduce with make -j1)
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.

18.1.0 build from source missing mlir/Dialect/Func/IR/FuncOps.h.inc?
4 participants