feat: introduced blocks and better project structure

This commit is contained in:
2025-12-24 20:13:13 +01:00
parent e8a496d070
commit 7f73b742c2
9 changed files with 525 additions and 453 deletions

View File

@@ -68,7 +68,7 @@ private:
auto param_slot = m_allocator->Allocate(fn->params().data[0]);
appendf("mov %s, rdi\n", GetSlotAddr(param_slot).c_str());
}
for(auto &fOp : fn->ops())
for(auto &fOp : fn->body().ops())
{
GenerateOp(fOp);
}