diff options
Diffstat (limited to 'source/slang/ir.cpp')
| -rw-r--r-- | source/slang/ir.cpp | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/source/slang/ir.cpp b/source/slang/ir.cpp index eadcd34d0..9e39579f6 100644 --- a/source/slang/ir.cpp +++ b/source/slang/ir.cpp @@ -883,6 +883,22 @@ namespace Slang return inst; } + IRInst* IRBuilder::emitStore( + IRValue* dstPtr, + IRValue* srcVal) + { + auto type = getVoidType(); + auto inst = createInst<IRStore>( + this, + kIROp_Store, + type, + dstPtr, + srcVal); + + addInst(inst); + return inst; + } + IRInst* IRBuilder::emitFieldExtract( IRType* type, IRValue* base, |
