Searched refs:ArraySize (Results 1 - 25 of 38) sorted by relevance

12

/freebsd-current/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 {
147 ArraySize = ArrSize;
288 SVal ArraySize;
290 State = checkVLA(C, State, VLA, ArraySize);
294 if (!isa<NonLoc>(ArraySize)) {
304 ArraySize.castAs<NonLoc>(), SVB);
328 SVal ArraySize; local
329 State = checkVLA(C, State, VLA, ArraySize);
[all...]
H A DCheckSecuritySyntaxOnly.cpp687 uint64_t ArraySize = BR.getContext().getTypeSize(Array) / 8; local
689 if (ArraySize >= String->getLength() + 1)
/freebsd-current/contrib/llvm-project/compiler-rt/lib/scudo/standalone/
H A Dchunk.h23 inline u16 computeChecksum(u32 Seed, uptr Value, uptr *Array, uptr ArraySize) { argument
30 for (uptr I = 0; I < ArraySize; I++)
36 for (uptr I = 0; I < ArraySize; I++)
41 for (uptr I = 0; I < ArraySize; I++)
/freebsd-current/stand/efi/include/
H A Defifs.h99 UINT32 ArraySize; member in struct:_EFI_LBAL
/freebsd-current/contrib/llvm-project/llvm/lib/Support/
H A DSmallPtrSet.cpp67 unsigned ArraySize = CurArraySize;
88 Bucket = (Bucket + ProbeAmt++) & (ArraySize-1);
/freebsd-current/contrib/llvm-project/clang/lib/CodeGen/Targets/
H A DLoongArch.cpp149 uint64_t ArraySize = ATy->getSize().getZExtValue(); local
154 if (ArraySize != 0 && isa<CXXRecordDecl>(RTy->getDecl()) &&
159 for (uint64_t i = 0; i < ArraySize; ++i) {
H A DRISCV.cpp155 uint64_t ArraySize = ATy->getSize().getZExtValue(); local
160 if (ArraySize != 0 && isa<CXXRecordDecl>(RTy->getDecl()) &&
165 for (uint64_t i = 0; i < ArraySize; ++i) {
/freebsd-current/contrib/llvm-project/llvm/lib/IR/
H A DIRBuilder.cpp302 Value *AllocSize, Value *ArraySize,
309 if (!ArraySize)
310 ArraySize = ConstantInt::get(IntPtrTy, 1);
311 else if (ArraySize->getType() != IntPtrTy)
312 ArraySize = CreateIntCast(ArraySize, IntPtrTy, false);
314 if (!isConstantOne(ArraySize)) {
316 AllocSize = ArraySize; // Operand * 1 = Operand
319 AllocSize = CreateMul(ArraySize, AllocSize, "mallocsize");
345 Value *AllocSize, Value *ArraySize,
301 CreateMalloc(Type *IntPtrTy, Type *AllocTy, Value *AllocSize, Value *ArraySize, ArrayRef<OperandBundleDef> OpB, Function *MallocF, const Twine &Name) argument
344 CreateMalloc(Type *IntPtrTy, Type *AllocTy, Value *AllocSize, Value *ArraySize, Function *MallocF, const Twine &Name) argument
[all...]
H A DInstructions.cpp1319 : AllocaInst(Ty, AddrSpace, /*ArraySize=*/nullptr, Name, InsertBefore) {}
1323 : AllocaInst(Ty, AddrSpace, /*ArraySize=*/nullptr, Name, InsertAtEnd) {}
1325 AllocaInst::AllocaInst(Type *Ty, unsigned AddrSpace, Value *ArraySize, argument
1327 : AllocaInst(Ty, AddrSpace, ArraySize,
1331 AllocaInst::AllocaInst(Type *Ty, unsigned AddrSpace, Value *ArraySize, argument
1333 : AllocaInst(Ty, AddrSpace, ArraySize,
1337 AllocaInst::AllocaInst(Type *Ty, unsigned AddrSpace, Value *ArraySize, argument
1341 getAISize(Ty->getContext(), ArraySize), InsertBefore),
1348 AllocaInst::AllocaInst(Type *Ty, unsigned AddrSpace, Value *ArraySize, argument
1351 getAISize(Ty->getContext(), ArraySize), InsertAtEn
[all...]
/freebsd-current/contrib/llvm-project/llvm/lib/CodeGen/
H A DSafeStack.cpp447 DynamicTop = IRB.CreateAlloca(StackPtrTy, /*ArraySize=*/nullptr,
663 Value *ArraySize = AI->getArraySize(); local
664 if (ArraySize->getType() != IntPtrTy)
665 ArraySize = IRB.CreateIntCast(ArraySize, IntPtrTy, false);
669 Value *Size = IRB.CreateMul(ArraySize, ConstantInt::get(IntPtrTy, TySize));
/freebsd-current/contrib/llvm-project/clang/lib/Sema/
H A DSemaType.cpp2395 static ExprResult checkArraySize(Sema &S, Expr *&ArraySize, argument
2400 !ArraySize->getType()->isIntegralOrUnscopedEnumerationType())) {
2410 ArraySize, S.Context.getSizeType(), SizeVal, Sema::CCEK_ArrayBound);
2442 S.VerifyIntegerConstantExpression(ArraySize, &SizeVal, Diagnoser);
2471 /// \param ArraySize Expression describing the size of the array.
2481 Expr *ArraySize, unsigned Quals,
2562 if (ArraySize && ArraySize->hasPlaceholderType()) {
2563 ExprResult Result = CheckPlaceholderExpr(ArraySize);
2565 ArraySize
2480 BuildArrayType(QualType T, ArraySizeModifier ASM, Expr *ArraySize, unsigned Quals, SourceRange Brackets, DeclarationName Entity) argument
2822 BuildExtVectorType(QualType T, Expr *ArraySize, SourceLocation AttrLoc) argument
5169 Expr *ArraySize = static_cast<Expr*>(ATI.NumElts); local
[all...]
H A DSemaExprCXX.cpp1882 std::optional<Expr *> ArraySize;
1897 ArraySize = static_cast<Expr*>(Chunk.Arr.NumElts);
1902 if (ArraySize) {
1945 TypeIdParens, AllocType, TInfo, ArraySize, DirectInitRange,
2006 std::optional<Expr *> ArraySize,
2059 if (ArraySize)
2061 Diag(*ArraySize ? (*ArraySize)->getExprLoc() : TypeRange.getBegin(),
2064 << (*ArraySize ? (*ArraySize)
[all...]
/freebsd-current/contrib/llvm-project/llvm/lib/Analysis/
H A DMemoryBuiltins.cpp788 Value *ArraySize = I.getArraySize();
789 if (const ConstantInt *C = dyn_cast<ConstantInt>(ArraySize)) {
1146 Value *ArraySize = Builder.CreateZExtOrTrunc(
1149 assert(ArraySize->getType() == Zero->getType() &&
1152 Value *Size = ConstantInt::get(ArraySize->getType(),
1154 Size = Builder.CreateMul(Size, ArraySize);
/freebsd-current/contrib/llvm-project/llvm/lib/Transforms/AggressiveInstCombine/
H A DAggressiveInstCombine.cpp545 uint64_t ArraySize = GEP->getSourceElementType()->getArrayNumElements();
546 if (ArraySize != 32 && ArraySize != 64)
/freebsd-current/contrib/llvm-project/clang/lib/AST/
H A DExprCXX.cpp186 std::optional<Expr *> ArraySize,
201 CXXNewExprBits.IsArray = ArraySize.has_value();
211 if (ArraySize)
212 getTrailingObjects<Stmt *>()[arraySizeOffset()] = *ArraySize;
249 SourceRange TypeIdParens, std::optional<Expr *> ArraySize,
253 bool IsArray = ArraySize.has_value();
264 ArraySize, InitializationStyle, Initializer, Ty,
182 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) argument
245 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) argument
H A DTextNodeDumper.cpp570 unsigned ArraySize = Value.getArraySize(); local
572 OS << "Array size=" << ArraySize; local
585 OS << ArraySize - NumInitializedElements << " x ";
H A DExprConstant.cpp195 uint64_t &ArraySize, QualType &Type, bool &IsArray,
212 ArraySize = CAT->getSize().getZExtValue();
216 ArraySize = AssumedSizeForUnsizedArray;
221 ArraySize = 2;
226 ArraySize = 0;
231 ArraySize = 0;
370 uint64_t ArraySize = local
372 return {ArrayIndex, ArraySize - ArrayIndex};
464 uint64_t ArraySize = local
467 if (N < -(int64_t)ArrayIndex || N > ArraySize
193 findMostDerivedSubobject(ASTContext &Ctx, APValue::LValueBase Base, ArrayRef<APValue::LValuePathEntry> Path, uint64_t &ArraySize, QualType &Type, bool &IsArray, bool &FirstEntryIsUnsizedArray) argument
[all...]
/freebsd-current/contrib/sqlite3/
H A Dshell.c1469 #define ArraySize(X) (int)(sizeof(X)/sizeof(X[0])) macro
1901 for(i=0; i<ArraySize(aMult); i++){
2143 for(i=0; i<ArraySize(aPrefix); i++){
20229 for(i=0; i<ArraySize(azProhibitedFunctions); i++){
20306 for(i=0; i<ArraySize(azTerm); i++){
20536 int nWidth = ArraySize(aExplainWidth);
20542 nWidth = ArraySize(aScanExpWidth);
21138 for(i=0; i<ArraySize(aTrans); i++){
23074 for(i=0; i<ArraySize(azHelp); i++){
23099 for(i=0; i<ArraySize(azHel
[all...]
/freebsd-current/contrib/llvm-project/clang/lib/CodeGen/
H A DCGExpr.cpp71 llvm::Value *ArraySize) {
72 auto Alloca = CreateTempAlloca(Ty, Name, ArraySize);
81 llvm::Value *ArraySize,
83 auto Alloca = CreateTempAllocaWithoutCast(Ty, Align, Name, ArraySize);
94 // When ArraySize is nullptr, alloca is inserted at AllocaInsertPt,
97 if (!ArraySize)
108 /// block if \p ArraySize is nullptr, otherwise inserts it at the current
112 llvm::Value *ArraySize) {
113 if (ArraySize)
114 return Builder.CreateAlloca(Ty, ArraySize, Nam
68 CreateTempAllocaWithoutCast(llvm::Type *Ty, CharUnits Align, const Twine &Name, llvm::Value *ArraySize) argument
79 CreateTempAlloca(llvm::Type *Ty, CharUnits Align, const Twine &Name, llvm::Value *ArraySize, Address *AllocaAddr) argument
110 CreateTempAlloca(llvm::Type *Ty, const Twine &Name, llvm::Value *ArraySize) argument
672 EmitTypeCheck(TypeCheckKind TCK, SourceLocation Loc, llvm::Value *Ptr, QualType Ty, CharUnits Alignment, SanitizerSet SkippedChecks, llvm::Value *ArraySize) argument
[all...]
H A DCGOpenMPRuntimeGPU.cpp157 llvm::APInt ArraySize(32, BufSize);
158 Type = C.getConstantArrayType(Type, ArraySize, nullptr,
2850 llvm::APInt ArraySize(/*unsigned int numBits=*/32, Size);
2852 C.VoidPtrTy, ArraySize, nullptr, ArraySizeModifier::Normal,
H A DCodeGenFunction.h2608 /// block if \p ArraySize is nullptr, otherwise inserts it at the current
2613 /// \p ArraySize is the number of array elements to be allocated if it
2634 llvm::Value *ArraySize = nullptr);
2637 llvm::Value *ArraySize = nullptr,
2641 llvm::Value *ArraySize = nullptr);
3065 /// (or if ArraySize is provided, for an array of that bound).
3069 llvm::Value *ArraySize = nullptr);
/freebsd-current/contrib/llvm-project/llvm/include/llvm/IR/
H A DIRBuilder.h626 Value *ArraySize, ArrayRef<OperandBundleDef> OpB,
635 Value *ArraySize, Function *MallocF = nullptr,
1773 Value *ArraySize = nullptr, const Twine &Name = "") {
1776 return Insert(new AllocaInst(Ty, AddrSpace, ArraySize, AllocaAlign), Name);
1779 AllocaInst *CreateAlloca(Type *Ty, Value *ArraySize = nullptr,
1784 return Insert(new AllocaInst(Ty, AddrSpace, ArraySize, AllocaAlign), Name);
/freebsd-current/contrib/llvm-project/clang/lib/AST/Interp/
H A DByteCodeExprGen.cpp1171 unsigned ArraySize = CAT->getSize().getZExtValue();
1172 unsigned N = std::min(ArraySize, E->getLength());
1193 for (unsigned I = N; I != ArraySize; ++I) {
/freebsd-current/contrib/llvm-project/llvm/lib/Transforms/Scalar/
H A DLoopIdiomRecognize.cpp396 unsigned ArraySize = 16 / Size; local
397 ArrayType *AT = ArrayType::get(V->getType(), ArraySize);
398 return ConstantArray::get(AT, std::vector<Constant *>(ArraySize, C));
/freebsd-current/contrib/llvm-project/llvm/lib/CodeGen/AsmPrinter/
H A DCodeViewDebug.cpp1773 uint64_t ArraySize = local
1777 ArrayRecord AR(ElementTypeIndex, IndexType, ArraySize, Name);
1791 uint64_t ArraySize = Ty->getSizeInBits() >> 3; local
1798 // Create a type of character array of ArraySize.
1799 ArrayRecord AR(CharType, IndexType, ArraySize, Name);

Completed in 557 milliseconds

12