diff options
| author | Yong He <yonghe@outlook.com> | 2020-06-17 22:41:56 -0700 |
|---|---|---|
| committer | Yong He <yonghe@outlook.com> | 2020-06-17 23:47:11 -0700 |
| commit | 8c6e02bd094bbc0c9afb141265be9675f99ddb61 (patch) | |
| tree | 1c81d73c1b1eddcc3e00fe1ff28816d6dec0c032 /source/slang/slang-ir.cpp | |
| parent | d1a8cd23d15d0001131b6f01b0c9bc461279f760 (diff) | |
Dynamic dipatch non-static functions.
Diffstat (limited to 'source/slang/slang-ir.cpp')
| -rw-r--r-- | source/slang/slang-ir.cpp | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/source/slang/slang-ir.cpp b/source/slang/slang-ir.cpp index 34ea23b85..77011b569 100644 --- a/source/slang/slang-ir.cpp +++ b/source/slang/slang-ir.cpp @@ -3083,6 +3083,20 @@ namespace Slang return inst; } + IRInst* IRBuilder::emitGetAddress( + IRType* type, + IRInst* value) + { + auto inst = createInst<IRGetAddress>( + this, + kIROp_getAddr, + type, + value); + + addInst(inst); + return inst; + } + IRInst* IRBuilder::emitSwizzle( IRType* type, IRInst* base, |
