Skip to content

MLIR BUILD.bazel: fold BasicPtxBuilderInterface into NVVMDialect #111172

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
Oct 4, 2024

Conversation

bjacob
Copy link
Contributor

@bjacob bjacob commented Oct 4, 2024

While doing an integrate into downstream https://github.com/iree-org/iree, I ran into a typical Bazel error with BasicPtxBuilderInterface.cpp including NVVMDialect.h which was not exposed as a header by a declared dependency. I tried fixing this the straightforward way, by letting :BasicPtxBuilderInterface depend on :NVVMDialect , but that caused another Bazel error: circular dependency between these two targets, as :NVVMDialect was already depending on :BasicPtxBuilderInterface. I tried breaking that circle by dropping the latter dependency, but it was a real dependency in the code, specifically in the TableGen-generated code. So in the end it seems that these two targets just need to be fused, which this PR does.

Signed-off-by: Benoit Jacob <[email protected]>
@bjacob bjacob requested a review from joker-eph October 4, 2024 15:27
@bjacob bjacob marked this pull request as ready for review October 4, 2024 15:27
@bjacob bjacob requested review from rupprecht and keith as code owners October 4, 2024 15:27
@llvmbot llvmbot added the bazel "Peripheral" support tier build system: utils/bazel label Oct 4, 2024
@bjacob bjacob requested review from JoelWee, dklimkin and cjdb October 4, 2024 15:48
@bjacob
Copy link
Contributor Author

bjacob commented Oct 4, 2024

(To be clear, this fixes Bazel build breakage already present upstream, not just downstream. Here is a downstream CI run that's fixed by this PR: https://github.com/iree-org/iree/actions/runs/11182717531/job/31089636040?pr=18696)

bjacob added a commit to iree-org/iree that referenced this pull request Oct 4, 2024
@bjacob bjacob merged commit dd04cf0 into llvm:main Oct 4, 2024
11 checks passed
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