diff options
| author | Ellie Hermaszewska <ellieh@nvidia.com> | 2025-07-02 03:03:41 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-07-01 19:03:41 +0000 |
| commit | 5120c1cd072548654c9ce79fa85426a5e48736c4 (patch) | |
| tree | 989bf03035070bb45e261f513b7c9df2cecb1a30 /source/slang/slang-emit-cpp.cpp | |
| parent | b903ae06242e28263247122632511e39447b9e11 (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-emit-cpp.cpp')
| -rw-r--r-- | source/slang/slang-emit-cpp.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/source/slang/slang-emit-cpp.cpp b/source/slang/slang-emit-cpp.cpp index 8e95cebfb..ffc4b97ef 100644 --- a/source/slang/slang-emit-cpp.cpp +++ b/source/slang/slang-emit-cpp.cpp @@ -1561,7 +1561,7 @@ bool CPPSourceEmitter::tryEmitInstExprImpl(IRInst* inst, const EmitOpInfo& inOut m_writer->emit("])"); return true; } - case kIROp_swizzle: + case kIROp_Swizzle: { // For C++ we don't need to emit a swizzle function // For C we need a construction function @@ -1677,7 +1677,7 @@ bool CPPSourceEmitter::tryEmitInstExprImpl(IRInst* inst, const EmitOpInfo& inOut // try doing automatically return false; } - case kIROp_LookupWitness: + case kIROp_LookupWitnessMethod: { emitInstExpr(inst->getOperand(0), inOuterPrec); m_writer->emit("->"); @@ -1697,7 +1697,7 @@ bool CPPSourceEmitter::tryEmitInstExprImpl(IRInst* inst, const EmitOpInfo& inOut m_writer->emit(")"); return true; } - case kIROp_GetAddr: + case kIROp_GetAddress: { // Once we clean up the pointer emitting logic, we can // just use GetElementAddress instruction in place of |
