Lines Matching defs:isPresent
467 mlir::Value isPresent) {
472 .genIfOp(loc, {eleType}, isPresent,
491 mlir::Value isPresent) {
508 mlir::Value isPresent) {
526 loc, boxType, isPresent, box, absent);
589 /// outside of a fir.if (isPresent) region. However, the usages of the value
590 /// read from such box should still only be done in a fir.if(isPresent).
594 mlir::Value isPresent) {
601 builder.create<mlir::arith::SelectOp>(loc, isPresent, box, emptyBox);
1861 mlir::Value isPresent =
1863 operands.emplace_back(optionalArg, isPresent);
1894 auto isPresent = [&](std::size_t i) -> std::optional<mlir::Value> {
1898 builder, loc, name, resultType, isPresent, getArgument,
1947 mlir::Value isPresent = genActualIsPresentTest(builder, loc, optional);
1951 genOptionalValue(builder, loc, optional, isPresent));
1955 genOptionalAddr(builder, loc, optional, isPresent));
1959 genOptionalBox(builder, loc, optional, isPresent));
2427 mlir::Value isPresent = fir::factory::genIsAllocatedOrAssociatedTest(
2431 return {actualArg, isPresent};
2439 mlir::Value isPresent = builder.create<fir::IsPresentOp>(
2442 return {actualArg, isPresent};
2444 absentBoxToUnallocatedBox(builder, loc, actualArg, isPresent);
2445 return {safeToReadBox, isPresent};
2452 mlir::Value isPresent) {
2460 len = builder.create<mlir::arith::SelectOp>(loc, isPresent, len, zero);
2512 auto [argAddr, isPresent] =
2521 auto [actualArgBind, isPresent] = prepareActualThatMayBeAbsent(expr);
2524 return {actualArg, isPresent};
2527 return {genCopyIn(actualArg, arg, copyOutPairs, isPresent, byValue),
2528 isPresent};
2532 createScalarTempForArgThatMayBeAbsent(actualArg, isPresent);
2536 .genIfOp(loc, {tempAddrTy}, isPresent,
2549 return {fir::substBase(temp, selectAddr), isPresent};
2578 return {readIfBoxValue(argAddr), isPresent};
2827 mlir::Value isPresent = genActualIsPresentTest(builder, loc, opt);
2830 .genIfOp(loc, {argTy}, isPresent, /*withElseRegion=*/true)
2859 mlir::Value isPresent =
2862 .genIfOp(loc, {actualTy}, isPresent,
4669 mlir::Value isPresent =
4675 isPresent);
4677 auto [cc, isPresent, _] = this->genOptionalArrayFetch(expr);
4678 operands.emplace_back(cc, isPresent);
4697 auto isPresent = [&](std::size_t i) -> std::optional<mlir::Value> {
4701 *bldr, loc, name, retTy, isPresent, getArgument, operands.size(),
5983 mlir::Value isPresent = genActualIsPresentTest(builder, loc, optionalArg);
6001 exv = absentBoxToUnallocatedBox(builder, loc, exv, isPresent);
6032 return {cc, isPresent, eleType};
6050 mlir::Value isPresent = genActualIsPresentTest(builder, loc, optionalArg);
6052 fir::getBase(genOptionalValue(builder, loc, optionalArg, isPresent));
6057 mlir::Value isPresent;
6059 std::tie(cc, isPresent, eleType) = genOptionalArrayFetch(expr);
6063 .genIfOp(loc, {eleType}, isPresent,