refactor(shader): emit structured phis natively

This commit is contained in:
nmzik
2026-08-19 05:25:28 +02:00
parent d34e30d892
commit 49145c1902
11 changed files with 667 additions and 172 deletions
@@ -176,6 +176,10 @@ size_t Inst::NumArgs() const {
return args.size();
}
size_t Inst::NumPhiBlocks() const {
return phi_blocks.size();
}
Value Inst::Arg(size_t index) const {
EXIT_IF(index >= args.size());
return args[index];