From 5120c1cd072548654c9ce79fa85426a5e48736c4 Mon Sep 17 00:00:00 2001 From: Ellie Hermaszewska Date: Wed, 2 Jul 2025 03:03:41 +0800 Subject: extend fiddle to allow custom lua splices in more places (#7559) * Add fkYAML submodule * Generate slang-ir-inst-defs.h from slang-ir-inst-defs.yaml * generate ir-inst-defs.h * neaten things * neaten inst def parser * add rapidyaml submodule * remove fkyaml * remove fkyaml submodule * remove use of ir-inst-defs.h * format and warnings * fix wasm build * tidy * remove rapidyaml * Extend fiddle to allow custom splices in more places * Use lua to describe ir insts * fix * neaten * neaten * neaten * spelling * neaten * comment comment out assert * merge --- source/slang/slang-emit-vm.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'source/slang/slang-emit-vm.cpp') diff --git a/source/slang/slang-emit-vm.cpp b/source/slang/slang-emit-vm.cpp index 772d9f84a..36fa1cea6 100644 --- a/source/slang/slang-emit-vm.cpp +++ b/source/slang/slang-emit-vm.cpp @@ -481,7 +481,7 @@ public: { switch (inst->getOp()) { - case kIROp_undefined: + case kIROp_Undefined: { ensureWorkingsetMemory(funcBuilder, inst); } @@ -605,8 +605,8 @@ public: ensureInst(inst->getOperand(0))); } break; - case kIROp_unconditionalBranch: - case kIROp_loop: + case kIROp_UnconditionalBranch: + case kIROp_Loop: { // Write phi arguments into param registers. auto branch = as(inst); @@ -646,7 +646,7 @@ public: relocations.add(entry); } break; - case kIROp_ifElse: + case kIROp_IfElse: { VMOperand relocOperand = {}; writeInst( @@ -868,7 +868,7 @@ public: case kIROp_FloatCast: emitCast(funcBuilder, VMOp::Cast, inst); break; - case kIROp_swizzle: + case kIROp_Swizzle: { auto swizzleInst = as(inst); auto base = swizzleInst->getBase(); -- cgit v1.2.3