Home
last modified time | relevance | path

Searched refs:charBox (Results 1 – 7 of 7) sorted by relevance

/llvm-project-15.0.7/flang/lib/Optimizer/Builder/
H A DCharacter.cpp381 const auto *charBox = source.getCharBox(); in createTempFrom() local
382 if (!charBox) in createTempFrom()
384 auto len = charBox->getLen(); in createTempFrom()
385 auto sourceTy = charBox->getBuffer().getType(); in createTempFrom()
388 createCopy(temp, *charBox, len); in createTempFrom()
392 builder.create<fir::StoreOp>(loc, charBox->getBuffer(), ref); in createTempFrom()
/llvm-project-15.0.7/flang/lib/Lower/
H A DVectorSubscripts.cpp421 const fir::CharBoxValue *charBox = element.getCharBox(); in getElementAt() local
422 assert(charBox && "substring requires CharBox base"); in getElementAt()
424 return helper.createSubstring(*charBox, substringBounds); in getElementAt()
H A DHostAssociations.cpp204 const fir::CharBoxValue *charBox = args.hostValue.getCharBox(); in instantiateHostTuple() local
205 assert(charBox && "host value must be a fir::CharBoxValue"); in instantiateHostTuple()
208 .createEmbox(*charBox); in instantiateHostTuple()
H A DIntrinsicCall.cpp1611 if (const fir::CharBoxValue *charBox = val.getCharBox()) { in toValue() local
1612 mlir::Value buffer = charBox->getBuffer(); in toValue()
1620 buffer, charBox->getLen()); in toValue()
2573 charArgs[i] = *charBox; in genDateAndTime()
2961 const fir::CharBoxValue *charBox = args[0].getCharBox(); in genIchar() local
2962 if (!charBox) in genIchar()
2966 mlir::Value buffer = charBox->getBuffer(); in genIchar()
3244 const fir::CharBoxValue *charBox = args[0].getCharBox(); in genLenTrim() local
3245 if (!charBox) in genLenTrim()
3333 const fir::CharBoxValue *charBox = args[0].getCharBox(); in genMerge() local
[all …]
H A DConvertExpr.cpp1278 const fir::CharBoxValue *charBox = scalarChar.getCharBox(); in replaceScalarCharacterLength() local
1279 if (!charBox) in replaceScalarCharacterLength()
1281 mlir::Value charAddr = charBox->getAddr(); in replaceScalarCharacterLength()
2903 if (const fir::CharBoxValue *charBox = actualArg.getCharBox()) { in createScalarTempForArgThatMayBeAbsent() local
2904 mlir::Value len = charBox->getLen(); in createScalarTempForArgThatMayBeAbsent()
3384 const fir::CharBoxValue *charBox = value.getCharBox(); in genScalarUserDefinedAssignmentCall() local
3385 assert(charBox && "argument type mismatch in elemental user assignment"); in genScalarUserDefinedAssignmentCall()
3387 *charBox); in genScalarUserDefinedAssignmentCall()
H A DBridge.cpp2239 if (const fir::CharBoxValue *charBox = rhs.getCharBox()) in genAssignment() local
2240 lengthParams.push_back(charBox->getLen()); in genAssignment()
/llvm-project-15.0.7/flang/unittests/Optimizer/Builder/
H A DFIRBuilderTest.cpp303 auto *charBox = strLit.getCharBox(); in TEST_F() local
304 EXPECT_FALSE(fir::isArray(*charBox)); in TEST_F()
305 checkIntegerConstant(charBox->getLen(), builder.getCharacterLengthType(), 16); in TEST_F()
308 auto addr = charBox->getBuffer(); in TEST_F()