diff options
Diffstat (limited to 'mlir/lib/Conversion/GPUCommon/OpToFuncCallLowering.h')
-rw-r--r-- | mlir/lib/Conversion/GPUCommon/OpToFuncCallLowering.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/mlir/lib/Conversion/GPUCommon/OpToFuncCallLowering.h b/mlir/lib/Conversion/GPUCommon/OpToFuncCallLowering.h index 23bfa303708..3ab8e75633e 100644 --- a/mlir/lib/Conversion/GPUCommon/OpToFuncCallLowering.h +++ b/mlir/lib/Conversion/GPUCommon/OpToFuncCallLowering.h @@ -44,7 +44,7 @@ public: f32Func(f32Func), f64Func(f64Func) {} PatternMatchResult - matchAndRewrite(Operation *op, ArrayRef<Value *> operands, + matchAndRewrite(Operation *op, ArrayRef<ValuePtr> operands, ConversionPatternRewriter &rewriter) const override { using LLVM::LLVMFuncOp; using LLVM::LLVMType; @@ -69,10 +69,10 @@ public: private: LLVM::LLVMType getFunctionType(LLVM::LLVMType resultType, - ArrayRef<Value *> operands) const { + ArrayRef<ValuePtr> operands) const { using LLVM::LLVMType; SmallVector<LLVMType, 1> operandTypes; - for (Value *operand : operands) { + for (ValuePtr operand : operands) { operandTypes.push_back(operand->getType().cast<LLVMType>()); } return LLVMType::getFunctionTy(resultType, operandTypes, |