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-ir-restructure.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'source/slang/slang-ir-restructure.cpp') diff --git a/source/slang/slang-ir-restructure.cpp b/source/slang/slang-ir-restructure.cpp index db3bb61f5..33d5aebea 100644 --- a/source/slang/slang-ir-restructure.cpp +++ b/source/slang/slang-ir-restructure.cpp @@ -246,7 +246,7 @@ static RefPtr generateRegionsForIRBlocks( switch (terminator->getOp()) { default: - case kIROp_conditionalBranch: + case kIROp_ConditionalBranch: // Note: we don't currently generate ordinary `conditionalBranch` instructions, // and instead only generate `ifElse` instructions, which include additional // information that can inform our control-flow restructuring pass. @@ -265,7 +265,7 @@ static RefPtr generateRegionsForIRBlocks( *resultLink = nullptr; return resultRegion; - case kIROp_ifElse: + case kIROp_IfElse: { // Here we have a two-way branch, so that we will construct a // region representing an `if` statement. @@ -305,7 +305,7 @@ static RefPtr generateRegionsForIRBlocks( } break; - case kIROp_loop: + case kIROp_Loop: { // The terminator in this case is the header for a structured loop. // @@ -424,7 +424,7 @@ static RefPtr generateRegionsForIRBlocks( } break; - case kIROp_unconditionalBranch: + case kIROp_UnconditionalBranch: { // Here we have an unconditional branch that was // not covered by one of our labels for non-local -- cgit v1.2.3