@@ -668,7 +668,7 @@ class fir_IntegralSwitchTerminatorOp<string mnemonic,
668
668
printSuccessorAtIndex(p, i);
669
669
}
670
670
p << ']';
671
- p.printOptionalAttrDict(getAttrs(), {getCasesAttr(), getCompareOffsetAttr(),
671
+ p.printOptionalAttrDict((*this)-> getAttrs(), {getCasesAttr(), getCompareOffsetAttr(),
672
672
getTargetOffsetAttr(), getOperandSegmentSizeAttr()});
673
673
}];
674
674
@@ -796,7 +796,7 @@ def fir_SelectCaseOp : fir_SwitchTerminatorOp<"select_case"> {
796
796
printSuccessorAtIndex(p, i);
797
797
}
798
798
p << ']';
799
- p.printOptionalAttrDict(getAttrs(), {getCasesAttr(), getCompareOffsetAttr(),
799
+ p.printOptionalAttrDict((*this)-> getAttrs(), {getCasesAttr(), getCompareOffsetAttr(),
800
800
getTargetOffsetAttr(), getOperandSegmentSizeAttr()});
801
801
}];
802
802
@@ -903,7 +903,7 @@ def fir_SelectTypeOp : fir_SwitchTerminatorOp<"select_type"> {
903
903
printSuccessorAtIndex(p, i);
904
904
}
905
905
p << ']';
906
- p.printOptionalAttrDict(getAttrs(), {getCasesAttr(), getCompareOffsetAttr(),
906
+ p.printOptionalAttrDict((*this)-> getAttrs(), {getCasesAttr(), getCompareOffsetAttr(),
907
907
getTargetOffsetAttr(), getOperandSegmentSizeAttr()});
908
908
}];
909
909
@@ -1028,7 +1028,7 @@ def fir_EmboxOp : fir_Op<"embox", [NoSideEffect]> {
1028
1028
} else if (auto map = (*this)->getAttr(layoutName())) {
1029
1029
p << " [" << map << ']';
1030
1030
}
1031
- p.printOptionalAttrDict(getAttrs(), {layoutName(), lenpName()});
1031
+ p.printOptionalAttrDict((*this)-> getAttrs(), {layoutName(), lenpName()});
1032
1032
p << " : ";
1033
1033
p.printFunctionalType(getOperation());
1034
1034
}];
@@ -1782,7 +1782,7 @@ def fir_CoordinateOp : fir_Op<"coordinate_of", [NoSideEffect]> {
1782
1782
1783
1783
let printer = [{
1784
1784
p << getOperationName() << ' ' << (*this)->getOperands();
1785
- p.printOptionalAttrDict(getAttrs(), /*elidedAttrs=*/{baseType()});
1785
+ p.printOptionalAttrDict((*this)-> getAttrs(), /*elidedAttrs=*/{baseType()});
1786
1786
p << " : ";
1787
1787
p.printFunctionalType((*this)->getOperandTypes(),
1788
1788
(*this)->getResultTypes());
@@ -2557,7 +2557,7 @@ def fir_DispatchOp : fir_Op<"dispatch",
2557
2557
p.printOperands(args());
2558
2558
}
2559
2559
p << ')';
2560
- p.printOptionalAttrDict(getAttrs(), {"fn_type", "method"});
2560
+ p.printOptionalAttrDict((*this)-> getAttrs(), {"fn_type", "method"});
2561
2561
auto resTy{getResultTypes()};
2562
2562
llvm::SmallVector<mlir::Type, 8> argTy(getOperandTypes());
2563
2563
p << " : " << mlir::FunctionType::get(getContext(), argTy, resTy);
@@ -2986,7 +2986,7 @@ def fir_GenTypeDescOp : fir_OneResultOp<"gentypedesc", [NoSideEffect]> {
2986
2986
2987
2987
let printer = [{
2988
2988
p << getOperationName() << ' ' << (*this)->getAttr("in_type");
2989
- p.printOptionalAttrDict(getAttrs(), {"in_type"});
2989
+ p.printOptionalAttrDict((*this)-> getAttrs(), {"in_type"});
2990
2990
}];
2991
2991
2992
2992
let builders = [
0 commit comments