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-specialize.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'source/slang/slang-ir-specialize.cpp') diff --git a/source/slang/slang-ir-specialize.cpp b/source/slang/slang-ir-specialize.cpp index 266c1aa99..ed96b23c1 100644 --- a/source/slang/slang-ir-specialize.cpp +++ b/source/slang/slang-ir-specialize.cpp @@ -130,7 +130,7 @@ struct SpecializationContext switch (inst->getOp()) { case kIROp_GlobalGenericParam: - case kIROp_LookupWitness: + case kIROp_LookupWitnessMethod: case kIROp_GetTupleElement: return false; case kIROp_Specialize: @@ -597,7 +597,7 @@ struct SpecializationContext // return maybeSpecializeGeneric(cast(inst)); - case kIROp_LookupWitness: + case kIROp_LookupWitnessMethod: // The remaining case we need to consider here for generics // is when we have a `lookup_witness_method` instruction // that is being applied to a concrete witness table, @@ -941,7 +941,7 @@ struct SpecializationContext shouldSkip = true; break; } - if (item->getOperand(i)->getOp() == kIROp_undefined) + if (item->getOperand(i)->getOp() == kIROp_Undefined) { shouldSkip = true; break; @@ -1095,7 +1095,7 @@ struct SpecializationContext workList.removeLast(); workListSet.remove(inst); - if (!inst->getParent() && inst->getOp() != kIROp_Module) + if (!inst->getParent() && inst->getOp() != kIROp_ModuleInst) continue; // For each instruction we process, we want to perform -- cgit v1.2.3