Skip to content

Commit 5077d42

Browse files
committed
[flang][fir][NFC] Removes deprecated messages in builds.
1 parent 4a8530f commit 5077d42

File tree

2 files changed

+9
-9
lines changed

2 files changed

+9
-9
lines changed

flang/include/flang/Optimizer/Dialect/FIROps.td

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -668,7 +668,7 @@ class fir_IntegralSwitchTerminatorOp<string mnemonic,
668668
printSuccessorAtIndex(p, i);
669669
}
670670
p << ']';
671-
p.printOptionalAttrDict(getAttrs(), {getCasesAttr(), getCompareOffsetAttr(),
671+
p.printOptionalAttrDict((*this)->getAttrs(), {getCasesAttr(), getCompareOffsetAttr(),
672672
getTargetOffsetAttr(), getOperandSegmentSizeAttr()});
673673
}];
674674

@@ -796,7 +796,7 @@ def fir_SelectCaseOp : fir_SwitchTerminatorOp<"select_case"> {
796796
printSuccessorAtIndex(p, i);
797797
}
798798
p << ']';
799-
p.printOptionalAttrDict(getAttrs(), {getCasesAttr(), getCompareOffsetAttr(),
799+
p.printOptionalAttrDict((*this)->getAttrs(), {getCasesAttr(), getCompareOffsetAttr(),
800800
getTargetOffsetAttr(), getOperandSegmentSizeAttr()});
801801
}];
802802

@@ -903,7 +903,7 @@ def fir_SelectTypeOp : fir_SwitchTerminatorOp<"select_type"> {
903903
printSuccessorAtIndex(p, i);
904904
}
905905
p << ']';
906-
p.printOptionalAttrDict(getAttrs(), {getCasesAttr(), getCompareOffsetAttr(),
906+
p.printOptionalAttrDict((*this)->getAttrs(), {getCasesAttr(), getCompareOffsetAttr(),
907907
getTargetOffsetAttr(), getOperandSegmentSizeAttr()});
908908
}];
909909

@@ -1028,7 +1028,7 @@ def fir_EmboxOp : fir_Op<"embox", [NoSideEffect]> {
10281028
} else if (auto map = (*this)->getAttr(layoutName())) {
10291029
p << " [" << map << ']';
10301030
}
1031-
p.printOptionalAttrDict(getAttrs(), {layoutName(), lenpName()});
1031+
p.printOptionalAttrDict((*this)->getAttrs(), {layoutName(), lenpName()});
10321032
p << " : ";
10331033
p.printFunctionalType(getOperation());
10341034
}];
@@ -1782,7 +1782,7 @@ def fir_CoordinateOp : fir_Op<"coordinate_of", [NoSideEffect]> {
17821782

17831783
let printer = [{
17841784
p << getOperationName() << ' ' << (*this)->getOperands();
1785-
p.printOptionalAttrDict(getAttrs(), /*elidedAttrs=*/{baseType()});
1785+
p.printOptionalAttrDict((*this)->getAttrs(), /*elidedAttrs=*/{baseType()});
17861786
p << " : ";
17871787
p.printFunctionalType((*this)->getOperandTypes(),
17881788
(*this)->getResultTypes());
@@ -2557,7 +2557,7 @@ def fir_DispatchOp : fir_Op<"dispatch",
25572557
p.printOperands(args());
25582558
}
25592559
p << ')';
2560-
p.printOptionalAttrDict(getAttrs(), {"fn_type", "method"});
2560+
p.printOptionalAttrDict((*this)->getAttrs(), {"fn_type", "method"});
25612561
auto resTy{getResultTypes()};
25622562
llvm::SmallVector<mlir::Type, 8> argTy(getOperandTypes());
25632563
p << " : " << mlir::FunctionType::get(getContext(), argTy, resTy);
@@ -2986,7 +2986,7 @@ def fir_GenTypeDescOp : fir_OneResultOp<"gentypedesc", [NoSideEffect]> {
29862986

29872987
let printer = [{
29882988
p << getOperationName() << ' ' << (*this)->getAttr("in_type");
2989-
p.printOptionalAttrDict(getAttrs(), {"in_type"});
2989+
p.printOptionalAttrDict((*this)->getAttrs(), {"in_type"});
29902990
}];
29912991

29922992
let builders = [

flang/lib/Optimizer/Dialect/FIROps.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -255,7 +255,7 @@ static void printCallOp(mlir::OpAsmPrinter &p, fir::CallOp &op) {
255255
else
256256
p << op.getOperand(0);
257257
p << '(' << op->getOperands().drop_front(isDirect ? 0 : 1) << ')';
258-
p.printOptionalAttrDict(op.getAttrs(), {fir::CallOp::calleeAttrName()});
258+
p.printOptionalAttrDict(op->getAttrs(), {fir::CallOp::calleeAttrName()});
259259
auto resultTypes{op.getResultTypes()};
260260
llvm::SmallVector<Type, 8> argTypes(
261261
llvm::drop_begin(op.getOperandTypes(), isDirect ? 0 : 1));
@@ -336,7 +336,7 @@ static void printCmpOp(OpAsmPrinter &p, OPTY op) {
336336
p.printOperand(op.lhs());
337337
p << ", ";
338338
p.printOperand(op.rhs());
339-
p.printOptionalAttrDict(op.getAttrs(),
339+
p.printOptionalAttrDict(op->getAttrs(),
340340
/*elidedAttrs=*/{OPTY::getPredicateAttrName()});
341341
p << " : " << op.lhs().getType();
342342
}

0 commit comments

Comments
 (0)