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

[bazel] Fully replace gentbl with gentbl_cc_library #2231

Merged
merged 2 commits into from
Feb 6, 2025

Conversation

rupprecht
Copy link
Contributor

Enzyme uses tablegen generators from both llvm/tblgen.bzl and mlir/tblgen.bzl.
This consolidates usage so that we only use one of them (from MLIR).
Later we may delete the llvm/tblgen.bzl entirely.

This is mostly mechanical, but as a side effect, we need to adjust includes
to pick up bundled_includes.h. It was probably relying on an includes
config from the llvm/tblgen.bzl implementation that is no longer being provided.

See also llvm/llvm-project#124996.

@rupprecht
Copy link
Contributor Author

CI appears to be failing due to llvm/llvm-project@29441e4 now. Likely needs an update in Enzyme code, although I'm not familiar w/ that change, so I don't have a fix to suggest. I was able to test this locally by pinning LLVM to an older revision.

If someone can land a change to fix Enzyme w/ LLVM from trunk, I can push another empty commit to rerun CI.

@wsmoses
Copy link
Member

wsmoses commented Feb 6, 2025

nocapture fix landed

Enzyme uses tablegen generators from both llvm/tblgen.bzl and mlir/tblgen.bzl.
This consolidates usage so that we only use one of them (from MLIR).
Later we may delete the llvm/tblgen.bzl entirely.

This is mostly mechanical, but as a side effect, we need to adjust `includes`
to pick up `bundled_includes.h`. It was probably relying on an `includes`
config from the llvm/tblgen.bzl implementation that is no longer being provided.

See also llvm/llvm-project#124996.
…em) and use strip_include_prefix to mirror how they're referenced. Avoids needing to use `includes = ["."]` which is overly broad, and leads to a build failure.
@wsmoses wsmoses merged commit 8b09e8a into EnzymeAD:main Feb 6, 2025
14 of 21 checks passed
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.

2 participants