forked from 0xMiden/compiler
-
Notifications
You must be signed in to change notification settings - Fork 0
Add Op registration to symbol table inside OpBuilder #4
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
Open
lima-limon-inc
wants to merge
80
commits into
next
Choose a base branch
from
fabrizioorsi/op-builder-symbol-table
base: next
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
80 commits
Select commit
Hold shift + click to select a range
4be32d5
Add a SymbolTableRef to Component so that it will be used as build ar…
lima-limon-inc 80f0805
Add a quoted macro to the operation builder. Curren tly expands corre…
lima-limon-inc 6c3e62d
Add jamon field to OperationFieldAttrs. Now it gets parsed :partying_…
lima-limon-inc 93a609a
WIP: Checkpoint
lima-limon-inc 3b1e541
Checkpoint 2: Code is generated when using the #[jamon] decorator
lima-limon-inc 15f4723
Checkpoint 3: The member variable name is expanded correctly
lima-limon-inc 35116e0
Remove unsafe from macro as it is not currently needed
lima-limon-inc 9e9f4d0
Save reference in macro
lima-limon-inc 613c9e1
Extend BuildOp to use with_jamon
lima-limon-inc 4404ad0
WARNING: This doesn't compile, this is the macro we need, but has bor…
lima-limon-inc 2c4c5d2
Basic macro structure seems to be in place, mutability is missing
lima-limon-inc 7402678
Checkpoint: Fideos trait in place. Better alternative?
lima-limon-inc 557f75f
Create Custom field mandioca for pareny symbol table
lima-limon-inc a7315bd
De-comment call to insert map
lima-limon-inc db07c41
Checkpoint: It compiles but it's missing a casting implementation
lima-limon-inc b7816a8
Try doing an unsafe cast
lima-limon-inc bf2b41b
Comment out dbg!
lima-limon-inc 0e0dc1e
Add lifetime parameters to variable
lima-limon-inc 80bd170
Create a lifetime + remove call to get_symbol_manager_mut
lima-limon-inc fcb87a8
Revert "Create a lifetime + remove call to get_symbol_manager_mut"
lima-limon-inc a309e25
Revert "Add lifetime parameters to variable"
lima-limon-inc 422adfe
Add comment with explanation
lima-limon-inc 1b5b7f1
Add new comment explaining fix
lima-limon-inc 202a8b8
Add assert code in auto-generated after adding an item to the symbol …
lima-limon-inc ea15723
Remove unused OperationFieldType since now belonging to a symbol tabl…
lima-limon-inc c0343dc
WIP: Rename variables and remove deleted code
lima-limon-inc 7a395a5
Remove un-usued struct decorator, since now a trait is used.
lima-limon-inc 9d7e716
Added Option to the SymbolTableRef
lima-limon-inc 68b4023
Added Fideos trait to Function, all test passing
lima-limon-inc 86a97da
Added Fideos trait to module
lima-limon-inc 788fec6
Add Fideos trait to global trait
lima-limon-inc 9bdb574
Make assert string generic
lima-limon-inc 7137690
Remove dbg prints
lima-limon-inc d1b3e4d
Remove commented out code
lima-limon-inc 3699b3d
Remove the decorator parsing
lima-limon-inc 2ee35bf
Rename parent_jamon to belongs_in_symbol_table and change it to a boo…
lima-limon-inc e7dd21b
Add some documentation regarding the belong_in_symbol_table member
lima-limon-inc 1c4a29c
Rename trait to BelongsInSymbolTable
lima-limon-inc 76940fa
Add documentation regarding the proc macro
lima-limon-inc 4d9b8b0
Rename to OpCreateParamType::Mandioca to OpCreateParamType::BuildOnly…
lima-limon-inc 5cdf314
Remove old asserts, now in macro
lima-limon-inc 16026fe
Remove match in favor of if true
lima-limon-inc bbbad14
Decouple the current BuildOp into BuildOP + ModifyOp + ReturnOp
lima-limon-inc d2a0dc5
Remove unused code/structs and re-enable -Wwarning
lima-limon-inc 2dd21ec
Rename tmp to symbol_table
lima-limon-inc 6cad13c
Merge branch 'next' into fabrizioorsi/op-builder-symbol-table
lima-limon-inc a390f2e
Remove unused function
lima-limon-inc 2ce7040
fix: replace in place str with call to stringify!
lima-limon-inc c074344
Remove Option from parent symbol table type
lima-limon-inc 0573c5a
WIP: SymbolTableHolder
lima-limon-inc 80ac362
WIP: Gotem?
lima-limon-inc 4f1bd7c
cfg_to_scf test
lima-limon-inc 40e55ec
WIP: Fix tests
lima-limon-inc 892f20f
WIP: Fix tests
lima-limon-inc 3b7a751
WIP: Fix test
lima-limon-inc 1eaa233
WIP: Fix tests
lima-limon-inc e7bff1d
WIP: fix tests
lima-limon-inc 7fef782
WIP: Fix tests
lima-limon-inc 7d93ff6
WIP: Fix tests
lima-limon-inc 1543549
WIP: Fix tests
lima-limon-inc af36091
WIP: Fix tests
lima-limon-inc 7c38701
chore: update OperationBuilder documentation now that an Option is no…
lima-limon-inc 619d838
Remove Option parse_quote now that A symbol table reference is always…
lima-limon-inc c918d40
chore: Remove commented out code
lima-limon-inc 1883c0f
Replace inline str "SymbolTableRef" with call to stringify! and the t…
lima-limon-inc 21eab6e
WIP: Change World in favor of SymbolTableHolder in tests
lima-limon-inc 5c13e5d
WIP: Change World in favor of SymbolTableHolder
lima-limon-inc edf7a65
WIP: Replace World in favor of SymbolTableHolder
lima-limon-inc bdefabe
WIP: Replace World in favor of SymbolTableHolder
lima-limon-inc 7f1ffa4
Remove SymbolTableHolderl from constants file
lima-limon-inc 1df638b
De-comment #[deny(warning)]s
lima-limon-inc 64358ec
Remove unused traits from SymbolTableHolder struct
lima-limon-inc e224ec1
De-comment #[deny(warning)]s
lima-limon-inc 72dd12c
Revert "WIP: Replace World in favor of SymbolTableHolder"
lima-limon-inc 8340482
Revert "WIP: Replace World in favor of SymbolTableHolder"
lima-limon-inc f69e539
Revert "WIP: Change World in favor of SymbolTableHolder"
lima-limon-inc 8290c78
Revert "WIP: Change World in favor of SymbolTableHolder in tests"
lima-limon-inc 50e8faa
Remove calls to SymbolTableHolder
lima-limon-inc 8f650da
Update as_symbol_table_ref documentation
lima-limon-inc 9bca3c3
Merge branch 'next' into fabrizioorsi/op-builder-symbol-table
lima-limon-inc 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
6 changes: 3 additions & 3 deletions
6
codegen/masm/src/lower/expected/utils_emit_binary_search_1_case.hir
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
8 changes: 4 additions & 4 deletions
8
codegen/masm/src/lower/expected/utils_emit_binary_search_2_cases.hir
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
10 changes: 5 additions & 5 deletions
10
codegen/masm/src/lower/expected/utils_emit_binary_search_3_cases.hir
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
12 changes: 6 additions & 6 deletions
12
codegen/masm/src/lower/expected/utils_emit_binary_search_4_cases.hir
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
14 changes: 7 additions & 7 deletions
14
codegen/masm/src/lower/expected/utils_emit_binary_search_5_cases.hir
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
18 changes: 9 additions & 9 deletions
18
codegen/masm/src/lower/expected/utils_emit_binary_search_7_cases.hir
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.
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.
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.
These tests got updated because now they contain a
WorldBuilder
which wasn't there before. The only thing that (should)'ve changed is the block number (which increased by one).