| /llvm-project-15.0.7/flang/unittests/Optimizer/Builder/Runtime/ |
| H A D | CommandTest.cpp | 23 mlir::Type charTy = fir::BoxType::get(firBuilder->getNoneType()); in TEST_F() local 25 mlir::Value value = firBuilder->create<fir::UndefOp>(loc, charTy); in TEST_F() 26 mlir::Value errmsg = firBuilder->create<fir::UndefOp>(loc, charTy); in TEST_F() 45 mlir::Type charTy = fir::BoxType::get(firBuilder->getNoneType()); in TEST_F() local 46 mlir::Value name = firBuilder->create<fir::UndefOp>(loc, charTy); in TEST_F() 47 mlir::Value value = firBuilder->create<fir::UndefOp>(loc, charTy); in TEST_F() 49 mlir::Value errmsg = firBuilder->create<fir::UndefOp>(loc, charTy); in TEST_F() 58 mlir::Type charTy = fir::BoxType::get(firBuilder->getNoneType()); in TEST_F() local 59 mlir::Value name = firBuilder->create<fir::UndefOp>(loc, charTy); in TEST_F()
|
| H A D | CharacterTest.cpp | 48 mlir::Type charTy = fir::CharacterType::get(builder.getContext(), kind, 10); in checkCharCompare1AllTypeForKind() local 49 mlir::Type seqCharTy = fir::SequenceType::get(charTy, 10); in checkCharCompare1AllTypeForKind() 50 mlir::Type refCharTy = fir::ReferenceType::get(charTy); in checkCharCompare1AllTypeForKind() 52 mlir::Type boxTy = fir::BoxType::get(charTy); in checkCharCompare1AllTypeForKind() 53 checkCharCompare1(builder, charTy, fctName); in checkCharCompare1AllTypeForKind() 160 mlir::Type charTy = fir::CharacterType::get(builder.getContext(), kind, 10); in checkGenScan() local 161 mlir::Type boxTy = fir::BoxType::get(charTy); in checkGenScan() 194 mlir::Type charTy = fir::CharacterType::get(builder.getContext(), kind, 10); in checkGenVerify() local 195 mlir::Type boxTy = fir::BoxType::get(charTy); in checkGenVerify()
|
| /llvm-project-15.0.7/clang/test/Misc/ |
| H A D | integer-literal-printing.cpp | 19 enum class charTy : char { enum 23 template <charTy T> struct Type4Helper; 24 template <> struct Type4Helper<charTy::c> { typedef charTy Ty; }; 25 template <charTy T, typename Type4Helper<T>::Ty U> struct Type4 {}; 73 …struct Type4<charTy::c, "4"> t4; // expected-error{{value of type 'const char[2]' is not implicitl… in Function()
|
| /llvm-project-15.0.7/flang/lib/Optimizer/Builder/ |
| H A D | Character.cpp | 43 if (auto charTy = type.dyn_cast<fir::CharacterType>()) in recoverCharacterType() local 44 return charTy; in recoverCharacterType() 105 auto charTy = ty.dyn_cast<fir::CharacterType>(); in materializeValue() local 106 if (!charTy || charTy.getLen() == fir::CharacterType::unknownLen()) { in materializeValue() 112 auto temp = builder.create<fir::AllocaOp>(loc, charTy); in materializeValue() 237 auto type = fir::ReferenceType::get(charTy); in toScalarCharacter() 263 auto charTy = recoverCharacterType(bufferType); in createElementAddr() local 268 extent = charTy.getLen(); in createElementAddr() 496 auto resultType = builder.getRefType(charTy); in createSubstring() 638 return charTy.hasConstantLen(); in hasConstantLengthInType() [all …]
|
| H A D | MutableBox.cpp | 58 if (auto charTy = box.getEleTy().dyn_cast<fir::CharacterType>()) { in createNewFirBox() local 67 if (charTy.getLen() == fir::CharacterType::unknownLen()) in createNewFirBox() 343 if (auto charTy = eleTy.dyn_cast<fir::CharacterType>()) { in createUnallocatedBox() local 344 if (charTy.getLen() == fir::CharacterType::unknownLen()) { in createUnallocatedBox() 641 if (auto charTy = box.getEleTy().dyn_cast<fir::CharacterType>()) { in getNewLengths() local 642 if (charTy.getLen() == fir::CharacterType::unknownLen()) { in getNewLengths()
|
| H A D | FIRBuilder.cpp | 748 } else if (auto charTy = eleTy.dyn_cast<fir::CharacterType>()) { in getFromBox() local 749 if (charTy.hasDynamicLen()) { in getFromBox() 753 builder.getKindMap().getCharacterBitsize(charTy.getFKind()) / 8; in getFromBox() 894 if (auto charTy = eleTy.dyn_cast<fir::CharacterType>()) { in componentToExtendedValue() local 896 if (charTy.hasConstantLen()) in componentToExtendedValue() 898 builder.createIntegerConstant(loc, lenTy, charTy.getLen())); in componentToExtendedValue() 921 if (auto charTy = fieldTy.dyn_cast<fir::CharacterType>()) { in componentToExtendedValue() local 922 auto cstLen = charTy.getLen(); in componentToExtendedValue() 1178 if (auto charTy = eleTy.dyn_cast<fir::CharacterType>()) { in genLenOfCharacter() local 1180 return builder.createIntegerConstant(loc, idxTy, charTy.getLen()); in genLenOfCharacter()
|
| /llvm-project-15.0.7/flang/lib/Optimizer/CodeGen/ |
| H A D | TypeConverter.h | 68 [&](fir::CharacterType charTy) { return convertCharType(charTy); }); in LLVMTypeConverter() 286 unsigned characterBitsize(fir::CharacterType charTy) { in characterBitsize() argument 287 return kindMapping.getCharacterBitsize(charTy.getFKind()); in characterBitsize() 292 mlir::Type convertCharType(fir::CharacterType charTy) { in convertCharType() argument 293 auto iTy = mlir::IntegerType::get(&getContext(), characterBitsize(charTy)); in convertCharType() 294 if (charTy.getLen() == fir::CharacterType::unknownLen()) in convertCharType() 296 return mlir::LLVM::LLVMArrayType::get(iTy, charTy.getLen()); in convertCharType()
|
| H A D | CodeGen.cpp | 631 auto charTy = constop.getType().cast<fir::CharacterType>(); in matchAndRewrite() local 632 unsigned bits = lowerTy().characterBitsize(charTy); in matchAndRewrite() 1570 if (auto charTy = seqEleTy.dyn_cast<fir::CharacterType>()) { in matchAndRewrite() local 1573 loc, i64Ty, rewriter, lowerTy().characterBitsize(charTy) / 8); in matchAndRewrite() 1602 auto charTy = seqEleTy.cast<fir::CharacterType>(); in matchAndRewrite() local 1603 if (fir::hasDynamicSize(charTy)) { in matchAndRewrite() 1608 charTy.getLen() * lowerTy().characterBitsize(charTy) / 8); in matchAndRewrite() 1738 if (auto charTy = inputEleTy.dyn_cast<fir::CharacterType>()) { in matchAndRewrite() local 1741 if (charTy.getFKind() != 1) { in matchAndRewrite() 1743 genConstantIndex(loc, idxTy, rewriter, charTy.getFKind()); in matchAndRewrite()
|
| /llvm-project-15.0.7/flang/include/flang/Optimizer/Dialect/ |
| H A D | FIRType.h | 150 if (auto charTy = t.dyn_cast<fir::CharacterType>()) in characterWithDynamicLen() local 151 return charTy.hasDynamicLen(); in characterWithDynamicLen()
|
| /llvm-project-15.0.7/flang/lib/Optimizer/Transforms/ |
| H A D | ArrayValueCopy.cpp | 914 ArrayLoadOp load, CharacterType charTy) { in getCharacterLen() argument 916 if (charTy.hasDynamicLen()) { in getCharacterLen() 923 builder.getKindMap().getCharacterBitsize(charTy.getFKind()); in getCharacterLen() 938 return builder.createIntegerConstant(loc, charLenTy, charTy.getLen()); in getCharacterLen() 978 if (auto charTy = eleTy.dyn_cast<CharacterType>()) { in genArrayCopy() local 979 auto len = getCharacterLen(loc, builder, arrLoad, charTy); in genArrayCopy() 1000 if (auto charTy = eleTy.dyn_cast<CharacterType>()) { in genArrayLoadTypeParameters() local 1005 return {getCharacterLen(loc, builder, load, charTy)}; in genArrayLoadTypeParameters()
|
| /llvm-project-15.0.7/flang/lib/Optimizer/Builder/Runtime/ |
| H A D | Character.cpp | 42 if (auto charTy = ty.dyn_cast<fir::CharacterType>()) in discoverKind() local 43 return charTy.getFKind(); in discoverKind()
|
| /llvm-project-15.0.7/flang/lib/Lower/ |
| H A D | ConvertExpr.cpp | 3819 if (auto charTy = in lowerNewArrayExpression() local 3821 if (fir::characterWithDynamicLen(charTy)) in lowerNewArrayExpression() 4274 if (auto charTy = eleTy.dyn_cast<fir::CharacterType>()) { in defaultStoreToDestination() local 4721 if (charTy.hasDynamicLen()) in createAndLoadSomeArrayTemp() 5901 fir::CharacterType charTy = in genarr() local 5903 if (charTy.hasConstantLen()) { in genarr() 5965 fir::CharacterType charTy = in genarr() local 5999 if (auto charTy = eleTy.dyn_cast<fir::CharacterType>()) { in genarr() local 6282 if (auto charTy = eleTy.dyn_cast<fir::CharacterType>()) { in computeElementSize() local 6302 eleTy.getContext(), charTy.getFKind()); in computeElementSize() [all …]
|
| H A D | IntrinsicCall.cpp | 2969 if (auto charTy = bufferTy.dyn_cast<fir::CharacterType>()) { in genIchar() local 2970 assert(charTy.singleton()); in genIchar()
|
| /llvm-project-15.0.7/flang/lib/Optimizer/Dialect/ |
| H A D | FIROps.cpp | 358 if (auto charTy = dynTy.dyn_cast<fir::CharacterType>()) in validTypeParams() local 359 if (charTy.hasDynamicLen()) in validTypeParams() 2348 } else if (auto charTy = eleTy.dyn_cast<fir::CharacterType>()) { in verify() local 3258 auto charTy = type.dyn_cast<fir::CharacterType>(); in parse() local 3259 if (!charTy) in parse() 3261 type = fir::CharacterType::get(builder.getContext(), charTy.getFKind(), in parse()
|