-
Notifications
You must be signed in to change notification settings - Fork 5.4k
Introduce GlobalVar
akin to LocalVar
and introduce get_global
instruction similar to get_local
.
#6928
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
Merged
Merged
Introduce GlobalVar
akin to LocalVar
and introduce get_global
instruction similar to get_local
.
#6928
Changes from all commits
Commits
Show all changes
47 commits
Select commit
Hold shift + click to select a range
c318607
unique constants in the IR
vaivaswatha 63fc159
Merge branch 'master' into vaivaswatha/ir_consts_1
vaivaswatha 3e840cd
clippy fixes
vaivaswatha 681f8b9
Merge branch 'master' into vaivaswatha/ir_consts_1
vaivaswatha 0176256
Merge branch 'master' into vaivaswatha/ir_consts_1
vaivaswatha 5056ff4
Merge branch 'master' into vaivaswatha/ir_consts_1
IGI-111 9ed1a99
Introduce global variables and a get_global IR instruction
vaivaswatha a58e55a
Merge branch 'master' into vaivaswatha/ir_consts_1
vaivaswatha 7679f39
Merge branch 'vaivaswatha/ir_consts_1' of github.com:FuelLabs/sway in…
vaivaswatha 269c3cc
Merge branch 'vaivaswatha/ir_consts_1' into vaivaswatha/ir_consts_2
vaivaswatha 4129d3d
fix bugs
vaivaswatha 503cecf
IR printer and parser for the new IR insruction
vaivaswatha 167bb5e
Merge branch 'master' into vaivaswatha/ir_consts_1
vaivaswatha 625149d
Merge branch 'vaivaswatha/ir_consts_1' into vaivaswatha/ir_consts_2
vaivaswatha 8227ff6
use BTreeMap since we iterate over the entries
vaivaswatha a15fa81
test updates
vaivaswatha 0e359eb
remove unused globals
vaivaswatha 15b342c
fix a test
vaivaswatha 5c7f1e4
add a unit test that checks addresses of global consts
vaivaswatha 39e3019
pass to promote global consts to immediate constants when possible
vaivaswatha c1d0136
Merge branch 'master' into vaivaswatha/ir_consts_2
vaivaswatha 3ec3f90
update tests
vaivaswatha 6f142fa
Merge branch 'master' into vaivaswatha/ir_consts_2
vaivaswatha c29eaea
address review comments
vaivaswatha 63def49
Merge branch 'vaivaswatha/ir_consts_2' of github.com:FuelLabs/sway in…
vaivaswatha e27927f
Merge branch 'master' into vaivaswatha/ir_consts_2
vaivaswatha c0f6b7e
clippy fix
vaivaswatha f3088a8
Merge branch 'vaivaswatha/ir_consts_2' of github.com:FuelLabs/sway in…
vaivaswatha c8cd1ab
Merge branch 'master' into vaivaswatha/ir_consts_2
vaivaswatha a840b7a
Merge branch 'master' into vaivaswatha/ir_consts_2
vaivaswatha a86bc22
address review comments, tests pending
vaivaswatha 4d6c029
Merge branch 'vaivaswatha/ir_consts_2' of github.com:FuelLabs/sway in…
vaivaswatha 8dedba4
disable immutable-initializer check for locals
vaivaswatha 94dec14
add unit tests for mem2reg and dce for globals
vaivaswatha 4d3f865
Update test as per review comments
vaivaswatha 2db107b
Merge branch 'master' into vaivaswatha/ir_consts_2
vaivaswatha 14b4ada
typo fix to please CI
vaivaswatha 3956188
more typo fix
vaivaswatha b72898c
Merge branch 'master' into vaivaswatha/ir_consts_2
vaivaswatha d13cfd8
fixes related to review comments
vaivaswatha 2323f34
Merge branch 'vaivaswatha/ir_consts_2' of github.com:FuelLabs/sway in…
vaivaswatha f34fea9
Merge branch 'master' into vaivaswatha/ir_consts_2
vaivaswatha 839783c
Merge branch 'master' into vaivaswatha/ir_consts_2
vaivaswatha a68e7ee
Merge branch 'master' into vaivaswatha/ir_consts_2
vaivaswatha cd41a43
Merge branch 'master' into vaivaswatha/ir_consts_2
vaivaswatha e7547c2
Merge branch 'master' into vaivaswatha/ir_consts_2
vaivaswatha 10631d7
Merge branch 'master' into vaivaswatha/ir_consts_2
vaivaswatha File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
Oops, something went wrong.
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.