diff options
| author | Yong He <yonghe@outlook.com> | 2022-12-19 11:47:19 -0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-12-19 11:47:19 -0800 |
| commit | 216dfba0af66210a46ef0df18beb73d975fdf727 (patch) | |
| tree | f397ea5bf8d47d7a5d90dc95edfb472f2e49d762 /source/slang/slang-ir.cpp | |
| parent | 36220da1e29c891972fef32c8575c15f868b9959 (diff) | |
Separate primal computations from unzipped function into an explicit function. (#2569)
Co-authored-by: Yong He <yhe@nvidia.com>
Diffstat (limited to 'source/slang/slang-ir.cpp')
| -rw-r--r-- | source/slang/slang-ir.cpp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/source/slang/slang-ir.cpp b/source/slang/slang-ir.cpp index b4528a452..33130cfb3 100644 --- a/source/slang/slang-ir.cpp +++ b/source/slang/slang-ir.cpp @@ -3301,6 +3301,11 @@ namespace Slang return inst; } + IRInst* IRBuilder::emitDefaultConstructRaw(IRType* type) + { + return emitIntrinsicInst(type, kIROp_DefaultConstruct, 0, nullptr); + } + IRInst* IRBuilder::emitDefaultConstruct(IRType* type, bool fallback) { IRType* actualType = type; @@ -3809,6 +3814,11 @@ namespace Slang return inst; } + IRInst* IRBuilder::addPrimalValueStructKeyDecoration(IRInst* target, IRStructKey* key) + { + return addDecoration(target, kIROp_PrimalValueStructKeyDecoration, key); + } + RefPtr<IRModule> IRModule::create(Session* session) { RefPtr<IRModule> module = new IRModule(session); |
