Skip to content

Add missing deps - #4952

Merged
GMNGeoffrey merged 1 commit into
iree-org:mainfrom
marbre:fix_deps
Feb 26, 2021
Merged

GMNGeoffrey merged 1 commit into
iree-org:mainfrom
marbre:fix_deps

Conversation

@marbre

@marbre marbre commented Feb 26, 2021

Copy link
Copy Markdown
Member
  • Calling registerLLVMDialectTranslation(), added with ce85ce5, makes
    a dep on MLIRTargetLLVMIR mandatory.
  • With createLowerAffinePass() added as pass as part of db62c35, a
    dependency on MLIRAffineToStandard is required.

* Calling `registerLLVMDialectTranslation()`, added with ce85ce5, makes
  a dep on MLIRTargetLLVMIR mandatory.
* With `createLowerAffinePass()` added as pass as part of db62c35, a
  dependency on MLIRAffineToStandard is required.
@ScottTodd

Copy link
Copy Markdown
Member

Eh... actually, I'm not sure about the location of registerLLVMDialectTranslation and MLIRTargetLLVMIR. Shouldn't those be target specific and not always included in the tools?

@ScottTodd
ScottTodd self-requested a review February 26, 2021 16:20
@GMNGeoffrey

Copy link
Copy Markdown
Member

Eh... actually, I'm not sure about the location of registerLLVMDialectTranslation and MLIRTargetLLVMIR. Shouldn't those be target specific and not always included in the tools?

Wheee gotta love LLVM integrates adding random deps without our review 🙃

@GMNGeoffrey

Copy link
Copy Markdown
Member

So as of right now, these deps mirror the deps added in Bazel, so I think this PR is correct. Separately, we should take a look at what that actually did... The dependency here is direct: https://github.com/google/iree/blob/39980126755bd0c5717a7c0d77c7366231a123ae/iree/tools/iree-run-mlir-main.cc#L519

@MaheshRavishankar

Copy link
Copy Markdown
Collaborator

No real comment here, but my fault on the createLowerAffinePass(). How come our CIs didnt catch it, just so that I dont miss it in future.

@GMNGeoffrey GMNGeoffrey left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

This makes Bazel and CMake files consistent. We should investigate this new dependency, but in the meantime not having the diff is right IMO.

@marbre

marbre commented Feb 26, 2021

Copy link
Copy Markdown
Member Author

Yes, I am not happy about adding MLIRTargetLLVMIR. In Bazel world, registerLLVMDialectTranslation() (declared in mlir/Target/LLVMIR.h) belongs to the dep TargetLLVMIR. So I am confident that MLIRTargetLLVMIR is the correct CMake dep. Seems this was introduced with llvm/llvm-project@b77bac0. And yes, I agree we should definitely see if we can untangle this, as it pulls in a lot of translations, see here.

@GMNGeoffrey
GMNGeoffrey merged commit f9d8dd0 into iree-org:main Feb 26, 2021
@marbre

marbre commented Feb 26, 2021

Copy link
Copy Markdown
Member Author

No real comment here, but my fault on the createLowerAffinePass(). How come our CIs didnt catch it, just so that I dont miss it in future.

Good question! Must have been pulled in somehow when building in-tree. I noticed it when triying to bump the IREE submodule in https://github.com/iml130/iree-template-cpp.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants