Skip to content

Commit fc59ae5

Browse files
address review comment
Signed-off-by: Whitney Tsang <[email protected]>
1 parent 2bc5799 commit fc59ae5

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

third_party/intel/lib/TritonIntelGPUToLLVM/ElementwiseOpToLLVM.cpp

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1431,16 +1431,17 @@ struct PreciseSqrtOpConversion
14311431
ConversionPatternRewriter &rewriter,
14321432
Type elemTy, MultipleOperandsRange operands,
14331433
Location loc) const {
1434-
auto input = operands[0][0];
1435-
auto origTy = input.getType();
1434+
Value input = operands[0][0];
1435+
Type origTy = input.getType();
14361436
if (!origTy.isF64())
14371437
input = fpext(f64_ty, input);
14381438
Type funcType = LLVM::LLVMFunctionType::get(f64_ty, {f64_ty});
14391439
LLVM::LLVMFuncOp funcOp =
14401440
appendOrGetExternFuncOp(rewriter, op, "__imf_sqrt_rn", funcType);
1441-
auto callOp = LLVM::createLLVMCallOp(rewriter, loc, funcOp, {input});
1441+
LLVM::CallOp callOp =
1442+
LLVM::createLLVMCallOp(rewriter, loc, funcOp, {input});
14421443
callOp.setCConv(LLVM::cconv::CConv::SPIR_FUNC);
1443-
auto result = callOp.getResult();
1444+
Value result = callOp.getResult();
14441445
if (!origTy.isF64())
14451446
result = rewriter.create<LLVM::FPTruncOp>(loc, origTy, result);
14461447
return {result};

0 commit comments

Comments
 (0)