Skip to content

Commit 1c9b528

Browse files
authored
Rename changes followed: - llvm/llvm-project#128751 - llvm/llvm-project#128869 --------- Signed-off-by: yzhang93 <zhyuhang88@gmail.com>
1 parent e8ee480 commit 1c9b528

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

compiler/plugins/input/StableHLO/Conversion/Passes.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ void buildStableHLOInputConversionPassPipelineImpl(
6565
// style of treating shapes as tensors. We prefer to legalize these to
6666
// scalar ops as early as possible to avoid having them persist as tensor
6767
// computations.
68-
passManager.addNestedPass<func::FuncOp>(createShapeToShapeLowering());
68+
passManager.addNestedPass<func::FuncOp>(createShapeToShapeLoweringPass());
6969
passManager.addPass(createConvertShapeToStandardPass());
7070
passManager.addNestedPass<func::FuncOp>(mlir::createCanonicalizerPass());
7171
passManager.addNestedPass<func::FuncOp>(createStableHLOCanonicalize());

tests/e2e/tosa_ops/reduce.mlir

+2-2
Original file line numberDiff line numberDiff line change
@@ -28,14 +28,14 @@ func.func @reduce_min_int() {
2828

2929
func.func @reduce_prod_float() {
3030
%0 = util.unfoldable_constant dense<[[1.0, 2.0, 3.0], [4.0, 5.0, 6.0]]> : tensor<2x3xf32>
31-
%result = tosa.reduce_prod %0 {axis = 0 : i32} : (tensor<2x3xf32>) -> tensor<1x3xf32>
31+
%result = tosa.reduce_product %0 {axis = 0 : i32} : (tensor<2x3xf32>) -> tensor<1x3xf32>
3232
check.expect_almost_eq_const(%result, dense<[[4.0, 10.0, 18.0]]> : tensor<1x3xf32>) : tensor<1x3xf32>
3333
return
3434
}
3535

3636
func.func @reduce_prod_int() {
3737
%0 = util.unfoldable_constant dense<[[1, 2, 3], [4, 5, 6]]> : tensor<2x3xi32>
38-
%result = tosa.reduce_prod %0 {axis = 0 : i32} : (tensor<2x3xi32>) -> tensor<1x3xi32>
38+
%result = tosa.reduce_product %0 {axis = 0 : i32} : (tensor<2x3xi32>) -> tensor<1x3xi32>
3939
check.expect_eq_const(%result, dense<[[4, 10, 18]]> : tensor<1x3xi32>) : tensor<1x3xi32>
4040
return
4141
}

third_party/llvm-project

Submodule llvm-project updated 546 files

0 commit comments

Comments
 (0)