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

12

/netbsd-current/external/apache2/llvm/dist/clang/lib/StaticAnalyzer/Checkers/
H A DVLASizeChecker.cpp48 /// 'ArraySize' will contain SVal that refers to the total size (in char)
51 const VariableArrayType *VLA, SVal &ArraySize) const;
70 SVal &ArraySize) const {
147 ArraySize = ArrSize;
275 SVal ArraySize;
277 State = checkVLA(C, State, VLA, ArraySize);
281 auto ArraySizeNL = ArraySize.getAs<NonLoc>();
292 ArraySize.castAs<DefinedOrUnknownSVal>(), SVB);
316 SVal ArraySize; local
317 State = checkVLA(C, State, VLA, ArraySize);
[all...]
H A DCheckSecuritySyntaxOnly.cpp689 uint64_t ArraySize = BR.getContext().getTypeSize(Array) / 8; local
691 if (ArraySize >= String->getLength() + 1)
/netbsd-current/sys/external/bsd/gnu-efi/dist/inc/
H A Defifs.h94 UINT32 ArraySize; member in struct:_EFI_LBAL
/netbsd-current/external/apache2/llvm/dist/llvm/lib/Support/
H A DSmallPtrSet.cpp67 unsigned ArraySize = CurArraySize;
88 Bucket = (Bucket + ProbeAmt++) & (ArraySize-1);
/netbsd-current/external/apache2/llvm/dist/clang/lib/Sema/
H A DSemaExprCXX.cpp1775 Optional<Expr *> ArraySize;
1790 ArraySize = static_cast<Expr*>(Chunk.Arr.NumElts);
1795 if (ArraySize) {
1838 TypeIdParens, AllocType, TInfo, ArraySize, DirectInitRange,
1901 Optional<Expr *> ArraySize,
1951 if (ArraySize)
1953 Diag(ArraySize ? (*ArraySize)->getExprLoc() : TypeRange.getBegin(),
1956 << (ArraySize ? (*ArraySize)
[all...]
H A DSemaType.cpp2256 static ExprResult checkArraySize(Sema &S, Expr *&ArraySize, argument
2261 !ArraySize->getType()->isIntegralOrUnscopedEnumerationType())) {
2271 ArraySize, S.Context.getSizeType(), SizeVal, Sema::CCEK_ArrayBound);
2303 S.VerifyIntegerConstantExpression(ArraySize, &SizeVal, Diagnoser);
2315 /// \param ArraySize Expression describing the size of the array.
2325 Expr *ArraySize, unsigned Quals,
2393 if (ArraySize && ArraySize->hasPlaceholderType()) {
2394 ExprResult Result = CheckPlaceholderExpr(ArraySize);
2396 ArraySize
2324 BuildArrayType(QualType T, ArrayType::ArraySizeModifier ASM, Expr *ArraySize, unsigned Quals, SourceRange Brackets, DeclarationName Entity) argument
2605 BuildExtVectorType(QualType T, Expr *ArraySize, SourceLocation AttrLoc) argument
4869 Expr *ArraySize = static_cast<Expr*>(ATI.NumElts); local
[all...]
H A DTreeTransform.h3093 Optional<Expr *> ArraySize,
3103 ArraySize,
11716 Optional<Expr *> ArraySize;
11724 ArraySize = NewArraySize.get();
11762 ArraySize == E->getArraySize() &&
11789 if (!ArraySize) {
11800 ArraySize = IntegerLiteral::Create(SemaRef.Context, ConsArrayT->getSize(),
11807 ArraySize = DepArrayT->getSizeExpr();
11817 AllocTypeInfo, ArraySize, E->getDirectInitRange(), NewInit.get());
14191 IntegerLiteral *ArraySize local
3085 RebuildCXXNewExpr(SourceLocation StartLoc, bool UseGlobal, SourceLocation PlacementLParen, MultiExprArg PlacementArgs, SourceLocation PlacementRParen, SourceRange TypeIdParens, QualType AllocatedType, TypeSourceInfo *AllocatedTypeInfo, Optional<Expr *> ArraySize, SourceRange DirectInitRange, Expr *Initializer) argument
[all...]
/netbsd-current/external/apache2/llvm/dist/llvm/lib/IR/
H A DInstructions.cpp627 Value *ArraySize,
637 if (!ArraySize)
638 ArraySize = ConstantInt::get(IntPtrTy, 1);
639 else if (ArraySize->getType() != IntPtrTy) {
641 ArraySize = CastInst::CreateIntegerCast(ArraySize, IntPtrTy, false,
644 ArraySize = CastInst::CreateIntegerCast(ArraySize, IntPtrTy, false,
648 if (!IsConstantOne(ArraySize)) {
650 AllocSize = ArraySize; // Operan
624 createMalloc(Instruction *InsertBefore, BasicBlock *InsertAtEnd, Type *IntPtrTy, Type *AllocTy, Value *AllocSize, Value *ArraySize, ArrayRef<OperandBundleDef> OpB, Function *MallocF, const Twine &Name) argument
712 CreateMalloc(Instruction *InsertBefore, Type *IntPtrTy, Type *AllocTy, Value *AllocSize, Value *ArraySize, Function *MallocF, const Twine &Name) argument
720 CreateMalloc(Instruction *InsertBefore, Type *IntPtrTy, Type *AllocTy, Value *AllocSize, Value *ArraySize, ArrayRef<OperandBundleDef> OpB, Function *MallocF, const Twine &Name) argument
738 CreateMalloc(BasicBlock *InsertAtEnd, Type *IntPtrTy, Type *AllocTy, Value *AllocSize, Value *ArraySize, Function *MallocF, const Twine &Name) argument
745 CreateMalloc(BasicBlock *InsertAtEnd, Type *IntPtrTy, Type *AllocTy, Value *AllocSize, Value *ArraySize, ArrayRef<OperandBundleDef> OpB, Function *MallocF, const Twine &Name) argument
1331 AllocaInst(Type *Ty, unsigned AddrSpace, Value *ArraySize, const Twine &Name, Instruction *InsertBefore) argument
1337 AllocaInst(Type *Ty, unsigned AddrSpace, Value *ArraySize, const Twine &Name, BasicBlock *InsertAtEnd) argument
1343 AllocaInst(Type *Ty, unsigned AddrSpace, Value *ArraySize, Align Align, const Twine &Name, Instruction *InsertBefore) argument
1354 AllocaInst(Type *Ty, unsigned AddrSpace, Value *ArraySize, Align Align, const Twine &Name, BasicBlock *InsertAtEnd) argument
[all...]
/netbsd-current/external/apache2/llvm/dist/llvm/lib/CodeGen/
H A DSafeStack.cpp453 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));
/netbsd-current/external/apache2/llvm/dist/llvm/lib/Analysis/
H A DMemoryBuiltins.cpp675 Value *ArraySize = I.getArraySize();
676 if (const ConstantInt *C = dyn_cast<ConstantInt>(ArraySize)) {
962 Value *ArraySize = Builder.CreateZExtOrTrunc( local
964 assert(ArraySize->getType() == Zero->getType() &&
967 Value *Size = ConstantInt::get(ArraySize->getType(),
969 Size = Builder.CreateMul(Size, ArraySize);
/netbsd-current/external/apache2/llvm/dist/llvm/lib/Transforms/Instrumentation/
H A DHWAddressSanitizer.cpp881 uint64_t ArraySize = 1; local
885 ArraySize = CI->getZExtValue();
889 return SizeInBytes * ArraySize;
1295 uint64_t ArraySize = local
1297 AllocatedType = ArrayType::get(AllocatedType, ArraySize);
H A DAddressSanitizer.cpp628 uint64_t ArraySize = 1; local
632 ArraySize = CI->getZExtValue();
637 return SizeInBytes * ArraySize;
/netbsd-current/external/apache2/llvm/dist/clang/lib/AST/
H A DExprCXX.cpp185 Optional<Expr *> ArraySize,
199 CXXNewExprBits.IsArray = ArraySize.hasValue();
208 if (ArraySize)
209 getTrailingObjects<Stmt *>()[arraySizeOffset()] = *ArraySize;
247 Optional<Expr *> ArraySize,
251 bool IsArray = ArraySize.hasValue();
262 ArraySize, InitializationStyle, Initializer, Ty,
181 CXXNewExpr(bool IsGlobalNew, FunctionDecl *OperatorNew, FunctionDecl *OperatorDelete, bool ShouldPassAlignment, bool UsualArrayDeleteWantsSize, ArrayRef<Expr *> PlacementArgs, SourceRange TypeIdParens, Optional<Expr *> ArraySize, InitializationStyle InitializationStyle, Expr *Initializer, QualType Ty, TypeSourceInfo *AllocatedTypeInfo, SourceRange Range, SourceRange DirectInitRange) argument
243 Create(const ASTContext &Ctx, bool IsGlobalNew, FunctionDecl *OperatorNew, FunctionDecl *OperatorDelete, bool ShouldPassAlignment, bool UsualArrayDeleteWantsSize, ArrayRef<Expr *> PlacementArgs, SourceRange TypeIdParens, Optional<Expr *> ArraySize, InitializationStyle InitializationStyle, Expr *Initializer, QualType Ty, TypeSourceInfo *AllocatedTypeInfo, SourceRange Range, SourceRange DirectInitRange) argument
H A DTextNodeDumper.cpp499 unsigned ArraySize = Value.getArraySize(); local
501 OS << "Array size=" << ArraySize; local
514 OS << ArraySize - NumInitializedElements << " x ";
H A DExprConstant.cpp192 uint64_t &ArraySize, QualType &Type, bool &IsArray,
209 ArraySize = CAT->getSize().getZExtValue();
213 ArraySize = AssumedSizeForUnsizedArray;
218 ArraySize = 2;
223 ArraySize = 0;
228 ArraySize = 0;
367 uint64_t ArraySize = local
369 return {ArrayIndex, ArraySize - ArrayIndex};
461 uint64_t ArraySize = local
464 if (N < -(int64_t)ArrayIndex || N > ArraySize
190 findMostDerivedSubobject(ASTContext &Ctx, APValue::LValueBase Base, ArrayRef<APValue::LValuePathEntry> Path, uint64_t &ArraySize, QualType &Type, bool &IsArray, bool &FirstEntryIsUnsizedArray) argument
[all...]
/netbsd-current/external/apache2/llvm/dist/llvm/include/llvm/Frontend/OpenMP/
H A DOMPIRBuilder.h787 #define OMP_ARRAY_TYPE(VarName, ElemTy, ArraySize) \
/netbsd-current/external/public-domain/sqlite/dist/
H A Dshell.c1450 #define ArraySize(X) (int)(sizeof(X)/sizeof(X[0])) macro
1882 for(i=0; i<ArraySize(aMult); i++){
2124 for(i=0; i<ArraySize(aPrefix); i++){
18965 for(i=0; i<ArraySize(azProhibitedFunctions); i++){
19042 for(i=0; i<ArraySize(azTerm); i++){
19272 int nWidth = ArraySize(aExplainWidth);
19278 nWidth = ArraySize(aScanExpWidth);
19874 for(i=0; i<ArraySize(aTrans); i++){
21809 for(i=0; i<ArraySize(azHelp); i++){
21834 for(i=0; i<ArraySize(azHel
[all...]
H A Dsqlite3.c15227 #define ArraySize(X) ((int)(sizeof(X)/sizeof(X[0]))) macro
230175 # define ArraySize macro
[all...]
/netbsd-current/external/apache2/llvm/dist/clang/lib/CodeGen/
H A DCGExpr.cpp70 llvm::Value *ArraySize) {
71 auto Alloca = CreateTempAlloca(Ty, Name, ArraySize);
80 llvm::Value *ArraySize,
82 auto Alloca = CreateTempAllocaWithoutCast(Ty, Align, Name, ArraySize);
93 // When ArraySize is nullptr, alloca is inserted at AllocaInsertPt,
96 if (!ArraySize)
107 /// block if \p ArraySize is nullptr, otherwise inserts it at the current
111 llvm::Value *ArraySize) {
112 if (ArraySize)
113 return Builder.CreateAlloca(Ty, ArraySize, Nam
67 CreateTempAllocaWithoutCast(llvm::Type *Ty, CharUnits Align, const Twine &Name, llvm::Value *ArraySize) argument
78 CreateTempAlloca(llvm::Type *Ty, CharUnits Align, const Twine &Name, llvm::Value *ArraySize, Address *AllocaAddr) argument
109 CreateTempAlloca(llvm::Type *Ty, const Twine &Name, llvm::Value *ArraySize) argument
676 EmitTypeCheck(TypeCheckKind TCK, SourceLocation Loc, llvm::Value *Ptr, QualType Ty, CharUnits Alignment, SanitizerSet SkippedChecks, llvm::Value *ArraySize) argument
[all...]
H A DCGOpenMPRuntimeGPU.cpp195 llvm::APInt ArraySize(32, BufSize);
196 Type = C.getConstantArrayType(Type, ArraySize, nullptr, ArrayType::Normal,
3779 llvm::APInt ArraySize(/*unsigned int numBits=*/32, Size);
3781 C.getConstantArrayType(C.VoidPtrTy, ArraySize, nullptr, ArrayType::Normal,
H A DCodeGenFunction.h2474 /// block if \p ArraySize is nullptr, otherwise inserts it at the current
2479 /// \p ArraySize is the number of array elements to be allocated if it
2500 llvm::Value *ArraySize = nullptr);
2503 llvm::Value *ArraySize = nullptr,
2507 llvm::Value *ArraySize = nullptr);
2943 /// (or if ArraySize is provided, for an array of that bound).
2947 llvm::Value *ArraySize = nullptr);
/netbsd-current/external/apache2/llvm/dist/llvm/include/llvm/IR/
H A DInstructions.h78 explicit AllocaInst(Type *Ty, unsigned AddrSpace, Value *ArraySize,
80 AllocaInst(Type *Ty, unsigned AddrSpace, Value *ArraySize,
88 AllocaInst(Type *Ty, unsigned AddrSpace, Value *ArraySize, Align Align,
90 AllocaInst(Type *Ty, unsigned AddrSpace, Value *ArraySize, Align Align,
1610 Value *ArraySize = nullptr,
1615 Value *ArraySize = nullptr,
1620 Value *ArraySize = nullptr,
1626 Value *ArraySize = nullptr,
H A DIRBuilder.h1622 Value *ArraySize = nullptr, const Twine &Name = "") {
1625 return Insert(new AllocaInst(Ty, AddrSpace, ArraySize, AllocaAlign), Name);
1628 AllocaInst *CreateAlloca(Type *Ty, Value *ArraySize = nullptr,
1633 return Insert(new AllocaInst(Ty, AddrSpace, ArraySize, AllocaAlign), Name);
/netbsd-current/external/apache2/llvm/dist/llvm/lib/Transforms/Scalar/
H A DLoopIdiomRecognize.cpp469 unsigned ArraySize = 16 / Size; local
470 ArrayType *AT = ArrayType::get(V->getType(), ArraySize);
471 return ConstantArray::get(AT, std::vector<Constant *>(ArraySize, C));
/netbsd-current/external/apache2/llvm/dist/llvm/lib/Frontend/OpenMP/
H A DOMPIRBuilder.cpp2584 #define OMP_ARRAY_TYPE(VarName, ElemTy, ArraySize) \
2585 VarName##Ty = ArrayType::get(ElemTy, ArraySize); \

Completed in 1321 milliseconds

12