@@ -131,7 +131,7 @@ static mlir::ParseResult parseAllocatableOp(FN wrapResultType,
131
131
132
132
template <typename OP>
133
133
static void printAllocatableOp (mlir::OpAsmPrinter &p, OP &op) {
134
- p << op. getOperationName () << ' ' << op.in_type ();
134
+ p << ' ' << op.in_type ();
135
135
if (!op.typeparams ().empty ()) {
136
136
p << ' (' << op.typeparams () << " : " << op.typeparams ().getTypes () << ' )' ;
137
137
}
@@ -592,7 +592,7 @@ mlir::FunctionType fir::CallOp::getFunctionType() {
592
592
static void printCallOp (mlir::OpAsmPrinter &p, fir::CallOp &op) {
593
593
auto callee = op.callee ();
594
594
bool isDirect = callee.hasValue ();
595
- p << op. getOperationName () << ' ' ;
595
+ p << ' ' ;
596
596
if (isDirect)
597
597
p << callee.getValue ();
598
598
else
@@ -685,7 +685,7 @@ static mlir::LogicalResult verify(fir::CharConvertOp op) {
685
685
686
686
template <typename OPTY>
687
687
static void printCmpOp (OpAsmPrinter &p, OPTY op) {
688
- p << op. getOperationName () << ' ' ;
688
+ p << ' ' ;
689
689
auto predSym = mlir::arith::symbolizeCmpFPredicate (
690
690
op->template getAttrOfType <mlir::IntegerAttr>(
691
691
OPTY::getPredicateAttrName ())
@@ -775,7 +775,7 @@ static mlir::ParseResult parseConstcOp(mlir::OpAsmParser &parser,
775
775
}
776
776
777
777
static void print (mlir::OpAsmPrinter &p, fir::ConstcOp &op) {
778
- p << op. getOperationName () << " (0x" ;
778
+ p << " (0x" ;
779
779
auto f1 = op.getOperation ()
780
780
->getAttr (fir::ConstcOp::getRealAttrName ())
781
781
.cast <mlir::FloatAttr>();
@@ -867,7 +867,7 @@ static mlir::LogicalResult verify(fir::ConvertOp &op) {
867
867
// ===----------------------------------------------------------------------===//
868
868
869
869
static void print (mlir::OpAsmPrinter &p, fir::CoordinateOp op) {
870
- p << op. getOperationName () << ' ' << op.ref () << " , " << op.coor ();
870
+ p << ' ' << op.ref () << " , " << op.coor ();
871
871
p.printOptionalAttrDict (op->getAttrs (), /* elideAttrs=*/ {" baseType" });
872
872
p << " : " ;
873
873
p.printFunctionalType (op.getOperandTypes (), op->getResultTypes ());
@@ -958,8 +958,8 @@ static mlir::ParseResult parseDispatchOp(mlir::OpAsmParser &parser,
958
958
}
959
959
960
960
static void print (mlir::OpAsmPrinter &p, fir::DispatchOp &op) {
961
- p << op. getOperationName () << ' '
962
- << op. getOperation ()-> getAttr ( fir::DispatchOp::getMethodAttrName ()) << ' (' ;
961
+ p << ' ' << op. getOperation ()-> getAttr ( fir::DispatchOp::getMethodAttrName ())
962
+ << ' (' ;
963
963
p.printOperand (op.object ());
964
964
if (!op.args ().empty ()) {
965
965
p << " , " ;
@@ -1009,7 +1009,7 @@ static void print(mlir::OpAsmPrinter &p, fir::DispatchTableOp &op) {
1009
1009
op.getOperation ()
1010
1010
->getAttrOfType <StringAttr>(mlir::SymbolTable::getSymbolAttrName ())
1011
1011
.getValue ();
1012
- p << op. getOperationName () << " @" << tableName;
1012
+ p << " @" << tableName;
1013
1013
1014
1014
Region &body = op.getOperation ()->getRegion (0 );
1015
1015
if (!body.empty ())
@@ -1103,7 +1103,7 @@ static mlir::ParseResult parseEmboxProcOp(mlir::OpAsmParser &parser,
1103
1103
}
1104
1104
1105
1105
static void print (mlir::OpAsmPrinter &p, fir::EmboxProcOp &op) {
1106
- p << op. getOperationName () << ' ' << op.getOperation ()->getAttr (" funcname" );
1106
+ p << ' ' << op.getOperation ()->getAttr (" funcname" );
1107
1107
auto h = op.host ();
1108
1108
if (h) {
1109
1109
p << " , " ;
@@ -1151,7 +1151,7 @@ static mlir::ParseResult parseGenTypeDescOp(mlir::OpAsmParser &parser,
1151
1151
}
1152
1152
1153
1153
static void print (mlir::OpAsmPrinter &p, fir::GenTypeDescOp &op) {
1154
- p << op. getOperationName () << ' ' << op.getOperation ()->getAttr (" in_type" );
1154
+ p << ' ' << op.getOperation ()->getAttr (" in_type" );
1155
1155
p.printOptionalAttrDict (op.getOperation ()->getAttrs (), {" in_type" });
1156
1156
}
1157
1157
@@ -1230,7 +1230,6 @@ static ParseResult parseGlobalOp(OpAsmParser &parser, OperationState &result) {
1230
1230
}
1231
1231
1232
1232
static void print (mlir::OpAsmPrinter &p, fir::GlobalOp &op) {
1233
- p << op.getOperationName ();
1234
1233
if (op.linkName ().hasValue ())
1235
1234
p << ' ' << op.linkName ().getValue ();
1236
1235
p << ' ' ;
@@ -1333,7 +1332,7 @@ static mlir::ParseResult parseGlobalLenOp(mlir::OpAsmParser &parser,
1333
1332
}
1334
1333
1335
1334
static void print (mlir::OpAsmPrinter &p, fir::GlobalLenOp &op) {
1336
- p << op. getOperationName () << ' '
1335
+ p << ' '
1337
1336
<< op.getOperation ()->getAttr (fir::GlobalLenOp::getLenParamAttrName ())
1338
1337
<< " , " << op.getOperation ()->getAttr (fir::GlobalLenOp::getIntAttrName ());
1339
1338
}
@@ -1417,7 +1416,7 @@ static mlir::ParseResult parseFieldIndexOp(mlir::OpAsmParser &parser,
1417
1416
}
1418
1417
1419
1418
static void print (mlir::OpAsmPrinter &p, fir::FieldIndexOp &op) {
1420
- p << op. getOperationName () << ' '
1419
+ p << ' '
1421
1420
<< op.getOperation ()
1422
1421
->getAttrOfType <mlir::StringAttr>(fir::FieldIndexOp::getFieldAttrName ())
1423
1422
.getValue ()
@@ -1726,7 +1725,7 @@ static mlir::LogicalResult verify(fir::IterWhileOp op) {
1726
1725
}
1727
1726
1728
1727
static void print (mlir::OpAsmPrinter &p, fir::IterWhileOp op) {
1729
- p << fir::IterWhileOp::getOperationName () << " (" << op.getInductionVar ()
1728
+ p << " (" << op.getInductionVar ()
1730
1729
<< " = " << op.lowerBound () << " to " << op.upperBound () << " step "
1731
1730
<< op.step () << " ) and (" ;
1732
1731
assert (op.hasIterOperands ());
@@ -1810,7 +1809,7 @@ static mlir::ParseResult parseLenParamIndexOp(mlir::OpAsmParser &parser,
1810
1809
}
1811
1810
1812
1811
static void print (mlir::OpAsmPrinter &p, fir::LenParamIndexOp &op) {
1813
- p << op. getOperationName () << ' '
1812
+ p << ' '
1814
1813
<< op.getOperation ()
1815
1814
->getAttrOfType <mlir::StringAttr>(
1816
1815
fir::LenParamIndexOp::getFieldAttrName ())
@@ -1861,7 +1860,7 @@ static mlir::ParseResult parseLoadOp(mlir::OpAsmParser &parser,
1861
1860
}
1862
1861
1863
1862
static void print (mlir::OpAsmPrinter &p, fir::LoadOp &op) {
1864
- p << op. getOperationName () << ' ' ;
1863
+ p << ' ' ;
1865
1864
p.printOperand (op.memref ());
1866
1865
p.printOptionalAttrDict (op.getOperation ()->getAttrs (), {});
1867
1866
p << " : " << op.memref ().getType ();
@@ -2023,7 +2022,7 @@ static mlir::LogicalResult verify(fir::DoLoopOp op) {
2023
2022
2024
2023
static void print (mlir::OpAsmPrinter &p, fir::DoLoopOp op) {
2025
2024
bool printBlockTerminators = false ;
2026
- p << fir::DoLoopOp::getOperationName () << ' ' << op.getInductionVar () << " = "
2025
+ p << ' ' << op.getInductionVar () << " = "
2027
2026
<< op.lowerBound () << " to " << op.upperBound () << " step " << op.step ();
2028
2027
if (op.unordered ())
2029
2028
p << " unordered" ;
@@ -2113,7 +2112,7 @@ static mlir::ParseResult parseDTEntryOp(mlir::OpAsmParser &parser,
2113
2112
}
2114
2113
2115
2114
static void print (mlir::OpAsmPrinter &p, fir::DTEntryOp &op) {
2116
- p << op. getOperationName () << ' '
2115
+ p << ' '
2117
2116
<< op.getOperation ()->getAttr (fir::DTEntryOp::getMethodAttrName ()) << " , "
2118
2117
<< op.getOperation ()->getAttr (fir::DTEntryOp::getProcAttrName ());
2119
2118
}
@@ -2456,7 +2455,7 @@ static mlir::ParseResult parseSelectCase(mlir::OpAsmParser &parser,
2456
2455
}
2457
2456
2458
2457
static void print (mlir::OpAsmPrinter &p, fir::SelectCaseOp &op) {
2459
- p << op. getOperationName () << ' ' ;
2458
+ p << ' ' ;
2460
2459
p.printOperand (op.getSelector ());
2461
2460
p << " : " << op.getSelector ().getType () << " [" ;
2462
2461
auto cases = op.getOperation ()
@@ -2718,7 +2717,7 @@ unsigned fir::SelectTypeOp::targetOffsetSize() {
2718
2717
}
2719
2718
2720
2719
static void print (mlir::OpAsmPrinter &p, fir::SelectTypeOp &op) {
2721
- p << op. getOperationName () << ' ' ;
2720
+ p << ' ' ;
2722
2721
p.printOperand (op.getSelector ());
2723
2722
p << " : " << op.getSelector ().getType () << " [" ;
2724
2723
auto cases = op.getOperation ()
@@ -2899,7 +2898,7 @@ static mlir::ParseResult parseStoreOp(mlir::OpAsmParser &parser,
2899
2898
}
2900
2899
2901
2900
static void print (mlir::OpAsmPrinter &p, fir::StoreOp &op) {
2902
- p << op. getOperationName () << ' ' ;
2901
+ p << ' ' ;
2903
2902
p.printOperand (op.value ());
2904
2903
p << " to " ;
2905
2904
p.printOperand (op.memref ());
@@ -3022,7 +3021,7 @@ static mlir::ParseResult parseStringLitOp(mlir::OpAsmParser &parser,
3022
3021
}
3023
3022
3024
3023
static void print (mlir::OpAsmPrinter &p, fir::StringLitOp &op) {
3025
- p << op. getOperationName () << ' ' << op.getValue () << ' (' ;
3024
+ p << ' ' << op.getValue () << ' (' ;
3026
3025
p << op.getSize ().cast <mlir::IntegerAttr>().getValue () << " ) : " ;
3027
3026
p.printType (op.getType ());
3028
3027
}
@@ -3119,7 +3118,7 @@ static LogicalResult verify(fir::IfOp op) {
3119
3118
3120
3119
static void print (mlir::OpAsmPrinter &p, fir::IfOp op) {
3121
3120
bool printBlockTerminators = false ;
3122
- p << fir::IfOp::getOperationName () << ' ' << op.condition ();
3121
+ p << ' ' << op.condition ();
3123
3122
if (!op.results ().empty ()) {
3124
3123
p << " -> (" << op.getResultTypes () << ' )' ;
3125
3124
printBlockTerminators = true ;
@@ -3189,7 +3188,7 @@ static void printBinaryOp(Operation *op, OpAsmPrinter &p) {
3189
3188
assert (op->getNumOperands () == 2 && " binary op must have two operands" );
3190
3189
assert (op->getNumResults () == 1 && " binary op must have one result" );
3191
3190
3192
- p << op-> getName () << ' ' << op->getOperand (0 ) << " , " << op->getOperand (1 );
3191
+ p << ' ' << op->getOperand (0 ) << " , " << op->getOperand (1 );
3193
3192
p.printOptionalAttrDict (op->getAttrs ());
3194
3193
p << " : " << op->getResult (0 ).getType ();
3195
3194
}
@@ -3199,7 +3198,7 @@ static void printUnaryOp(Operation *op, OpAsmPrinter &p) {
3199
3198
assert (op->getNumOperands () == 1 && " unary op must have one operand" );
3200
3199
assert (op->getNumResults () == 1 && " unary op must have one result" );
3201
3200
3202
- p << op-> getName () << ' ' << op->getOperand (0 );
3201
+ p << ' ' << op->getOperand (0 );
3203
3202
p.printOptionalAttrDict (op->getAttrs ());
3204
3203
p << " : " << op->getResult (0 ).getType ();
3205
3204
}
0 commit comments