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

CMake support for mlir-jl-tblgen #36

Merged
merged 3 commits into from
Jan 16, 2024
Merged

CMake support for mlir-jl-tblgen #36

merged 3 commits into from
Jan 16, 2024

Conversation

vchuravy
Copy link
Collaborator

@vchuravy vchuravy commented Jan 14, 2024

@vchuravy vchuravy changed the title vc/artifact CMake support for mlir-jl-tblgen Jan 14, 2024
@vchuravy
Copy link
Collaborator Author

Used for JuliaPackaging/Yggdrasil#7951

@vchuravy vchuravy requested a review from jumerckx January 14, 2024 20:31
Copy link
Collaborator

@jumerckx jumerckx left a comment

Choose a reason for hiding this comment

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

Thank you for doing this, I wouldn't really have known where to get started otherwise :)

std::vector<llvm::Record *> opdefs = recordKeeper.getAllDerivedDefinitionsIfDefined("Op");
#else
std::vector<llvm::Record *> opdefs = recordKeeper.getAllDerivedDefinitions("Op");
Copy link
Collaborator

@jumerckx jumerckx Jan 14, 2024

Choose a reason for hiding this comment

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

I think it's technically possible for tablegen files to have no operations and getAllDerivedDefinitions claims The class has to be defined. But I already kind of assumed opdefs isn't empty when calling getDialectName a bit later 😅.

@vchuravy vchuravy merged commit 0d6851b into main Jan 16, 2024
0 of 4 checks passed
@vchuravy vchuravy deleted the vc/artifact branch January 16, 2024 15:12
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