-
Notifications
You must be signed in to change notification settings - Fork 3
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
EmitC: Use brace initialization for values of opaque type when lowering ub.posion #429
Conversation
When converting from UB to EmitC, we have no means to identify a proper initial value when the type is opaque. Report a match failure.
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.
LGTM
Do you still want to merge this? |
I'll update it and re-request reviews. |
Values of opaque type are currently initialized to integers, which may be invalid. Instead, lower them using brace-initializers. The emitc code will represent C++.
Upstream will ask you to update https://mlir.llvm.org/docs/Dialects/EmitC/ with the C++ when ... condition. (This is some doc file in the repo) |
Thanks for the pointer! Added it. |
Values of opaque type are currently initialized to integers, which may be invalid. Instead, lower them using brace-initializers. The emitc code will represent C++.
Comes without a test since there are currently no types I am aware of that are converted to opaque types.