/freebsd/contrib/llvm-project/clang/lib/StaticAnalyzer/Checkers/ |
H A D | VLASizeChecker.cpp | 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()
|
/freebsd/contrib/llvm-project/compiler-rt/lib/scudo/standalone/ |
H A D | chunk.h | 23 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/contrib/llvm-project/clang/lib/Sema/ |
H A D | SemaExprCXX.cpp | 1912 std::optional<Expr *> ArraySize; in ActOnCXXNew() local 1927 ArraySize = static_cast<Expr*>(Chunk.Arr.NumElts); in ActOnCXXNew() 1932 if (ArraySize) { in ActOnCXXNew() 1975 TypeIdParens, AllocType, TInfo, ArraySize, DirectInitRange, in ActOnCXXNew() 2036 std::optional<Expr *> ArraySize, in BuildCXXNew() argument 2089 if (ArraySize) in BuildCXXNew() 2091 Diag(*ArraySize ? (*ArraySize)->getExprLoc() : TypeRange.getBegin(), in BuildCXXNew() 2094 << (*ArraySize ? (*ArraySize)->getSourceRange() : TypeRange)); in BuildCXXNew() 2145 if (!ArraySize) { in BuildCXXNew() 2148 ArraySize = IntegerLiteral::Create(Context, Array->getSize(), in BuildCXXNew() [all …]
|
H A D | SemaType.cpp | 1957 static ExprResult checkArraySize(Sema &S, Expr *&ArraySize, in checkArraySize() argument 1962 !ArraySize->getType()->isIntegralOrUnscopedEnumerationType())) { in checkArraySize() 1972 ArraySize, S.Context.getSizeType(), SizeVal, Sema::CCEK_ArrayBound); in checkArraySize() 2004 S.VerifyIntegerConstantExpression(ArraySize, &SizeVal, Diagnoser); in checkArraySize() 2028 Expr *ArraySize, unsigned Quals, in BuildArrayType() argument 2109 if (ArraySize && ArraySize->hasPlaceholderType()) { in BuildArrayType() 2110 ExprResult Result = CheckPlaceholderExpr(ArraySize); in BuildArrayType() 2112 ArraySize = Result.get(); in BuildArrayType() 2116 if (ArraySize && !ArraySize->isPRValue()) { in BuildArrayType() 2117 ExprResult Result = DefaultLvalueConversion(ArraySize); in BuildArrayType() [all …]
|
/freebsd/contrib/llvm-project/llvm/lib/IR/ |
H A D | IRBuilder.cpp | 303 Value *AllocSize, Value *ArraySize, in CreateMalloc() argument 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() argument 349 return CreateMalloc(IntPtrTy, AllocTy, AllocSize, ArraySize, std::nullopt, in CreateMalloc()
|
H A D | Instructions.cpp | 1210 AllocaInst::AllocaInst(Type *Ty, unsigned AddrSpace, Value *ArraySize, in AllocaInst() argument 1212 : AllocaInst(Ty, AddrSpace, ArraySize, in AllocaInst() 1216 AllocaInst::AllocaInst(Type *Ty, unsigned AddrSpace, Value *ArraySize, in AllocaInst() argument 1220 getAISize(Ty->getContext(), ArraySize), InsertBefore), in AllocaInst()
|
/freebsd/contrib/llvm-project/llvm/lib/Support/ |
H A D | SmallPtrSet.cpp | 67 unsigned ArraySize = CurArraySize; in FindBucketFor() local 88 Bucket = (Bucket + ProbeAmt++) & (ArraySize-1); in FindBucketFor()
|
/freebsd/stand/efi/include/ |
H A D | efifs.h | 99 UINT32 ArraySize; member
|
/freebsd/contrib/llvm-project/clang/lib/CodeGen/Targets/ |
H A D | LoongArch.cpp | 149 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 D | RISCV.cpp | 155 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/contrib/llvm-project/llvm/lib/CodeGen/ |
H A D | SafeStack.cpp | 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/contrib/llvm-project/llvm/lib/Analysis/ |
H A D | MemoryBuiltins.cpp | 788 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/contrib/llvm-project/clang/lib/Parse/ |
H A D | ParseInit.cpp | 444 llvm::APSInt ArraySize = in createEmbedExpr() local 447 Ty, ArraySize, nullptr, ArraySizeModifier::Normal, 0); in createEmbedExpr()
|
/freebsd/contrib/llvm-project/clang/lib/AST/ |
H A D | ExprCXX.cpp | 233 std::optional<Expr *> ArraySize, in CXXNewExpr() argument 248 CXXNewExprBits.IsArray = ArraySize.has_value(); in CXXNewExpr() 258 if (ArraySize) in CXXNewExpr() 259 getTrailingObjects<Stmt *>()[arraySizeOffset()] = *ArraySize; in CXXNewExpr() 296 SourceRange TypeIdParens, std::optional<Expr *> ArraySize, in Create() argument 300 bool IsArray = ArraySize.has_value(); in Create() 311 ArraySize, InitializationStyle, Initializer, Ty, in Create()
|
H A D | ExprConstant.cpp | 196 uint64_t &ArraySize, QualType &Type, bool &IsArray, in findMostDerivedSubobject() argument 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 = in validIndexAdjustments() local 377 return {ArrayIndex, ArraySize - ArrayIndex}; in validIndexAdjustments() 469 uint64_t ArraySize = in adjustIndex() local 472 if (N < -(int64_t)ArrayIndex || N > ArraySize - ArrayIndex) { in adjustIndex() [all …]
|
H A D | TextNodeDumper.cpp | 684 unsigned ArraySize = Value.getArraySize(); in Visit() local 686 OS << "Array size=" << ArraySize; in Visit() 699 OS << ArraySize - NumInitializedElements << " x "; in Visit()
|
/freebsd/contrib/llvm-project/llvm/lib/Transforms/AggressiveInstCombine/ |
H A D | AggressiveInstCombine.cpp | 548 uint64_t ArraySize = GEP->getSourceElementType()->getArrayNumElements(); in tryToRecognizeTableBasedCttz() local 549 if (ArraySize != 32 && ArraySize != 64) in tryToRecognizeTableBasedCttz()
|
/freebsd/contrib/llvm-project/llvm/lib/Target/SPIRV/ |
H A D | SPIRVEmitIntrinsics.cpp | 1322 Value *ArraySize = nullptr; in visitAllocaInst() local 1331 ArraySize = I.getArraySize(); in visitAllocaInst() 1338 ArraySize ? B.CreateIntrinsic(Intrinsic::spv_alloca_array, in visitAllocaInst() 1339 {PtrTy, ArraySize->getType()}, {ArraySize}) in visitAllocaInst()
|
/freebsd/contrib/sqlite3/ |
H A D | shell.c | 1464 #define ArraySize(X) (int)(sizeof(X)/sizeof(X[0])) macro 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(azHelp); i++){ in showHelp() [all …]
|
/freebsd/contrib/llvm-project/clang/lib/CodeGen/ |
H A D | CGExpr.cpp | 77 llvm::Value *ArraySize) { in CreateTempAllocaWithoutCast() argument 78 auto Alloca = CreateTempAlloca(Ty, Name, ArraySize); in CreateTempAllocaWithoutCast() 87 llvm::Value *ArraySize, in CreateTempAlloca() argument 89 auto Alloca = CreateTempAllocaWithoutCast(Ty, Align, Name, ArraySize); in CreateTempAlloca() 103 if (!ArraySize) in CreateTempAlloca() 118 llvm::Value *ArraySize) { in CreateTempAlloca() argument 120 if (ArraySize) in CreateTempAlloca() 121 Alloca = Builder.CreateAlloca(Ty, ArraySize, Name); in CreateTempAlloca() 124 ArraySize, Name, &*AllocaInsertPt); in CreateTempAlloca() 687 llvm::Value *ArraySize) { in EmitTypeCheck() argument [all …]
|
H A D | CodeGenFunction.h | 2818 llvm::Value *ArraySize = nullptr); 2821 llvm::Value *ArraySize = nullptr, 2825 llvm::Value *ArraySize = nullptr); 3264 llvm::Value *ArraySize = nullptr) { 3268 SkippedChecks, ArraySize); 3274 llvm::Value *ArraySize = nullptr) { 3278 SkippedChecks, ArraySize); 3287 llvm::Value *ArraySize = nullptr);
|
/freebsd/contrib/llvm-project/llvm/include/llvm/IR/ |
H A D | IRBuilder.h | 629 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);
|
/freebsd/contrib/llvm-project/llvm/lib/CodeGen/AsmPrinter/ |
H A D | CodeViewDebug.cpp | 1773 uint64_t ArraySize = in lowerTypeString() local 1777 ArrayRecord AR(ElementTypeIndex, IndexType, ArraySize, Name); in lowerTypeString() 1791 uint64_t ArraySize = Ty->getSizeInBits() >> 3; in lowerTypeBasic() 1798 // Create a type of character array of ArraySize. in lowerTypeBasic() 1799 ArrayRecord AR(CharType, IndexType, ArraySize, Name); in lowerTypeBasic() 1755 uint64_t ArraySize = lowerTypeArray() local
|
/freebsd/contrib/llvm-project/llvm/include/llvm/Frontend/OpenMP/ |
H A D | OMPKinds.def | 65 #define OMP_ARRAY_TYPE(VarName, ElemTy, ArraySize) 68 #define __OMP_ARRAY_TYPE(VarName, ElemTy, ArraySize) \ 69 OMP_ARRAY_TYPE(VarName, ElemTy, ArraySize)
|
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Scalar/ |
H A D | LoopIdiomRecognize.cpp | 401 unsigned ArraySize = 16 / Size; in getMemSetPatternValue() local 402 ArrayType *AT = ArrayType::get(V->getType(), ArraySize); in getMemSetPatternValue() 403 return ConstantArray::get(AT, std::vector<Constant *>(ArraySize, C)); in getMemSetPatternValue()
|