-
Notifications
You must be signed in to change notification settings - Fork 9
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
Reformat xlang-ir to use a new basic block design #13
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
feat(xlang-backend): Add support for head values for `make_jump`
chorman0773
added
A-xlang-ir
An issue related to xlang ir
C-feature-request
S-blocked-on-maintainer
labels
Aug 4, 2024
I'll just approve this |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
XLang IR Changes:
call
,tailcall
,exit
,asm
,branch
,branch indirect
, andswitch
expressionscall
andtailcall
terminators. In addition to the old syntax, thecall
terminator accepts ajump-info
(target + optional flags) for a "next" block to jump to after the call finishes.tailcall
omitsnext
,call
requires it.exit
terminatorjump
terminator which takes ajump-info
, and is used for unconditional jumpsbranch
terminator for conditional branches. These take two jump-infos, one when the condition is satisfied, and one when it is not.never
andalways
continue to exist, and act likejump
s to the respective targets, but also typecheck the untaken branch.jump indirect
for indirect jumps.asm
terminator, which additionally takes anext
jump-info to continue to unless the block isnoreturn
.switch
terminator.unreachable
terminator, which should be favoured overconst undef invalid T; exit 1
.const undef invalid
can still be used when a value is statically needed by the code generator.Also changed the structure of xlang-backend to handle the new input correctly.