Home
last modified time | relevance | path

Searched refs:getLen (Results 1 – 21 of 21) sorted by relevance

/llvm-project-15.0.7/flang/lib/Optimizer/Builder/
H A DCharacter.cpp158 boxCharLen = box.getLen(); in toExtendedValue()
215 box.getLen()); in createEmbox()
267 if (charTy.getLen() != fir::CharacterType::unknownLen()) in createElementAddr()
268 extent = charTy.getLen(); in createElementAddr()
384 auto len = charBox->getLen(); in createTempFrom()
431 auto copyCount = lhs.getLen(); in createAssign()
454 lhs.getLen()); in createConcatenate()
456 rhs.getLen()); in createConcatenate()
609 return {b.getBuffer(), b.getLen()}; in createUnboxChar()
612 return {b.getBuffer(), b.getLen()}; in createUnboxChar()
[all …]
H A DBoxValue.cpp26 mlir::Value fir::getLen(const fir::ExtendedValue &exv) { in getLen() function in fir
28 [](const fir::CharBoxValue &x) { return x.getLen(); }, in getLen()
29 [](const fir::CharArrayBoxValue &x) { return x.getLen(); }, in getLen()
57 [](const fir::CharBoxValue &x) -> RT { return {x.getLen()}; }, in getTypeParams()
58 [](const fir::CharArrayBoxValue &x) -> RT { return {x.getLen()}; }, in getTypeParams()
83 return os << "boxchar { addr: " << box.getAddr() << ", len: " << box.getLen() in operator <<()
104 os << "boxchararray { addr: " << box.getAddr() << ", len : " << box.getLen(); in operator <<()
H A DMutableBox.cpp67 if (charTy.getLen() == fir::CharacterType::unknownLen()) in createNewFirBox()
344 if (charTy.getLen() == fir::CharacterType::unknownLen()) { in createUnallocatedBox()
476 /*extents=*/llvm::None, {ch.getLen()}); in associateMutableBox()
486 arr.getExtents(), {arr.getLen()}); in associateMutableBox()
575 {ch.getLen()}); in associateMutableBoxWithRemap()
583 {arr.getLen()}); in associateMutableBoxWithRemap()
642 if (charTy.getLen() == fir::CharacterType::unknownLen()) { in getNewLengths()
850 lenParams.push_back(fir::getLen(realloc.newValue)); in finalizeRealloc()
H A DFIRBuilder.cpp480 llvm::SmallVector<mlir::Value> lenParams{box.getLen()}; in createBox()
488 llvm::SmallVector<mlir::Value> lenParams{box.getLen()}; in createBox()
550 [&](const fir::CharBoxValue &x) -> mlir::Value { return x.getLen(); }, in readCharLen()
552 return x.getLen(); in readCharLen()
721 -> llvm::SmallVector<mlir::Value> { return {character.getLen()}; }, in getNonDeferredLenParams()
723 -> llvm::SmallVector<mlir::Value> { return {character.getLen()}; }, in getNonDeferredLenParams()
898 builder.createIntegerConstant(loc, lenTy, charTy.getLen())); in componentToExtendedValue()
922 auto cstLen = charTy.getLen(); in componentToExtendedValue()
1180 return builder.createIntegerConstant(loc, idxTy, charTy.getLen()); in genLenOfCharacter()
/llvm-project-15.0.7/flang/include/flang/Optimizer/Builder/
H A DFactory.h50 srcTy.getLen() == dstTy.getLen()) { in genCharacterCopy()
70 if (!srcLen && !dstLen && srcTy.getLen() >= dstTy.getLen()) { in genCharacterCopy()
72 loc, dstTy.getLen() - 1); in genCharacterCopy()
103 loc, dstTy.getLen() - 1) in genCharacterCopy()
114 srcTy.getLen()) in genCharacterCopy()
H A DBoxValue.h89 mlir::Value getLen() const { return len; } in getLen() function
401 mlir::Value getLen(const ExtendedValue &exv);
/llvm-project-15.0.7/flang/lib/Optimizer/CodeGen/
H A DTypeConverter.h110 return mlir::VectorType::get(llvm::ArrayRef<int64_t>(vecTy.getLen()), in LLVMTypeConverter()
294 if (charTy.getLen() == fir::CharacterType::unknownLen()) in convertCharType()
296 return mlir::LLVM::LLVMArrayType::get(iTy, charTy.getLen()); in convertCharType()
H A DCodeGen.cpp1234 if (ty.getLen() != fir::CharacterType::unknownLen()) {
1235 auto len = this->genConstantOffset(loc, rewriter, ty.getLen());
1608 charTy.getLen() * lowerTy().characterBitsize(charTy) / 8); in matchAndRewrite()
/llvm-project-15.0.7/flang/lib/Optimizer/Builder/Runtime/
H A DCharacter.cpp139 return genCharCompare(builder, loc, cmp, lhsBuffer, fir::getLen(lhs), in genCharCompare()
140 rhsBuffer, fir::getLen(rhs)); in genCharCompare()
/llvm-project-15.0.7/flang/unittests/Optimizer/Builder/
H A DFIRBuilderTest.cpp305 checkIntegerConstant(charBox->getLen(), builder.getCharacterLengthType(), 16); in TEST_F()
306 auto generalGetLen = fir::getLen(strLit); in TEST_F()
399 EXPECT_EQ(strLit.getCharBox()->getLen(), len); in TEST_F()
/llvm-project-15.0.7/flang/include/flang/Optimizer/Dialect/
H A DFIRType.h139 return ct.getLen() != fir::CharacterType::singleton(); in isa_char_string()
H A DFIRTypes.td133 bool hasDynamicLen() { return getLen() == unknownLen(); }
/llvm-project-15.0.7/flang/lib/Lower/
H A DRuntime.cpp67 builder.createConvert(loc, calleeType.getInput(1), x.getLen())); in genStopStatement()
213 len = arg->getLen(); in genDateAndTime()
H A DIO.cpp191 fir::getLen(*csi.ioMsg))}); in genEndIO()
503 loc, outputFunc.getFunctionType().getInput(2), fir::getLen(exv))); in genOutputItemList()
591 mlir::Value len = fir::getLen(item); in createIoRuntimeCallForItem()
810 return {x.getBuffer(), x.getLen()}; in genBuffer()
814 return {scalar.getBuffer(), scalar.getLen()}; in genBuffer()
1571 fir::getLen(*csi.ioMsg))); in genIOUnitNumber()
2056 builder.createConvert(loc, specFuncTy.getInput(3), fir::getLen(str))}; in genInquireSpec()
2209 builder.createConvert(loc, beginFuncTy.getInput(1), fir::getLen(file)), in genInquireStatement()
H A DConvertExpr.cpp1348 mlir::Value bufferSize = boxchar.getLen(); in genval()
1376 boxchar.getLen(), dest); in genval()
1377 return fir::CharBoxValue{dest, boxchar.getLen()}; in genval()
2049 mlir::Value delta = arr.getLen(); in genOffsetAndCoordinateOp()
2904 mlir::Value len = charBox->getLen(); in createScalarTempForArgThatMayBeAbsent()
3192 fir::getLen(argRef)); in genRawProcedureRef()
3481 dstLen = dstChar.getLen(); in createCharArrayAmend()
3824 loc, builder.getCharacterLengthType(), charTy.getLen()); in lowerNewArrayExpression()
5244 mlir::Value len = cb.getLen(); in convertAdjustedType()
5905 fir::CharacterType::LenType charLen = charTy.getLen(); in genarr()
[all …]
H A DIntrinsicCall.cpp1620 buffer, charBox->getLen()); in toValue()
3071 mlir::Value stringLen = fir::getLen(args[0]); in genIndex()
3073 mlir::Value substringLen = fir::getLen(args[1]); in genIndex()
3259 builder, loc, pred, fir::getBase(args[0]), fir::getLen(args[0]), in genCharacterCompare()
3260 fir::getBase(args[1]), fir::getLen(args[1])); in genCharacterCompare()
3334 fir::CharBoxValue charRslt(rslt, charBox->getLen()); in genMerge()
3717 mlir::Value stringLen = fir::getLen(args[0]); in genScan()
3720 mlir::Value setLen = fir::getLen(args[1]); in genScan()
3990 return fir::CharArrayBoxValue{x.getAddr(), x.getLen(), shape, in createBoxForLBOUND()
4354 mlir::Value stringLen = fir::getLen(args[0]); in genVerify()
[all …]
H A DConvertVariable.cpp241 auto targetLen = targetEleTy.cast<fir::CharacterType>().getLen(); in genInitialDataTarget()
242 auto ptrLen = unwrapElementType(boxType).cast<fir::CharacterType>().getLen(); in genInitialDataTarget()
H A DBridge.cpp819 .createEmboxChar(x.getBuffer(), x.getLen()); in genReturnSymbol()
1701 .createEmboxChar(cbv.getAddr(), cbv.getLen()); in genFIR()
2240 lengthParams.push_back(charBox->getLen()); in genAssignment()
/llvm-project-15.0.7/flang/lib/Optimizer/Dialect/
H A DFIROps.cpp623 return box.getLen(); in fold()
1023 if (t.getLen() == fir::CharacterType::singleton()) in verify()
1156 if (strTy.getLen() != fir::CharacterType::unknownLen()) in verify()
2213 return c1.getLen() == c2.getLen(); in areCompatibleCharacterTypes()
3176 int64_t length = len ? *len : inType.getLen(); in build()
3199 std::int64_t length = len ? *len : inType.getLen(); in build()
3212 std::int64_t length = len ? *len : inType.getLen(); in build()
3225 std::int64_t length = len ? *len : inType.getLen(); in build()
H A DFIRType.cpp458 auto len = getLen(); in print()
914 printer << "<" << getLen() << ':' << getEleTy() << '>'; in print()
/llvm-project-15.0.7/flang/lib/Optimizer/Transforms/
H A DArrayValueCopy.cpp938 return builder.createIntegerConstant(loc, charLenTy, charTy.getLen()); in getCharacterLen()