Skip to content

[mlir][bazel] Move InliningUtils into a separate target. #85411

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 2 commits into from
Mar 16, 2024

Conversation

chsigg
Copy link
Contributor

@chsigg chsigg commented Mar 15, 2024

Various (in-tree as well as downstream) targets currently depend on InliningUtils.h to avoid circular dependencies. E.g. TransformUtils depends on ArithDialect, so ArithDialect can't depend on TransformUtils exporting InliningUtils.h. This change exposes that header and it's implementation as a separate target. Having targets that implement all the declared functions is the preferred approach for bazel build graphs.

See also PR #84878, which moves the interface definitions to a separate file in the Interfaces directory. This turned out to be controversial and putting it in a different directory didn't seem to have any support either. Instead, this PR only changes the bazel build without moving any C++ code.

@chsigg chsigg requested a review from rupprecht as a code owner March 15, 2024 15:10
@llvmbot llvmbot added the bazel "Peripheral" support tier build system: utils/bazel label Mar 15, 2024
@chsigg chsigg merged commit fce046c into llvm:main Mar 16, 2024
@chsigg chsigg deleted the piper_export_cl_616076713 branch March 26, 2024 14:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bazel "Peripheral" support tier build system: utils/bazel
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants