diff options
| author | Yong He <yonghe@outlook.com> | 2020-06-18 15:05:58 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-06-18 15:05:58 -0700 |
| commit | aa6aca498cd1f7fbbdb143e72dd48b1d714c8fbb (patch) | |
| tree | a2361c042e6a03ff957bd4a921f73efbb89dc1b7 /source/slang/slang-ir.cpp | |
| parent | 5952e3b3d7f505a7e6d71ecd0793911224f5bac3 (diff) | |
| parent | 82ba914db9c3823ad7a0834d46b7fccedfe0acee (diff) | |
Merge pull request #1400 from csyonghe/dyndispatch
Dynamic dispatch 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, |
