diff --git a/llvm/lib/Transforms/DFG2LLVM_WrapperAPI/DFG2LLVM_WrapperAPI.cpp b/llvm/lib/Transforms/DFG2LLVM_WrapperAPI/DFG2LLVM_WrapperAPI.cpp index 05c0067da2314d6ecdcb75d268b42bafe569ba8c..10d4aa28f2f65be201067ffeb9cdb062df370b61 100644 --- a/llvm/lib/Transforms/DFG2LLVM_WrapperAPI/DFG2LLVM_WrapperAPI.cpp +++ b/llvm/lib/Transforms/DFG2LLVM_WrapperAPI/DFG2LLVM_WrapperAPI.cpp @@ -1057,11 +1057,11 @@ errs() << "TensorII: " << *TensorII << "\n"; } else if (TensorII->getIntrinsicID() == Intrinsic::visc_tensor_clipped_relu) { // Create wrapper API runtime function call - Constant* wrapper_tensorRelu2 = - M->getOrInsertFunction(StringRef("wrapper_tensorRelu2"), - RtM->getFunction(StringRef("wrapper_tensorRelu2"))->getFunctionType()); - DEBUG(errs() << *wrapper_tensorRelu2); - CallInst::Create(wrapper_tensorRelu2, Args, "", TensorII); + Constant* wrapper_tensorClippedRelu = + M->getOrInsertFunction(StringRef("wrapper_tensorClippedRelu"), + RtM->getFunction(StringRef("wrapper_tensorClippedRelu"))->getFunctionType()); + DEBUG(errs() << *wrapper_tensorClippedRelu); + CallInst::Create(wrapper_tensorClippedRelu, Args, "", TensorII); } else if (TensorII->getIntrinsicID() == Intrinsic::visc_tensor_tanh) { // Create wrapper API runtime function call