diff options
| author | Yong He <yonghe@outlook.com> | 2023-03-27 23:00:42 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-03-27 23:00:42 -0700 |
| commit | 0a6926003fd2300858e3089fe82f421543852395 (patch) | |
| tree | 19865fa9eb69373f0c0c16b7fac4993f67aa2b20 /source/slang/slang-ir.cpp | |
| parent | d120fec7e81bbd5e8cf2c551b573feaf6678b43d (diff) | |
Translate all composed types into tuple types in pyBind. (#2744)
* Translate all composed types into tuple types in pyBind.
* Delete temp file.
* Fix get tuple element code emit logic.
---------
Co-authored-by: Yong He <yhe@nvidia.com>
Diffstat (limited to 'source/slang/slang-ir.cpp')
| -rw-r--r-- | source/slang/slang-ir.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/source/slang/slang-ir.cpp b/source/slang/slang-ir.cpp index 6ce54a948..76e889780 100644 --- a/source/slang/slang-ir.cpp +++ b/source/slang/slang-ir.cpp @@ -3705,6 +3705,12 @@ namespace Slang return emitIntrinsicInst(type, kIROp_MakeTargetTuple, count, args); } + IRInst* IRBuilder::emitTargetTupleGetElement(IRType* elementType, IRInst* targetTupleVal, IRInst* indexVal) + { + IRInst* args[] = {targetTupleVal, indexVal}; + return emitIntrinsicInst(elementType, kIROp_GetTargetTupleElement, 2, args); + } + IRInst* IRBuilder::emitMakeTuple(UInt count, IRInst* const* args) { List<IRType*> types; |
