Added basic loop unrolling. Blocks that end in a JMP, LOOP or conditional branch to a previous instruction in the block will be unrolled up to 10 times.

This commit is contained in:
SarahW 2019-03-25 19:07:51 +00:00
commit 7e099c277e
9 changed files with 594 additions and 148 deletions

View file

@ -2,4 +2,5 @@
ir_data_t *codegen_ir_init();
void codegen_ir_set_unroll(int count, int start);
void codegen_ir_compile(ir_data_t *ir, codeblock_t *block);