Home
last modified time | relevance | path

Searched refs:ConstantArrayType (Results 1 – 25 of 94) sorted by relevance

1234

/freebsd/contrib/llvm-project/clang/lib/AST/ByteCode/
H A DEvaluationResult.cpp68 const ConstantArrayType *CAT) { in CheckArrayInitialized()
79 } else if (const auto *ElemCAT = dyn_cast<ConstantArrayType>(ElemType)) { in CheckArrayInitialized()
117 cast<ConstantArrayType>(FieldType->getAsArrayTypeUnsafe()); in CheckFieldsInitialized()
171 if (const auto *CAT = dyn_cast_if_present<ConstantArrayType>( in checkFullyInitialized()
/freebsd/contrib/llvm-project/clang/lib/CodeGen/
H A DHLSLBufferLayoutBuilder.cpp30 const ConstantArrayType *ArrayType, in createArrayWithNewElementType()
35 CGM, cast<const ConstantArrayType>(ArrayElemType), NewElemType); in createArrayWithNewElementType()
212 CGM, cast<ConstantArrayType>(FieldTy.getTypePtr()), NewTy); in layoutField()
H A DABIInfo.cpp63 if (const ConstantArrayType *AT = getContext().getAsConstantArrayType(Ty)) { in isHomogeneousAggregate()
99 while (const ConstantArrayType *AT = in isHomogeneousAggregate()
H A DABIInfoImpl.cpp256 while (const ConstantArrayType *AT = Context.getAsConstantArrayType(FT)) { in isEmptyField()
386 while (const ConstantArrayType *AT = Context.getAsConstantArrayType(FT)) { in isSingleElementStruct()
H A DCodeGenTypes.cpp646 const ConstantArrayType *A = cast<ConstantArrayType>(Ty); in ConvertType()
863 if (const auto *CAT = dyn_cast<ConstantArrayType>(AT)) in isZeroInitializable()
H A DCGExprCXX.cpp754 while (const ConstantArrayType *CAT in EmitCXXNewAllocSize()
1083 cast<ConstantArrayType>(Init->getType()->getAsArrayTypeUnsafe()) in EmitNewArrayInitializer()
1105 if (const ConstantArrayType *CAT = dyn_cast_or_null<ConstantArrayType>( in EmitNewArrayInitializer()
1621 cast<ConstantArrayType>(Init->getType()->getAsArrayTypeUnsafe()) in EmitCXXNewExpr()
2159 while (const ConstantArrayType *Arr in EmitCXXDeleteExpr()
H A DCGHLSLRuntime.cpp108 while (const ConstantArrayType *CAT = dyn_cast<ConstantArrayType>(Ty)) in isResourceRecordTypeOrArrayOf()
/freebsd/contrib/llvm-project/clang/lib/Interpreter/
H A DValue.cpp136 llvm::dyn_cast<ConstantArrayType>(DtorTy.getTypePtr())) { in Value()
141 ArrTy = llvm::dyn_cast<ConstantArrayType>( in Value()
H A DInterpreterValuePrinter.cpp80 InterfaceKind VisitConstantArrayType(const ConstantArrayType *Ty) { in VisitConstantArrayType()
257 cast<ConstantArrayType>(DesugaredTy.getTypePtr()); in ExtractValueFromExpr()
/freebsd/contrib/llvm-project/clang/lib/StaticAnalyzer/Checkers/
H A DPaddingChecker.cpp117 if (const ConstantArrayType *CArrTy = dyn_cast<ConstantArrayType>(ArrTy)) in visitVariable()
H A DCastSizeChecker.cpp68 if (const ConstantArrayType *ArrayTy = in evenFlexibleArraySize()
H A DCStringSyntaxChecker.cpp200 dyn_cast<ConstantArrayType>(DstArgDRE->getType())) { in containsBadStrlcpyStrlcatPattern()
/freebsd/contrib/llvm-project/clang/lib/CIR/CodeGen/
H A DCIRGenTypes.cpp436 const ConstantArrayType *arrTy = cast<ConstantArrayType>(ty); in convertType()
545 if (const auto *cat = dyn_cast<ConstantArrayType>(at)) in isZeroInitializable()
H A DCIRGenClass.cpp103 const ConstantArrayType *array = in emitMemberInitializer()
/freebsd/contrib/llvm-project/clang/include/clang/Basic/
H A DTypeNodes.td63 def ConstantArrayType : TypeNode<ArrayType>;
67 def ArrayParameterType : TypeNode<ConstantArrayType>;
/freebsd/contrib/llvm-project/clang/lib/StaticAnalyzer/Core/
H A DDynamicExtent.cpp52 if (const ConstantArrayType *CAT = in getConstantArrayElementCount()
H A DRegionStore.cpp1336 if (const ConstantArrayType *CAT = dyn_cast<ConstantArrayType>(AT)) in VisitCluster()
1770 getConstantArrayExtents(const ConstantArrayType *CAT) { in getConstantArrayExtents()
1772 CAT = cast<ConstantArrayType>(CAT->getCanonicalTypeInternal()); in getConstantArrayExtents()
1776 } while ((CAT = dyn_cast<ConstantArrayType>(CAT->getElementType()))); in getConstantArrayExtents()
1911 const ConstantArrayType *CAT = Ctx.getAsConstantArrayType(VD->getType()); in getConstantValFromConstArrayInitializer()
2604 auto CAT = dyn_cast<ConstantArrayType>(AT); in tryBindSmallArray()
2646 if (const ConstantArrayType* CAT = dyn_cast<ConstantArrayType>(AT)) in bindArray()
/freebsd/contrib/llvm-project/clang/lib/AST/
H A DRandstruct.cpp198 dyn_cast<ConstantArrayType>(RandomizedFields.back()->getType())) in randomizeStructureLayout()
H A DType.cpp197 ConstantArrayType *
198 ConstantArrayType::Create(const ASTContext &Ctx, QualType ET, QualType Can, in Create()
204 return new (Ctx, alignof(ConstantArrayType)) ConstantArrayType( in Create()
207 auto *SzPtr = new (Ctx, alignof(ConstantArrayType::ExternalSize)) in Create()
208 ConstantArrayType::ExternalSize(Sz, SzExpr); in Create()
209 return new (Ctx, alignof(ConstantArrayType)) in Create()
210 ConstantArrayType(ET, Can, SzPtr, SzMod, Qual); in Create()
214 ConstantArrayType::getNumAddressingBits(const ASTContext &Context, in getNumAddressingBits()
250 ConstantArrayType::getNumAddressingBits(const ASTContext &Context) const { in getNumAddressingBits()
254 unsigned ConstantArrayType::getMaxSizeBits(const ASTContext &Context) { in getMaxSizeBits()
[all …]
H A DASTContext.cpp1865 else if (isa<ConstantArrayType>(arrayType) && in getDeclAlign()
1866 MinWidth <= getTypeSize(cast<ConstantArrayType>(arrayType))) in getDeclAlign()
1951 const ConstantArrayType *CAT) { in getConstantArrayInfoInChars()
1968 if (const auto *CAT = dyn_cast<ConstantArrayType>(T)) in getTypeInfoInChars()
2097 if (const auto *CAT = dyn_cast<ConstantArrayType>(T)) in getTypeInfoImpl()
4024 const auto *ATy = cast<ConstantArrayType>(DTy); in getArrayParameterType()
4231 ConstantArrayType::Profile(ID, *this, EltTy, ArySize.getZExtValue(), SizeExpr, in getConstantArrayType()
4235 if (ConstantArrayType *ATP = in getConstantArrayType()
4251 ConstantArrayType *NewIP = in getConstantArrayType()
4256 auto *New = ConstantArrayType::Create(*this, EltTy, Canon, ArySize, SizeExpr, in getConstantArrayType()
[all …]
/freebsd/contrib/llvm-project/clang/lib/Sema/
H A DSemaHLSL.cpp255 if (const ConstantArrayType *AT = Context.getAsConstantArrayType(T)) { in calculateLegacyCbufferSize()
332 static bool isZeroSizedArray(const ConstantArrayType *CAT) { in isZeroSizedArray()
334 CAT = dyn_cast<ConstantArrayType>( in isZeroSizedArray()
342 while (const ConstantArrayType *CAT = dyn_cast<ConstantArrayType>(Ty)) in isResourceRecordTypeOrArrayOf()
362 isZeroSizedArray(cast<ConstantArrayType>(Ty))) in isInvalidConstantBufferLeafElementType()
1820 const ConstantArrayType *CAT = cast<ConstantArrayType>(Ty); in collectResourceBindingsOnUserRecordDecl()
3137 if (const auto *AT = dyn_cast<ConstantArrayType>(T)) { in BuildFlattenedTypeList()
3359 if (const auto *AT = dyn_cast<ConstantArrayType>(T)) { in ContainsBitField()
3726 const ConstantArrayType *CAT = cast<ConstantArrayType>(Ty); in collectResourceBindingsOnVarDecl()
3852 if (auto *ArrTy = dyn_cast<ConstantArrayType>(Ty.getTypePtr())) { in buildInitializerListImpl()
[all …]
H A DSemaInit.cpp74 if (!isa<ConstantArrayType>(AT) && !isa<IncompleteArrayType>(AT)) in IsStringInit()
217 cast<ConstantArrayType>(Str->getType()->getAsArrayTypeUnsafe()); in CheckStringInit()
235 const ConstantArrayType *CAT = cast<ConstantArrayType>(AT); in CheckStringInit()
567 if (const auto *CAType = dyn_cast<ConstantArrayType>(AType)) in HandleEmbed()
986 if (const auto *CAType = dyn_cast<ConstantArrayType>(AType)) in FillInEmptyInitializations()
1122 if (const ConstantArrayType *CAT = in numArrayElements()
1570 !isa_and_present<ConstantArrayType>( in CheckSubElementType()
2182 if (const ConstantArrayType *CAT = dyn_cast<ConstantArrayType>(arrayType)) { in CheckArrayType()
3247 if (isa<ConstantArrayType>(AT)) { in CheckDesignatedInitializer()
3248 llvm::APSInt MaxElements(cast<ConstantArrayType>(AT)->getSize(), false); in CheckDesignatedInitializer()
[all …]
/freebsd/contrib/llvm-project/clang/lib/CodeGen/Targets/
H A DXCore.cpp549 if (const ConstantArrayType *CAT = dyn_cast<ConstantArrayType>(AT)) in appendArrayType()
/freebsd/contrib/llvm-project/clang/lib/Serialization/
H A DTemplateArgumentHasher.cpp269 void VisitConstantArrayType(const ConstantArrayType *T) { in VisitConstantArrayType()
/freebsd/contrib/llvm-project/clang/include/clang/AST/
H A DType.h1911 friend class ConstantArrayType;
3686 class ConstantArrayType : public ArrayType {
3701 ConstantArrayType(QualType Et, QualType Can, uint64_t Width, uint64_t Sz,
3711 ConstantArrayType(QualType Et, QualType Can, ExternalSize *SzPtr,
3722 static ConstantArrayType *Create(const ASTContext &Ctx, QualType ET,
3728 ConstantArrayType(TypeClass Tc, const ConstantArrayType *ATy, QualType Can)
3818 class ArrayParameterType : public ConstantArrayType {
3821 ArrayParameterType(const ConstantArrayType *ATy, QualType CanTy)
3822 : ConstantArrayType(ArrayParameter, ATy, CanTy) {}
8461 return isa<ConstantArrayType>(CanonicalType);

1234