diff options
| author | Maksim Levental <maksim.levental@gmail.com> | 2025-07-25 12:36:54 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-07-25 12:36:54 -0500 |
| commit | 258daf539583b80e0217d1d87941412d65cf16aa (patch) | |
| tree | 02ae47dac762ce752f90eb640603d917fac52c30 /mlir/test/lib/Dialect/Vector/TestVectorTransforms.cpp | |
| parent | b46527645db279daf50f540a3496bbd81a95200a (diff) | |
[mlir][NFC] update `mlir` create APIs (34/n) (#150660)
See https://github.com/llvm/llvm-project/pull/147168 for more info.
Diffstat (limited to 'mlir/test/lib/Dialect/Vector/TestVectorTransforms.cpp')
| -rw-r--r-- | mlir/test/lib/Dialect/Vector/TestVectorTransforms.cpp | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/mlir/test/lib/Dialect/Vector/TestVectorTransforms.cpp b/mlir/test/lib/Dialect/Vector/TestVectorTransforms.cpp index cf8353a4089e..f89c944b5c56 100644 --- a/mlir/test/lib/Dialect/Vector/TestVectorTransforms.cpp +++ b/mlir/test/lib/Dialect/Vector/TestVectorTransforms.cpp @@ -569,10 +569,9 @@ static Value warpReduction(Location loc, OpBuilder &builder, Value input, Value laneVal = vector::ReductionOp::create(builder, loc, kind, input); // Parallel reduction using butterfly shuffles. for (uint64_t i = 1; i < size; i <<= 1) { - Value shuffled = builder - .create<gpu::ShuffleOp>(loc, laneVal, i, - /*width=*/size, - /*mode=*/gpu::ShuffleMode::XOR) + Value shuffled = gpu::ShuffleOp::create(builder, loc, laneVal, i, + /*width=*/size, + /*mode=*/gpu::ShuffleMode::XOR) .getShuffleResult(); laneVal = makeArithReduction(builder, loc, kind, laneVal, shuffled); } @@ -650,9 +649,8 @@ struct TestVectorDistribution arith::IndexCastOp::create(builder, loc, i32Type, srcIdx); Value warpSzI32 = arith::ConstantOp::create( builder, loc, builder.getIntegerAttr(i32Type, warpSz)); - Value result = builder - .create<gpu::ShuffleOp>(loc, val, srcIdxI32, warpSzI32, - gpu::ShuffleMode::IDX) + Value result = gpu::ShuffleOp::create(builder, loc, val, srcIdxI32, + warpSzI32, gpu::ShuffleMode::IDX) .getResult(0); return result; }; |
