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.
Basic mathematical stdlib functionality (FuelLabs#61)
* begin register allocator * begin reg alloc * mutable virtual registers; basic allocation algorithm skeleton * mutable registers in allocation * pull in fuel-asm official ops * switching laptops * begin work on virtual registers and ops * daily checkpoint * add AllocatedOp abstraction * template for parsing ops * allocation algorithm progress * change op parsing logic * WIP parsing inline asm to new ops * more op parsing * finish parsing virtual ops from asm * start registers method * register allocation method * convert virtual registers to allocated ones * switch back to organizational labels for jumps * realized ops * fully allocate registers and resolve labels * print allocated registers * fill in todo!() errors in asm parsing * resolve all todosudo apt-get install vlc in core_lang * switch to ssh for fuel-asm * resolve warnings * fix git url * rustfmt * small self-code-review * resolve module * map the virtual opcodes to fuel_asm ops * code review feedback * factor finalized asm out into its own file * realize data section and instructions to bits * data section offset label * initial bytecode generation * add forc --asm command * print out the loading of the data section op * resolve warnings * fix register allocater bug * cleanup * fix bad error message * code review feedback * fix doctest * fix typo * reference fuel_core for register constants * add stdlib stuff * allow use of interface surface functions in the methods section of trait declarations * comment * basic math stdlib * formatting Co-authored-by: Alexander Hansen <[email protected]>
Showing
4 changed files
with
286 additions
and
87 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
Oops, something went wrong.