forked from FuelLabs/sway
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add a new
__gtf
intrinsic (FuelLabs#2315)
* Add int_to_ptr IR instruction * Simplify codegen for int_to_ptr * Update a few more things and add a test * Add a new __gtf intrinsic * Add a simple test * Use int_to_ptr to generate asm for __gtf * Add an ir_generation test * Update sway-ir/src/verify.rs Co-authored-by: Toby Hutton <[email protected]> * Addressing some comments * Update test/src/e2e_vm_tests/test_programs/should_pass/language/gtf_intrinsic/src/main.sw Co-authored-by: Vaivaswatha N <[email protected]> * Update sway-core/src/asm_generation/from_ir.rs Co-authored-by: Toby Hutton <[email protected]> * Update sway-ir/src/parser.rs Co-authored-by: Toby Hutton <[email protected]> * rename the test.. the old name was wrong * Updating type checking of gtf to only expect u64s * fmt Co-authored-by: Toby Hutton <[email protected]> Co-authored-by: Vaivaswatha N <[email protected]>
- Loading branch information
1 parent
6444f22
commit 9efe316
Showing
19 changed files
with
330 additions
and
5 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
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.