diff options
| author | Yong He <yonghe@outlook.com> | 2023-03-30 12:50:02 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-03-30 12:50:02 -0700 |
| commit | 917416f6db7056cddff9d2a0e4e9b4117359157d (patch) | |
| tree | 9bd6aa89f235e4692cff83cdbe1ce4aae7ea861f /source/slang/slang-ir.cpp | |
| parent | e3b701c9f56f4a2fb8c56a65b5c75b49ee72ca73 (diff) | |
More builtin library support in torch backend. (#2760)
Co-authored-by: Yong He <yhe@nvidia.com>
Diffstat (limited to 'source/slang/slang-ir.cpp')
| -rw-r--r-- | source/slang/slang-ir.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/source/slang/slang-ir.cpp b/source/slang/slang-ir.cpp index d03096483..6ca05d2d6 100644 --- a/source/slang/slang-ir.cpp +++ b/source/slang/slang-ir.cpp @@ -3951,10 +3951,9 @@ namespace Slang return emitIntrinsicInst(type, kIROp_MakeStruct, argCount, args); } - IRInst* IRBuilder::emitMakeTensorView(IRType* type, IRInst* allocator, IRInst* val) + IRInst* IRBuilder::emitMakeTensorView(IRType* type, IRInst* val) { - IRInst* args[2] = { allocator, val }; - return emitIntrinsicInst(type, kIROp_MakeTensorView, 2, args); + return emitIntrinsicInst(type, kIROp_MakeTensorView, 1, &val); } IRInst* IRBuilder::emitMakeExistential( |
