forked from vyperlang/vyper
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat[venom]: update text format for data section (vyperlang#4414)
this commit updates the parser and grammar with new syntax for the data section. it also adds cases for raw bytes (which are generated by `--optimize codesize`) in the data section, which are required to round-trip venom produced in `--optimize codesize` mode. new format: ``` data readonly { dbsection foo { db @label1 db x"abcd" } } ``` the new "readonly" modifier doesn't have disambiguating power yet, but it will make it easier to add "writable" data sections to the grammar in the future if we decide to add that. misc/refactor: - remove xfail from previously failing test cases. - refactor internal representation of data section to not use `IRInstruction` - add `_as_asm_symbol` for easier lowering of labels - tweak `IRFunction.__repr__()` to add the function name at close (helpful for debugging). - tweak `IRBasicBlock.__repr__()` to add basic block and function name at close to help with readability --------- Co-authored-by: Harry Kalogirou <[email protected]>
- Loading branch information
1 parent
a56d79d
commit fadd4de
Showing
10 changed files
with
164 additions
and
104 deletions.
There are no files selected for viewing
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
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
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
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
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
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
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
Oops, something went wrong.