Home
last modified time | relevance | path

Searched refs:ArraySize (Results 1 – 25 of 40) sorted by relevance

12

/freebsd-src/contrib/llvm-project/clang/lib/StaticAnalyzer/Checkers/
H A DVLASizeChecker.cpp46 /// 'ArraySize' will contain SVal that refers to the total size (in char)
49 const VariableArrayType *VLA, SVal &ArraySize) const;
70 SVal &ArraySize) const { in checkVLA()
147 ArraySize = ArrSize; in checkVLA()
288 SVal ArraySize; in checkPreStmt() local
290 State = checkVLA(C, State, VLA, ArraySize); in checkPreStmt()
294 if (!isa<NonLoc>(ArraySize)) { in checkPreStmt()
304 ArraySize.castAs<NonLoc>(), SVB); in checkPreStmt()
328 SVal ArraySize; in checkPreStmt() local
329 State = checkVLA(C, State, VLA, ArraySize); in checkPreStmt()
[all...]
H A DCheckSecuritySyntaxOnly.cpp687 uint64_t ArraySize = BR.getContext().getTypeSize(Array) / 8; in checkCall_strcpy() local
689 if (ArraySize >= String->getLength() + 1) in checkCall_strcpy()
/freebsd-src/contrib/llvm-project/compiler-rt/lib/scudo/standalone/
H A Dchunk.h23 inline u16 computeChecksum(u32 Seed, uptr Value, uptr *Array, uptr ArraySize) { in computeChecksum() argument
30 for (uptr I = 0; I < ArraySize; I++) in computeChecksum()
36 for (uptr I = 0; I < ArraySize; I++) in computeChecksum()
41 for (uptr I = 0; I < ArraySize; I++) in computeChecksum()
/freebsd-src/contrib/llvm-project/clang/lib/Sema/
H A DSemaExprCXX.cpp1912 std::optional<Expr *> ArraySize; in ActOnCXXNew()
1927 ArraySize = static_cast<Expr*>(Chunk.Arr.NumElts); in ActOnCXXNew()
1932 if (ArraySize) { in ActOnCXXNew()
1975 TypeIdParens, AllocType, TInfo, ArraySize, DirectInitRange, in isUnavailableAlignedAllocationFunction()
2036 std::optional<Expr *> ArraySize, in BuildCXXNew()
2089 if (ArraySize) in BuildCXXNew()
2091 Diag(*ArraySize ? (*ArraySize)->getExprLoc() : TypeRange.getBegin(), in BuildCXXNew()
2094 << (*ArraySize ? (*ArraySize) in BuildCXXNew()
1882 std::optional<Expr *> ArraySize; ActOnCXXNew() local
2006 BuildCXXNew(SourceRange Range,bool UseGlobal,SourceLocation PlacementLParen,MultiExprArg PlacementArgs,SourceLocation PlacementRParen,SourceRange TypeIdParens,QualType AllocType,TypeSourceInfo * AllocTypeInfo,std::optional<Expr * > ArraySize,SourceRange DirectInitRange,Expr * Initializer) BuildCXXNew() argument
2170 Expr *ArraySize; BuildCXXNew() member in Sema::BuildCXXNew::SizeConvertDiagnoser
2173 SizeConvertDiagnoser(Expr * ArraySize) BuildCXXNew() argument
[all...]
H A DSemaType.cpp1957 static ExprResult checkArraySize(Sema &S, Expr *&ArraySize, in BuildQualifiedType()
1962 !ArraySize->getType()->isIntegralOrUnscopedEnumerationType())) { in BuildQualifiedType()
1972 ArraySize, S.Context.getSizeType(), SizeVal, Sema::CCEK_ArrayBound); in BuildQualifiedType()
2004 S.VerifyIntegerConstantExpression(ArraySize, &SizeVal, Diagnoser); in BuildQualifiedType()
2028 Expr *ArraySize, unsigned Quals, in BuildQualifiedType()
2109 if (ArraySize && ArraySize->hasPlaceholderType()) { in getFunctionQualifiersAsString()
2110 ExprResult Result = CheckPlaceholderExpr(ArraySize); in getFunctionQualifiersAsString()
2112 ArraySize = Result.get(); in getFunctionQualifiersAsString()
2116 if (ArraySize in getFunctionQualifiersAsString()
2395 checkArraySize(Sema & S,Expr * & ArraySize,llvm::APSInt & SizeVal,unsigned VLADiag,bool VLAIsError) checkArraySize() argument
2481 BuildArrayType(QualType T,ArraySizeModifier ASM,Expr * ArraySize,unsigned Quals,SourceRange Brackets,DeclarationName Entity) BuildArrayType() argument
2587 __anon1bdae2e90402(const Expr *ArraySize, ASTContext &Context) BuildArrayType() argument
2822 BuildExtVectorType(QualType T,Expr * ArraySize,SourceLocation AttrLoc) BuildExtVectorType() argument
5169 Expr *ArraySize = static_cast<Expr*>(ATI.NumElts); GetFullTypeForDeclarator() local
[all...]
/freebsd-src/contrib/llvm-project/llvm/lib/Support/
H A DSmallPtrSet.cpp67 unsigned ArraySize = CurArraySize; in FindBucketFor() local
88 Bucket = (Bucket + ProbeAmt++) & (ArraySize-1); in FindBucketFor()
/freebsd-src/contrib/llvm-project/llvm/lib/IR/
H A DIRBuilder.cpp303 Value *AllocSize, Value *ArraySize, in CreateMalloc()
310 if (!ArraySize) in CreateMalloc()
311 ArraySize = ConstantInt::get(IntPtrTy, 1); in CreateMalloc()
312 else if (ArraySize->getType() != IntPtrTy) in CreateMalloc()
313 ArraySize = CreateIntCast(ArraySize, IntPtrTy, false); in CreateMalloc()
315 if (!isConstantOne(ArraySize)) { in CreateMalloc()
317 AllocSize = ArraySize; // Operand * 1 = Operand in CreateMalloc()
320 AllocSize = CreateMul(ArraySize, AllocSize, "mallocsize"); in CreateMalloc()
346 Value *AllocSize, Value *ArraySize, in CreateMalloc()
302 CreateMalloc(Type * IntPtrTy,Type * AllocTy,Value * AllocSize,Value * ArraySize,ArrayRef<OperandBundleDef> OpB,Function * MallocF,const Twine & Name) CreateMalloc() argument
345 CreateMalloc(Type * IntPtrTy,Type * AllocTy,Value * AllocSize,Value * ArraySize,Function * MallocF,const Twine & Name) CreateMalloc() argument
[all...]
H A DInstructions.cpp1208 : AllocaInst(Ty, AddrSpace, /*ArraySize=*/nullptr, Name, InsertBefore) {} in UnreachableInst()
1210 AllocaInst::AllocaInst(Type *Ty, unsigned AddrSpace, Value *ArraySize, in UnreachableInst()
1212 : AllocaInst(Ty, AddrSpace, ArraySize,
1216 AllocaInst::AllocaInst(Type *Ty, unsigned AddrSpace, Value *ArraySize, in AssertOK()
1220 getAISize(Ty->getContext(), ArraySize), InsertBefore), in AssertOK()
1325 AllocaInst(Type * Ty,unsigned AddrSpace,Value * ArraySize,const Twine & Name,Instruction * InsertBefore) AllocaInst() argument
1331 AllocaInst(Type * Ty,unsigned AddrSpace,Value * ArraySize,const Twine & Name,BasicBlock * InsertAtEnd) AllocaInst() argument
1337 AllocaInst(Type * Ty,unsigned AddrSpace,Value * ArraySize,Align Align,const Twine & Name,Instruction * InsertBefore) AllocaInst() argument
1348 AllocaInst(Type * Ty,unsigned AddrSpace,Value * ArraySize,Align Align,const Twine & Name,BasicBlock * InsertAtEnd) AllocaInst() argument
/freebsd-src/stand/efi/include/
H A Defifs.h99 UINT32 ArraySize; member
/freebsd-src/contrib/llvm-project/clang/lib/CodeGen/Targets/
H A DLoongArch.cpp149 uint64_t ArraySize = ATy->getZExtSize(); in detectFARsEligibleStructHelper() local
154 if (ArraySize != 0 && isa<CXXRecordDecl>(RTy->getDecl()) && in detectFARsEligibleStructHelper()
159 for (uint64_t i = 0; i < ArraySize; ++i) { in detectFARsEligibleStructHelper()
H A DRISCV.cpp155 uint64_t ArraySize = ATy->getZExtSize(); in detectFPCCEligibleStructHelper() local
160 if (ArraySize != 0 && isa<CXXRecordDecl>(RTy->getDecl()) && in detectFPCCEligibleStructHelper()
165 for (uint64_t i = 0; i < ArraySize; ++i) { in detectFPCCEligibleStructHelper()
/freebsd-src/contrib/llvm-project/llvm/lib/CodeGen/
H A DSafeStack.cpp447 DynamicTop = IRB.CreateAlloca(StackPtrTy, /*ArraySize=*/nullptr, in createStackRestorePoints()
663 Value *ArraySize = AI->getArraySize(); in moveDynamicAllocasToUnsafeStack() local
664 if (ArraySize->getType() != IntPtrTy) in moveDynamicAllocasToUnsafeStack()
665 ArraySize = IRB.CreateIntCast(ArraySize, IntPtrTy, false); in moveDynamicAllocasToUnsafeStack()
669 Value *Size = IRB.CreateMul(ArraySize, ConstantInt::get(IntPtrTy, TySize)); in moveDynamicAllocasToUnsafeStack()
/freebsd-src/contrib/llvm-project/llvm/lib/Analysis/
H A DMemoryBuiltins.cpp788 Value *ArraySize = I.getArraySize(); in visitAllocaInst() local
789 if (const ConstantInt *C = dyn_cast<ConstantInt>(ArraySize)) { in visitAllocaInst()
1146 Value *ArraySize = Builder.CreateZExtOrTrunc( in visitAllocaInst() local
1149 assert(ArraySize->getType() == Zero->getType() && in visitAllocaInst()
1153 ArraySize->getType(), DL.getTypeAllocSize(I.getAllocatedType())); in visitAllocaInst()
1154 Size = Builder.CreateMul(Size, ArraySize); in visitAllocaInst()
/freebsd-src/contrib/llvm-project/clang/lib/AST/
H A DExprCXX.cpp233 std::optional<Expr *> ArraySize, in CXXNewExpr()
248 CXXNewExprBits.IsArray = ArraySize.has_value(); in Create()
258 if (ArraySize) in Create()
259 getTrailingObjects<Stmt *>()[arraySizeOffset()] = *ArraySize; in Create()
296 SourceRange TypeIdParens, std::optional<Expr *> ArraySize, in getDestroyedType()
300 bool IsArray = ArraySize.has_value(); in getDestroyedType()
311 ArraySize, InitializationStyle, Initializer, Ty, in getDestroyedType()
186 CXXNewExpr(bool IsGlobalNew,FunctionDecl * OperatorNew,FunctionDecl * OperatorDelete,bool ShouldPassAlignment,bool UsualArrayDeleteWantsSize,ArrayRef<Expr * > PlacementArgs,SourceRange TypeIdParens,std::optional<Expr * > ArraySize,CXXNewInitializationStyle InitializationStyle,Expr * Initializer,QualType Ty,TypeSourceInfo * AllocatedTypeInfo,SourceRange Range,SourceRange DirectInitRange) CXXNewExpr() argument
249 Create(const ASTContext & Ctx,bool IsGlobalNew,FunctionDecl * OperatorNew,FunctionDecl * OperatorDelete,bool ShouldPassAlignment,bool UsualArrayDeleteWantsSize,ArrayRef<Expr * > PlacementArgs,SourceRange TypeIdParens,std::optional<Expr * > ArraySize,CXXNewInitializationStyle InitializationStyle,Expr * Initializer,QualType Ty,TypeSourceInfo * AllocatedTypeInfo,SourceRange Range,SourceRange DirectInitRange) Create() argument
H A DExprConstant.cpp196 uint64_t &ArraySize, QualType &Type, bool &IsArray, in findMostDerivedSubobject()
213 ArraySize = CAT->getZExtSize(); in findMostDerivedSubobject()
217 ArraySize = AssumedSizeForUnsizedArray; in findMostDerivedSubobject()
222 ArraySize = 2; in findMostDerivedSubobject()
227 ArraySize = 0; in findMostDerivedSubobject()
232 ArraySize = 0; in findMostDerivedSubobject()
375 uint64_t ArraySize =
377 return {ArrayIndex, ArraySize - ArrayIndex}; in isValidSubobject()
469 uint64_t ArraySize = in adjustIndex()
472 if (N < -(int64_t)ArrayIndex || N > ArraySize in adjustIndex()
195 findMostDerivedSubobject(ASTContext & Ctx,APValue::LValueBase Base,ArrayRef<APValue::LValuePathEntry> Path,uint64_t & ArraySize,QualType & Type,bool & IsArray,bool & FirstEntryIsUnsizedArray) findMostDerivedSubobject() argument
370 uint64_t ArraySize = validIndexAdjustments() local
464 uint64_t ArraySize = adjustIndex() local
7083 unsigned ArraySize = Val.getArraySize(); visitArray() local
9842 if (std::optional<const Expr *> ArraySize = E->getArraySize()) { VisitCXXNewExpr() local
12060 uint64_t ArraySize = Designator.getMostDerivedArraySize(); determineEndOffset() local
[all...]
H A DTextNodeDumper.cpp684 unsigned ArraySize = Value.getArraySize(); in dumpSourceRange()
686 OS << "Array size=" << ArraySize; in dumpSourceRange()
699 OS << ArraySize - NumInitializedElements << " x "; in dumpBareType()
570 unsigned ArraySize = Value.getArraySize(); Visit() local
/freebsd-src/contrib/llvm-project/llvm/lib/Transforms/AggressiveInstCombine/
H A DAggressiveInstCombine.cpp548 uint64_t ArraySize = GEP->getSourceElementType()->getArrayNumElements(); in tryToRecognizeTableBasedCttz()
549 if (ArraySize != 32 && ArraySize != 64) in tryToRecognizeTableBasedCttz()
545 uint64_t ArraySize = GEP->getSourceElementType()->getArrayNumElements(); tryToRecognizeTableBasedCttz() local
/freebsd-src/contrib/llvm-project/llvm/include/llvm/IR/
H A DIRBuilder.h629 Value *ArraySize, ArrayRef<OperandBundleDef> OpB,
638 Value *ArraySize, Function *MallocF = nullptr,
1779 Value *ArraySize = nullptr, const Twine &Name = "") {
1782 return Insert(new AllocaInst(Ty, AddrSpace, ArraySize, AllocaAlign), Name);
1785 AllocaInst *CreateAlloca(Type *Ty, Value *ArraySize = nullptr,
1790 return Insert(new AllocaInst(Ty, AddrSpace, ArraySize, AllocaAlign), Name); in CreateLoad()
/freebsd-src/contrib/sqlite3/
H A Dshell.c1464 #define ArraySize(X) (int)(sizeof(X)/sizeof(X[0]))
1896 for(i=0; i<ArraySize(aMult); i++){ in integerValue()
2138 for(i=0; i<ArraySize(aPrefix); i++){ in shellAddSchemaName()
20228 for(i=0; i<ArraySize(azProhibitedFunctions); i++){ in safeModeAuth()
20305 for(i=0; i<ArraySize(azTerm); i++){ in printSchemaLine()
20535 int nWidth = ArraySize(aExplainWidth); in shell_callback()
20541 nWidth = ArraySize(aScanExpWidth); in shell_callback()
21137 for(i=0; i<ArraySize(aTrans); i++){ in displayLinuxIoStats()
23073 for(i=0; i<ArraySize(azHelp); i++){ in showHelp()
23098 for(i=0; i<ArraySize(azHel in showHelp()
1469 #define ArraySize( global() macro
[all...]
/freebsd-src/contrib/llvm-project/clang/lib/CodeGen/
H A DCGExpr.cpp77 llvm::Value *ArraySize) {
78 auto Alloca = CreateTempAlloca(Ty, Name, ArraySize);
87 llvm::Value *ArraySize, in CreateTempAlloca()
89 auto Alloca = CreateTempAllocaWithoutCast(Ty, Align, Name, ArraySize); in CreateTempAlloca()
100 // When ArraySize is nullptr, alloca is inserted at AllocaInsertPt, in CreateTempAlloca()
103 if (!ArraySize) in CreateTempAlloca()
114 /// block if \p ArraySize is nullptr, otherwise inserts it at the current in CreateTempAlloca()
118 llvm::Value *ArraySize) {
120 if (ArraySize)
121 Alloca = Builder.CreateAlloca(Ty, ArraySize, Nam
71 CreateTempAllocaWithoutCast(llvm::Type * Ty,CharUnits Align,const Twine & Name,llvm::Value * ArraySize) CreateTempAllocaWithoutCast() argument
81 CreateTempAlloca(llvm::Type * Ty,CharUnits Align,const Twine & Name,llvm::Value * ArraySize,Address * AllocaAddr) CreateTempAlloca() argument
112 CreateTempAlloca(llvm::Type * Ty,const Twine & Name,llvm::Value * ArraySize) CreateTempAlloca() argument
676 EmitTypeCheck(TypeCheckKind TCK,SourceLocation Loc,llvm::Value * Ptr,QualType Ty,CharUnits Alignment,SanitizerSet SkippedChecks,llvm::Value * ArraySize) EmitTypeCheck() argument
[all...]
H A DCGOpenMPRuntimeGPU.cpp157 llvm::APInt ArraySize(32, BufSize); in buildRecordForGlobalizedVars() local
158 Type = C.getConstantArrayType(Type, ArraySize, nullptr, in buildRecordForGlobalizedVars()
2850 llvm::APInt ArraySize(/*unsigned int numBits=*/32, Size); emitReduction() local
/freebsd-src/contrib/llvm-project/llvm/lib/Transforms/Scalar/
H A DLoopIdiomRecognize.cpp401 unsigned ArraySize = 16 / Size;
402 ArrayType *AT = ArrayType::get(V->getType(), ArraySize); in isLegalStore()
403 return ConstantArray::get(AT, std::vector<Constant *>(ArraySize, C)); in isLegalStore()
396 unsigned ArraySize = 16 / Size; getMemSetPatternValue() local
/freebsd-src/contrib/llvm-project/clang/lib/AST/Interp/
H A DByteCodeExprGen.cpp
/freebsd-src/contrib/llvm-project/llvm/include/llvm/Frontend/OpenMP/
H A DOMPKinds.def65 #define OMP_ARRAY_TYPE(VarName, ElemTy, ArraySize)
68 #define __OMP_ARRAY_TYPE(VarName, ElemTy, ArraySize) \
69 OMP_ARRAY_TYPE(VarName, ElemTy, ArraySize)
/freebsd-src/contrib/llvm-project/llvm/lib/CodeGen/AsmPrinter/
H A DCodeViewDebug.cpp1773 uint64_t ArraySize = in lowerTypeArray() local
1777 ArrayRecord AR(ElementTypeIndex, IndexType, ArraySize, Name); in lowerTypeArray()
1791 uint64_t ArraySize = Ty->getSizeInBits() >> 3; in lowerTypeString() local
1799 ArrayRecord AR(CharType, IndexType, ArraySize, Name); in lowerTypeString()

12