summaryrefslogtreecommitdiff
path: root/source/slang/slang-ir-util.cpp
diff options
context:
space:
mode:
authorEllie Hermaszewska <ellieh@nvidia.com>2025-07-02 03:03:41 +0800
committerGitHub <noreply@github.com>2025-07-01 19:03:41 +0000
commit5120c1cd072548654c9ce79fa85426a5e48736c4 (patch)
tree989bf03035070bb45e261f513b7c9df2cecb1a30 /source/slang/slang-ir-util.cpp
parentb903ae06242e28263247122632511e39447b9e11 (diff)
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
Diffstat (limited to 'source/slang/slang-ir-util.cpp')
-rw-r--r--source/slang/slang-ir-util.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/source/slang/slang-ir-util.cpp b/source/slang/slang-ir-util.cpp
index 497281114..687841d5e 100644
--- a/source/slang/slang-ir-util.cpp
+++ b/source/slang/slang-ir-util.cpp
@@ -871,8 +871,8 @@ bool canInstHaveSideEffectAtAddress(IRGlobalValueWithCode* func, IRInst* inst, I
}
}
break;
- case kIROp_unconditionalBranch:
- case kIROp_loop:
+ case kIROp_UnconditionalBranch:
+ case kIROp_Loop:
{
auto branch = as<IRUnconditionalBranch>(inst);
// If any pointer typed argument of the branch inst may overlap addr, return true.
@@ -922,7 +922,7 @@ IRInst* getUndefInst(IRBuilder builder, IRModule* module)
for (auto inst : module->getModuleInst()->getChildren())
{
- if (inst->getOp() == kIROp_undefined && inst->getDataType() &&
+ if (inst->getOp() == kIROp_Undefined && inst->getDataType() &&
inst->getDataType()->getOp() == kIROp_VoidType)
{
undefInst = inst;