From 917416f6db7056cddff9d2a0e4e9b4117359157d Mon Sep 17 00:00:00 2001 From: Yong He Date: Thu, 30 Mar 2023 12:50:02 -0700 Subject: More builtin library support in torch backend. (#2760) Co-authored-by: Yong He --- source/slang/slang-ir.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'source/slang/slang-ir.cpp') 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( -- cgit v1.2.3