Home
last modified time | relevance | path

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

12

/netbsd-src/external/apache2/llvm/dist/clang/lib/StaticAnalyzer/Checkers/
H A DVLASizeChecker.cpp51 const VariableArrayType *VLA, SVal &ArraySize) const;
70 SVal &ArraySize) const { in checkVLA()
147 ArraySize = ArrSize; in checkVLA()
275 SVal ArraySize; in checkPreStmt() local
277 State = checkVLA(C, State, VLA, ArraySize); in checkPreStmt()
281 auto ArraySizeNL = ArraySize.getAs<NonLoc>(); in checkPreStmt()
292 ArraySize.castAs<DefinedOrUnknownSVal>(), SVB); in checkPreStmt()
316 SVal ArraySize; in checkPreStmt() local
317 State = checkVLA(C, State, VLA, ArraySize); in checkPreStmt()
H A DCheckSecuritySyntaxOnly.cpp689 uint64_t ArraySize = BR.getContext().getTypeSize(Array) / 8; in checkCall_strcpy() local
691 if (ArraySize >= String->getLength() + 1) in checkCall_strcpy()
/netbsd-src/external/apache2/llvm/dist/clang/lib/Sema/
H A DSemaExprCXX.cpp1775 Optional<Expr *> ArraySize; in ActOnCXXNew() local
1790 ArraySize = static_cast<Expr*>(Chunk.Arr.NumElts); in ActOnCXXNew()
1795 if (ArraySize) { in ActOnCXXNew()
1838 TypeIdParens, AllocType, TInfo, ArraySize, DirectInitRange, in ActOnCXXNew()
1901 Optional<Expr *> ArraySize, in BuildCXXNew() argument
1951 if (ArraySize) in BuildCXXNew()
1953 Diag(ArraySize ? (*ArraySize)->getExprLoc() : TypeRange.getBegin(), in BuildCXXNew()
1956 << (ArraySize ? (*ArraySize)->getSourceRange() : TypeRange)); in BuildCXXNew()
1999 if (!ArraySize) { in BuildCXXNew()
2002 ArraySize = IntegerLiteral::Create(Context, Array->getSize(), in BuildCXXNew()
[all …]
H A DSemaType.cpp2256 static ExprResult checkArraySize(Sema &S, Expr *&ArraySize, in checkArraySize() argument
2261 !ArraySize->getType()->isIntegralOrUnscopedEnumerationType())) { in checkArraySize()
2271 ArraySize, S.Context.getSizeType(), SizeVal, Sema::CCEK_ArrayBound); in checkArraySize()
2303 S.VerifyIntegerConstantExpression(ArraySize, &SizeVal, Diagnoser); in checkArraySize()
2325 Expr *ArraySize, unsigned Quals, in BuildArrayType() argument
2393 if (ArraySize && ArraySize->hasPlaceholderType()) { in BuildArrayType()
2394 ExprResult Result = CheckPlaceholderExpr(ArraySize); in BuildArrayType()
2396 ArraySize = Result.get(); in BuildArrayType()
2400 if (ArraySize && !ArraySize->isRValue()) { in BuildArrayType()
2401 ExprResult Result = DefaultLvalueConversion(ArraySize); in BuildArrayType()
[all …]
H A DTreeTransform.h3093 Optional<Expr *> ArraySize, in RebuildCXXNewExpr() argument
3103 ArraySize, in RebuildCXXNewExpr()
11716 Optional<Expr *> ArraySize; in TransformCXXNewExpr() local
11724 ArraySize = NewArraySize.get(); in TransformCXXNewExpr()
11762 ArraySize == E->getArraySize() && in TransformCXXNewExpr()
11789 if (!ArraySize) { in TransformCXXNewExpr()
11800 ArraySize = IntegerLiteral::Create(SemaRef.Context, ConsArrayT->getSize(), in TransformCXXNewExpr()
11807 ArraySize = DepArrayT->getSizeExpr(); in TransformCXXNewExpr()
11817 AllocTypeInfo, ArraySize, E->getDirectInitRange(), NewInit.get()); in TransformCXXNewExpr()
14191 IntegerLiteral *ArraySize in RebuildArrayType() local
[all …]
/netbsd-src/external/apache2/llvm/dist/llvm/lib/IR/
H A DInstructions.cpp627 Value *ArraySize, in createMalloc() argument
637 if (!ArraySize) in createMalloc()
638 ArraySize = ConstantInt::get(IntPtrTy, 1); in createMalloc()
639 else if (ArraySize->getType() != IntPtrTy) { in createMalloc()
641 ArraySize = CastInst::CreateIntegerCast(ArraySize, IntPtrTy, false, in createMalloc()
644 ArraySize = CastInst::CreateIntegerCast(ArraySize, IntPtrTy, false, in createMalloc()
648 if (!IsConstantOne(ArraySize)) { in createMalloc()
650 AllocSize = ArraySize; // Operand * 1 = Operand in createMalloc()
651 } else if (Constant *CO = dyn_cast<Constant>(ArraySize)) { in createMalloc()
659 AllocSize = BinaryOperator::CreateMul(ArraySize, AllocSize, in createMalloc()
[all …]
/netbsd-src/external/apache2/llvm/dist/llvm/lib/Support/
H A DSmallPtrSet.cpp67 unsigned ArraySize = CurArraySize; in FindBucketFor() local
88 Bucket = (Bucket + ProbeAmt++) & (ArraySize-1); in FindBucketFor()
/netbsd-src/external/apache2/llvm/dist/llvm/lib/CodeGen/
H A DSafeStack.cpp663 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()
/netbsd-src/external/apache2/llvm/dist/llvm/lib/Analysis/
H A DMemoryBuiltins.cpp675 Value *ArraySize = I.getArraySize(); in visitAllocaInst() local
676 if (const ConstantInt *C = dyn_cast<ConstantInt>(ArraySize)) { in visitAllocaInst()
962 Value *ArraySize = Builder.CreateZExtOrTrunc( in visitAllocaInst() local
964 assert(ArraySize->getType() == Zero->getType() && in visitAllocaInst()
967 Value *Size = ConstantInt::get(ArraySize->getType(), in visitAllocaInst()
969 Size = Builder.CreateMul(Size, ArraySize); in visitAllocaInst()
/netbsd-src/sys/external/bsd/gnu-efi/dist/inc/
H A Defifs.h94 UINT32 ArraySize; member
/netbsd-src/external/apache2/llvm/dist/clang/lib/AST/
H A DExprCXX.cpp185 Optional<Expr *> ArraySize, in CXXNewExpr() argument
199 CXXNewExprBits.IsArray = ArraySize.hasValue(); in CXXNewExpr()
208 if (ArraySize) in CXXNewExpr()
209 getTrailingObjects<Stmt *>()[arraySizeOffset()] = *ArraySize; in CXXNewExpr()
247 Optional<Expr *> ArraySize, in Create() argument
251 bool IsArray = ArraySize.hasValue(); in Create()
262 ArraySize, InitializationStyle, Initializer, Ty, in Create()
H A DExprConstant.cpp192 uint64_t &ArraySize, QualType &Type, bool &IsArray, in findMostDerivedSubobject() argument
209 ArraySize = CAT->getSize().getZExtValue(); in findMostDerivedSubobject()
213 ArraySize = AssumedSizeForUnsizedArray; in findMostDerivedSubobject()
218 ArraySize = 2; in findMostDerivedSubobject()
223 ArraySize = 0; in findMostDerivedSubobject()
228 ArraySize = 0; in findMostDerivedSubobject()
367 uint64_t ArraySize = in validIndexAdjustments() local
369 return {ArrayIndex, ArraySize - ArrayIndex}; in validIndexAdjustments()
461 uint64_t ArraySize = in adjustIndex() local
464 if (N < -(int64_t)ArrayIndex || N > ArraySize - ArrayIndex) { in adjustIndex()
[all …]
H A DTextNodeDumper.cpp499 unsigned ArraySize = Value.getArraySize(); in Visit() local
501 OS << "Array size=" << ArraySize; in Visit()
514 OS << ArraySize - NumInitializedElements << " x "; in Visit()
/netbsd-src/external/apache2/llvm/dist/llvm/lib/Transforms/Instrumentation/
H A DHWAddressSanitizer.cpp881 uint64_t ArraySize = 1; in getAllocaSizeInBytes() local
885 ArraySize = CI->getZExtValue(); in getAllocaSizeInBytes()
889 return SizeInBytes * ArraySize; in getAllocaSizeInBytes()
1295 uint64_t ArraySize = in sanitizeFunction() local
1297 AllocatedType = ArrayType::get(AllocatedType, ArraySize); in sanitizeFunction()
H A DAddressSanitizer.cpp628 uint64_t ArraySize = 1; in getAllocaSizeInBytes() local
632 ArraySize = CI->getZExtValue(); in getAllocaSizeInBytes()
637 return SizeInBytes * ArraySize; in getAllocaSizeInBytes()
/netbsd-src/external/apache2/llvm/dist/clang/lib/CodeGen/
H A DCGExpr.cpp70 llvm::Value *ArraySize) { in CreateTempAllocaWithoutCast() argument
71 auto Alloca = CreateTempAlloca(Ty, Name, ArraySize); in CreateTempAllocaWithoutCast()
80 llvm::Value *ArraySize, in CreateTempAlloca() argument
82 auto Alloca = CreateTempAllocaWithoutCast(Ty, Align, Name, ArraySize); in CreateTempAlloca()
96 if (!ArraySize) in CreateTempAlloca()
111 llvm::Value *ArraySize) { in CreateTempAlloca() argument
112 if (ArraySize) in CreateTempAlloca()
113 return Builder.CreateAlloca(Ty, ArraySize, Name); in CreateTempAlloca()
115 ArraySize, Name, AllocaInsertPt); in CreateTempAlloca()
680 llvm::Value *ArraySize) { in EmitTypeCheck() argument
[all …]
H A DCodeGenFunction.h2500 llvm::Value *ArraySize = nullptr);
2503 llvm::Value *ArraySize = nullptr,
2507 llvm::Value *ArraySize = nullptr);
2947 llvm::Value *ArraySize = nullptr);
H A DCGOpenMPRuntimeGPU.cpp195 llvm::APInt ArraySize(32, BufSize); in buildRecordForGlobalizedVars() local
196 Type = C.getConstantArrayType(Type, ArraySize, nullptr, ArrayType::Normal, in buildRecordForGlobalizedVars()
3779 llvm::APInt ArraySize(/*unsigned int numBits=*/32, Size); in emitReduction() local
3781 C.getConstantArrayType(C.VoidPtrTy, ArraySize, nullptr, ArrayType::Normal, in emitReduction()
/netbsd-src/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-src/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++){ in integerValue()
2124 for(i=0; i<ArraySize(aPrefix); i++){ in shellAddSchemaName()
18965 for(i=0; i<ArraySize(azProhibitedFunctions); i++){ in safeModeAuth()
19042 for(i=0; i<ArraySize(azTerm); i++){ in printSchemaLine()
19272 int nWidth = ArraySize(aExplainWidth); in shell_callback()
19278 nWidth = ArraySize(aScanExpWidth); in shell_callback()
19874 for(i=0; i<ArraySize(aTrans); i++){ in displayLinuxIoStats()
21809 for(i=0; i<ArraySize(azHelp); i++){ in showHelp()
21834 for(i=0; i<ArraySize(azHelp); i++){ in showHelp()
[all …]
H A Dsqlite3.c15227 #define ArraySize(X) ((int)(sizeof(X)/sizeof(X[0]))) macro
23801 assert( op>=0 && op<ArraySize(wsdStat.nowValue) ); in sqlite3StatusValue()
23802 assert( op>=0 && op<ArraySize(statMutex) ); in sqlite3StatusValue()
23821 assert( op>=0 && op<ArraySize(wsdStat.nowValue) ); in sqlite3StatusUp()
23822 assert( op>=0 && op<ArraySize(statMutex) ); in sqlite3StatusUp()
23833 assert( op>=0 && op<ArraySize(statMutex) ); in sqlite3StatusDown()
23836 assert( op>=0 && op<ArraySize(wsdStat.nowValue) ); in sqlite3StatusDown()
23849 assert( op>=0 && op<ArraySize(wsdStat.nowValue) ); in sqlite3StatusHighwater()
23850 assert( op>=0 && op<ArraySize(statMutex) ); in sqlite3StatusHighwater()
23872 if( op<0 || op>=ArraySize(wsdStat.nowValue) ){ in sqlite3_status64()
[all …]
/netbsd-src/external/apache2/llvm/dist/llvm/include/llvm/Frontend/OpenMP/
H A DOMPIRBuilder.h787 #define OMP_ARRAY_TYPE(VarName, ElemTy, ArraySize) \ argument
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)
/netbsd-src/external/apache2/llvm/dist/llvm/lib/Transforms/Scalar/
H A DLoopIdiomRecognize.cpp469 unsigned ArraySize = 16 / Size; in getMemSetPatternValue() local
470 ArrayType *AT = ArrayType::get(V->getType(), ArraySize); in getMemSetPatternValue()
471 return ConstantArray::get(AT, std::vector<Constant *>(ArraySize, C)); in getMemSetPatternValue()

12