Home
last modified time | relevance | path

Searched refs:exv (Results 1 – 11 of 11) sorted by relevance

/llvm-project-15.0.7/flang/lib/Optimizer/Builder/
H A DBoxValue.cpp21 mlir::Value fir::getBase(const fir::ExtendedValue &exv) { in getBase() argument
26 mlir::Value fir::getLen(const fir::ExtendedValue &exv) { in getLen() argument
27 return exv.match( in getLen()
41 return exv.match( in substBase()
47 fir::getTypeParams(const fir::ExtendedValue &exv) { in getTypeParams() argument
49 auto baseTy = fir::getBase(exv).getType(); in getTypeParams()
55 [[maybe_unused]] auto loc = fir::getBase(exv).getLoc(); in getTypeParams()
56 return exv.match( in getTypeParams()
72 bool fir::isArray(const fir::ExtendedValue &exv) { in isArray() argument
73 return exv.match( in isArray()
[all …]
H A DFIRBuilder.cpp387 return exv.match( in createShape()
436 return exv.match( in createSlice()
459 mlir::Value itemAddr = fir::getBase(exv); in createBox()
469 return exv.match( in createBox()
471 mlir::Value s = createShape(loc, exv); in createBox()
475 mlir::Value s = createShape(loc, exv); in createBox()
699 return exv.match( in getNonDefaultLowerBounds()
719 return exv.match( in getNonDeferredLenParams()
771 const fir::ExtendedValue &exv) { in getTypeParams() argument
774 return {fir::factory::readCharLen(builder, loc, exv)}; in getTypeParams()
[all …]
H A DCharacter.cpp636 const fir::ExtendedValue &exv) { in hasConstantLengthInType() argument
637 auto charTy = recoverCharacterType(fir::getBase(exv).getType()); in hasConstantLengthInType()
/llvm-project-15.0.7/flang/include/flang/Optimizer/Builder/
H A DBoxValue.h397 mlir::Value getBase(const ExtendedValue &exv);
401 mlir::Value getLen(const ExtendedValue &exv);
411 bool isArray(const ExtendedValue &exv);
511 inline bool isUnboxedValue(const ExtendedValue &exv) { in isUnboxedValue() argument
512 return exv.match( in isUnboxedValue()
519 inline mlir::Type getBaseTypeOf(const ExtendedValue &exv) { in getBaseTypeOf() argument
520 return exv.match( in getBaseTypeOf()
524 return fir::unwrapRefType(fir::getBase(exv).getType()); in getBaseTypeOf()
530 inline mlir::Type getElementTypeOf(const ExtendedValue &exv) { in getElementTypeOf() argument
531 return fir::unwrapSequenceType(getBaseTypeOf(exv)); in getElementTypeOf()
[all …]
H A DFIRBuilder.h298 mlir::Value createShape(mlir::Location loc, const fir::ExtendedValue &exv);
302 mlir::Value createSlice(mlir::Location loc, const fir::ExtendedValue &exv,
311 mlir::Value createBox(mlir::Location loc, const fir::ExtendedValue &exv);
442 const fir::ExtendedValue &exv);
448 getNonDeferredLenParams(const fir::ExtendedValue &exv);
/llvm-project-15.0.7/flang/lib/Lower/
H A DConvertExpr.cpp316 return exv; in placeScalarValueInMemory()
452 return exv; in genOptionalAddr()
465 return exv; in genOptionalBox()
2784 return exv; in readIfBoxValue()
3793 return exv; in lowerBoxedArrayExpr()
5199 return genarr(exv); in genProcRef()
5242 return exv.match( in convertAdjustedType()
6136 exv = absentBoxToUnallocatedBox(builder, loc, exv, isPresent); in genOptionalArrayFetch()
6286 exv.match( in computeElementSize()
6477 exv.match( in copyNextArrayCtorSection()
[all …]
H A DSymbolMap.cpp20 const fir::ExtendedValue &exv, in addSymbol() argument
22 exv.match([&](const fir::UnboxedValue &v) { addSymbol(sym, v, force); }, in addSymbol()
H A DBridge.cpp445 fir::ExtendedValue exv = hexv.match( in createHostAssociateVarClone() local
484 mlir::Value cloneVal = fir::getBase(exv); in createHostAssociateVarClone()
492 return bindIfNewSymbol(sym, exv); in createHostAssociateVarClone()
512 fir::ExtendedValue exv = getExtendedValue(sb); in copyHostAssociateVar() local
519 builder->setInsertionPointAfter(fir::getBase(exv).getDefiningOp()); in copyHostAssociateVar()
525 rhs = exv; in copyHostAssociateVar()
527 lhs = exv; in copyHostAssociateVar()
1697 fir::ExtendedValue exv = genExprAddr(*expr, stmtCtx, &loc); in genFIR() local
1698 return exv.match( in genFIR()
H A DIO.cpp326 fir::ExtendedValue exv = converter.genExprAddr(*expr, stmtCtx); in getNamelistGroup() local
327 mlir::Type type = fir::getBase(exv).getType(); in getNamelistGroup()
333 fir::factory::associateMutableBox(builder, loc, box, exv, in getNamelistGroup()
494 fir::ExtendedValue exv = converter.genExprAddr(loc, expr, stmtCtx); in genOutputItemList() local
497 if (!exv.getCharBox()) in genOutputItemList()
501 loc, outputFunc.getFunctionType().getInput(1), fir::getBase(exv))); in genOutputItemList()
503 loc, outputFunc.getFunctionType().getInput(2), fir::getLen(exv))); in genOutputItemList()
H A DConvertVariable.cpp585 fir::ExtendedValue exv = symMap.lookupSymbol(sym).toExtendedValue(); in defaultInitializeAtRuntime() local
591 fir::getBase(exv)); in defaultInitializeAtRuntime()
594 auto box = builder.createBox(loc, exv); in defaultInitializeAtRuntime()
599 mlir::Value box = builder.createBox(loc, exv); in defaultInitializeAtRuntime()
H A DIntrinsicCall.cpp109 static bool isStaticallyAbsent(const fir::ExtendedValue &exv) { in isStaticallyAbsent() argument
110 return !fir::getBase(exv); in isStaticallyAbsent()
126 static bool isStaticallyPresent(const fir::ExtendedValue &exv) { in isStaticallyPresent() argument
127 return !isStaticallyAbsent(exv); in isStaticallyPresent()
3430 auto unbox = [&](fir::ExtendedValue exv) { in genMvbits() argument
3431 const mlir::Value *arg = exv.getUnboxed(); in genMvbits()
3923 static bool hasDefaultLowerBound(const fir::ExtendedValue &exv) { in hasDefaultLowerBound() argument
3924 return exv.match( in hasDefaultLowerBound()