@@ -67,8 +67,8 @@ static bool canBeCalledWithBarePointers(gpu::GPUFuncOp func) {
6767Value getLaneId (ConversionPatternRewriter &rewriter, Location loc,
6868 const unsigned indexBitwidth) {
6969 auto int32Type = IntegerType::get (rewriter.getContext (), 32 );
70- Value zero = rewriter.createOrFold <arith::ConstantIntOp>(loc, 0 , 32 );
71- Value minus1 = rewriter.createOrFold <arith::ConstantIntOp>(loc, -1 , 32 );
70+ Value zero = rewriter.create <arith::ConstantIntOp>(loc, 0 , 32 );
71+ Value minus1 = rewriter.create <arith::ConstantIntOp>(loc, -1 , 32 );
7272 Value mbcntLo = rewriter.create <ROCDL::MbcntLoOp>(loc, int32Type,
7373 ValueRange{minus1, zero});
7474 Value laneId = rewriter.create <ROCDL::MbcntHiOp>(loc, int32Type,
@@ -89,8 +89,8 @@ struct GPULaneIdOpToROCDL : ConvertOpToLLVMPattern<gpu::LaneIdOp> {
8989 // followed by: %lid = call @llvm.amdgcn.mbcnt.hi(-1, %mlo)
9090
9191 Type intTy = IntegerType::get (context, 32 );
92- Value zero = rewriter.createOrFold <arith::ConstantIntOp>(loc, 0 , 32 );
93- Value minus1 = rewriter.createOrFold <arith::ConstantIntOp>(loc, -1 , 32 );
92+ Value zero = rewriter.create <arith::ConstantIntOp>(loc, 0 , 32 );
93+ Value minus1 = rewriter.create <arith::ConstantIntOp>(loc, -1 , 32 );
9494 Value mbcntLo =
9595 rewriter.create <ROCDL::MbcntLoOp>(loc, intTy, ValueRange{minus1, zero});
9696 Value laneId = rewriter.create <ROCDL::MbcntHiOp>(
0 commit comments