-
Notifications
You must be signed in to change notification settings - Fork 182
[CIR] Add BlockAddressOp #1875
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
[CIR] Add BlockAddressOp #1875
Conversation
Andres-Salamanca
left a comment
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.
@andykaylor @bcardosolopes @xlauko I’m unsure about the right way to approach these cases. Do you have any suggestions?
bcardosolopes
left a comment
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.
Thanks for working on this, pretty cool, added first round of review!
Andres-Salamanca
left a comment
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.
Sorry for the late reply, @andykaylor , @bcardosolopes . I haven’t had much time lately, so this can still be improved, but I’d like to know how I’m doing so far.
bcardosolopes
left a comment
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.
Let's break this PR into two for making the review easier. For this one:
- Add CIR + tests for CIR to CIR parsing/printing.
- CIRGen support. Tests will only contain the
CIRpart. - GotoSolver support, add test that verify only unused labels are removed.
- Add the verifier mentioned in the comments for
verifyBlockTagsand add a CIR test for it.
All LLVM lowering should be deferred to a next PR. Inline comments also added
|
Needs some conflict fixes but ready to go |
cc869e1 to
8c51d1e
Compare
|
✅ With the latest revision this PR passed the C/C++ code formatter. |
This PR adds support for the new
BlockAddressOp, used for GCC labels as values.Support for indirect
gotoandConstantLValueEmitter::VisitAddrLabelExprwill be added in a future PR.