Skip to content

Commit 16ebc0c

Browse files
committed
More renaming after rebase
1 parent e13d242 commit 16ebc0c

13 files changed

+17
-17
lines changed

flang/include/flang/Optimizer/Transforms/Passes.td

+1-1
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,7 @@ def CFGConversionOnFunc : CFGConversionBase<"func", "mlir::func::FuncOp"> {
169169
let constructor = "::fir::createFirToCfgOnFuncPass()";
170170
}
171171

172-
def CFGConversionOnReduction : CFGConversionBase<"reduce", "mlir::omp::ReductionDeclareOp"> {
172+
def CFGConversionOnReduction : CFGConversionBase<"reduce", "mlir::omp::DeclareReductionOp"> {
173173
let constructor = "::fir::createFirToCfgOnReductionPass()";
174174
}
175175

flang/include/flang/Tools/CLOptions.inc

+1-1
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ static void addCanonicalizerPassWithoutRegionSimplification(
124124
inline void addCfgConversionPass(mlir::PassManager &pm) {
125125
addNestedPassConditionally<mlir::func::FuncOp>(
126126
pm, disableCfgConversion, fir::createFirToCfgOnFuncPass);
127-
addNestedPassConditionally<mlir::omp::ReductionDeclareOp>(
127+
addNestedPassConditionally<mlir::omp::DeclareReductionOp>(
128128
pm, disableCfgConversion, fir::createFirToCfgOnReductionPass);
129129
}
130130

flang/test/Driver/bbc-mlir-pass-pipeline.f90

+2-2
Original file line numberDiff line numberDiff line change
@@ -38,11 +38,11 @@
3838
! CHECK-NEXT: (S) 0 num-cse'd - Number of operations CSE'd
3939
! CHECK-NEXT: (S) 0 num-dce'd - Number of operations DCE'd
4040

41-
! CHECK-NEXT: Pipeline Collection : ['func.func', 'omp.reduction.declare']
41+
! CHECK-NEXT: Pipeline Collection : ['func.func', 'omp.declare_reduction']
4242
! CHECK-NEXT: 'func.func' Pipeline
4343
! CHECK-NEXT: PolymorphicOpConversion
4444
! CHECK-NEXT: CFGConversionOnFunc
45-
! CHECK-NEXT: 'omp.reduction.declare' Pipeline
45+
! CHECK-NEXT: 'omp.declare_reduction' Pipeline
4646
! CHECK-NEXT: CFGConversionOnReduction
4747

4848
! CHECK-NEXT: SCFToControlFlow

flang/test/Driver/mlir-debug-pass-pipeline.f90

+2-2
Original file line numberDiff line numberDiff line change
@@ -58,11 +58,11 @@
5858
! ALL-NEXT: (S) 0 num-cse'd - Number of operations CSE'd
5959
! ALL-NEXT: (S) 0 num-dce'd - Number of operations DCE'd
6060

61-
! ALL-NEXT: Pipeline Collection : ['func.func', 'omp.reduction.declare']
61+
! ALL-NEXT: Pipeline Collection : ['func.func', 'omp.declare_reduction']
6262
! ALL-NEXT: 'func.func' Pipeline
6363
! ALL-NEXT: PolymorphicOpConversion
6464
! ALL-NEXT: CFGConversionOnFunc
65-
! ALL-NEXT: 'omp.reduction.declare' Pipeline
65+
! ALL-NEXT: 'omp.declare_reduction' Pipeline
6666
! ALL-NEXT: CFGConversionOnReduction
6767
! ALL-NEXT: SCFToControlFlow
6868
! ALL-NEXT: Canonicalizer

flang/test/Driver/mlir-pass-pipeline.f90

+2-2
Original file line numberDiff line numberDiff line change
@@ -52,11 +52,11 @@
5252
! O2-NEXT: 'func.func' Pipeline
5353
! O2-NEXT: PolymorphicOpConversion
5454
! O2-NEXT: AddAliasTags
55-
! ALL-NEXT: Pipeline Collection : ['func.func', 'omp.reduction.declare']
55+
! ALL-NEXT: Pipeline Collection : ['func.func', 'omp.declare_reduction']
5656
! ALL-NEXT: 'func.func' Pipeline
5757
! NOTO2-NEXT: PolymorphicOpConversion
5858
! ALL-NEXT: CFGConversionOnFunc
59-
! ALL-NEXT: 'omp.reduction.declare' Pipeline
59+
! ALL-NEXT: 'omp.declare_reduction' Pipeline
6060
! ALL-NEXT: CFGConversionOnReduction
6161

6262
! ALL-NEXT: SCFToControlFlow

flang/test/Fir/basic-program.fir

+2-2
Original file line numberDiff line numberDiff line change
@@ -60,10 +60,10 @@ func.func @_QQmain() {
6060

6161
// PASSES-NEXT: AddAliasTags
6262

63-
// PASSES-NEXT: Pipeline Collection : ['func.func', 'omp.reduction.declare']
63+
// PASSES-NEXT: Pipeline Collection : ['func.func', 'omp.declare_reduction']
6464
// PASSES-NEXT: 'func.func' Pipeline
6565
// PASSES-NEXT: CFGConversionOnFunc
66-
// PASSES-NEXT: 'omp.reduction.declare' Pipeline
66+
// PASSES-NEXT: 'omp.declare_reduction' Pipeline
6767
// PASSES-NEXT: CFGConversionOnReduction
6868

6969
// PASSES-NEXT: SCFToControlFlow

flang/test/Lower/OpenMP/parallel-reduction-array.f90

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ program reduce
1313
print *,i
1414
end program
1515

16-
! CHECK-LABEL: omp.reduction.declare @add_reduction_i_32_box_3_byref : !fir.ref<!fir.box<!fir.array<3xi32>>> init {
16+
! CHECK-LABEL: omp.declare_reduction @add_reduction_i_32_box_3_byref : !fir.ref<!fir.box<!fir.array<3xi32>>> init {
1717
! CHECK: ^bb0(%[[VAL_0:.*]]: !fir.ref<!fir.box<!fir.array<3xi32>>>):
1818
! CHECK: %[[VAL_1:.*]] = fir.alloca !fir.array<3xi32> {bindc_name = ".tmp"}
1919
! CHECK: %[[VAL_2:.*]] = arith.constant 0 : i32

flang/test/Lower/OpenMP/parallel-reduction-array2.f90

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ program reduce
1313
print *,i
1414
end program
1515

16-
! CHECK-LABEL: omp.reduction.declare @add_reduction_i_32_box_3_byref : !fir.ref<!fir.box<!fir.array<3xi32>>> init {
16+
! CHECK-LABEL: omp.declare_reduction @add_reduction_i_32_box_3_byref : !fir.ref<!fir.box<!fir.array<3xi32>>> init {
1717
! CHECK: ^bb0(%[[VAL_0:.*]]: !fir.ref<!fir.box<!fir.array<3xi32>>>):
1818
! CHECK: %[[VAL_1:.*]] = fir.alloca !fir.array<3xi32> {bindc_name = ".tmp"}
1919
! CHECK: %[[VAL_2:.*]] = arith.constant 0 : i32

flang/test/Lower/OpenMP/wsloop-reduction-array.f90

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ program reduce
1414
print *,r
1515
end program
1616

17-
! CHECK-LABEL omp.reduction.declare @add_reduction_i_32_box_2_byref : !fir.ref<!fir.box<!fir.array<2xi32>>> init {
17+
! CHECK-LABEL omp.declare_reduction @add_reduction_i_32_box_2_byref : !fir.ref<!fir.box<!fir.array<2xi32>>> init {
1818
! CHECK: ^bb0(%[[VAL_0:.*]]: !fir.ref<!fir.box<!fir.array<2xi32>>>):
1919
! CHECK: %[[VAL_1:.*]] = fir.alloca !fir.array<2xi32> {bindc_name = ".tmp"}
2020
! CHECK: %[[VAL_2:.*]] = arith.constant 0 : i32

flang/test/Lower/OpenMP/wsloop-reduction-array2.f90

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ program reduce
1414
print *,r
1515
end program
1616

17-
! CHECK-LABEL omp.reduction.declare @add_reduction_i_32_box_2_byref : !fir.ref<!fir.box<!fir.array<2xi32>>> init {
17+
! CHECK-LABEL omp.declare_reduction @add_reduction_i_32_box_2_byref : !fir.ref<!fir.box<!fir.array<2xi32>>> init {
1818
! CHECK: ^bb0(%[[VAL_0:.*]]: !fir.ref<!fir.box<!fir.array<2xi32>>>):
1919
! CHECK: %[[VAL_1:.*]] = fir.alloca !fir.array<2xi32> {bindc_name = ".tmp"}
2020
! CHECK: %[[VAL_2:.*]] = arith.constant 0 : i32

flang/test/Transforms/omp-reduction-cfg-conversion.fir

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// RUN: fir-opt --cfg-conversion-on-reduce-opt %s | FileCheck %s
22

3-
omp.reduction.declare @add_reduction_i_32_box_3_byref : !fir.ref<!fir.box<!fir.array<3xi32>>> init {
3+
omp.declare_reduction @add_reduction_i_32_box_3_byref : !fir.ref<!fir.box<!fir.array<3xi32>>> init {
44
^bb0(%arg0: !fir.ref<!fir.box<!fir.array<3xi32>>>):
55
%c4_i32 = arith.constant 4 : i32
66
%c0_i32 = arith.constant 0 : i32

mlir/lib/Target/LLVMIR/Dialect/OpenMP/OpenMPToLLVMIRTranslation.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -3170,7 +3170,7 @@ LogicalResult OpenMPDialectLLVMIRTranslationInterface::convertOperation(
31703170
omp::CriticalDeclareOp>([](auto op) {
31713171
// `yield` and `terminator` can be just omitted. The block structure
31723172
// was created in the region that handles their parent operation.
3173-
// `reduction.declare` will be used by reductions and is not
3173+
// `declare_reduction` will be used by reductions and is not
31743174
// converted directly, skip it.
31753175
// `critical.declare` is only used to declare names of critical
31763176
// sections which will be used by `critical` ops and hence can be

mlir/test/Target/LLVMIR/openmp-reduction-call.mlir

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
// Test that we don't crash when there is a call operation in the combiner
44

5-
omp.reduction.declare @add_f32 : f32
5+
omp.declare_reduction @add_f32 : f32
66
init {
77
^bb0(%arg: f32):
88
%0 = llvm.mlir.constant(0.0 : f32) : f32

0 commit comments

Comments
 (0)