/// Return the outermost loop in this FORALL nest.
fir::DoLoopOp getOuterLoop() {
assert(outerLoop.has_value());
- return outerLoop.getValue();
+ return outerLoop.value();
}
/// Return the statement context for the entire, outermost FORALL construct.
isPresentCheck(2) &&
"only ISHFTC SIZE arg is expected to be dynamically optional here");
assert(retTy && "ISFHTC must have a return type");
- mlir::Type resultType = retTy.getValue();
+ mlir::Type resultType = retTy.value();
llvm::SmallVector<fir::ExtendedValue> args;
args.push_back(getOperand(0));
args.push_back(getOperand(1));
args.push_back(builder
- .genIfOp(loc, {resultType}, isPresentCheck(2).getValue(),
+ .genIfOp(loc, {resultType}, isPresentCheck(2).value(),
/*withElseRegion=*/true)
.genThen([&]() {
fir::ExtendedValue sizeExv = getOperand(2);
OPTY::getPredicateAttrName())
.getInt());
assert(predSym.has_value() && "invalid symbol value for predicate");
- p << '"' << mlir::arith::stringifyCmpFPredicate(predSym.getValue()) << '"'
+ p << '"' << mlir::arith::stringifyCmpFPredicate(predSym.value()) << '"'
<< ", ";
p.printOperand(op.getLhs());
p << ", ";
fir::CmpcOp::getPredicateByName(llvm::StringRef name) {
auto pred = mlir::arith::symbolizeCmpFPredicate(name);
assert(pred.has_value() && "invalid predicate name");
- return pred.getValue();
+ return pred.value();
}
void fir::CmpcOp::print(mlir::OpAsmPrinter &p) { printCmpOp(p, *this); }