-
Notifications
You must be signed in to change notification settings - Fork 2
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
Implement some basic MLIR operations #7
Conversation
asl
commented
Jan 22, 2025
•
edited
Loading
edited
- Integer, boolean and "easy" singleton types
- Some constants to check parsing, printing and roundtrip
- Some additional boilerplate and test fixes
Signed-off-by: Anton Korobeynikov <[email protected]>
Signed-off-by: Anton Korobeynikov <[email protected]>
It seems the |
This is a stacked PR. |
I see. Then we have to fix the build issue in #3 first. |
Feel free to take this if you have a time! |
Sure, I'll take a look! Most likely this weekend. |
|
||
Type BoolType::parse(mlir::AsmParser &parser) { return get(parser.getContext()); } | ||
|
||
void BoolType::print(mlir::AsmPrinter &printer) const {} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Got build errors that there are duplicate symbols BoolType::parse
and BoolType::print
in this file and P4HIR_Types.cpp
. I'm not quite sure which ones should be kept.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, it was removed in one of subsequent PRs. The Attr version is redundant certainly.
Superseded by #46 |