| /llvm-project-15.0.7/compiler-rt/lib/scudo/standalone/tests/ |
| H A D | checksum_test.cpp | 16 scudo::uptr ArraySize) { in computeSoftwareChecksum() argument 18 for (scudo::uptr I = 0; I < ArraySize; I++) in computeSoftwareChecksum() 24 scudo::uptr ArraySize) { in computeHardwareChecksum() argument 26 for (scudo::uptr I = 0; I < ArraySize; I++) in computeHardwareChecksum() 37 const scudo::uptr ArraySize = ARRAY_SIZE(Array); in verifyChecksumFunctionBitFlip() local 40 const scudo::u16 Reference = F(Seed, Array, ArraySize); in verifyChecksumFunctionBitFlip() 42 for (scudo::uptr I = 0; I < ArraySize; I++) { in verifyChecksumFunctionBitFlip() 45 if (F(Seed, Array, ArraySize) == Reference) in verifyChecksumFunctionBitFlip()
|
| /llvm-project-15.0.7/clang/lib/StaticAnalyzer/Checkers/ |
| H A D | VLASizeChecker.cpp | 51 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 if (!isa<NonLoc>(ArraySize)) { in checkPreStmt() 291 ArraySize.castAs<NonLoc>(), SVB); in checkPreStmt() 315 SVal ArraySize; in checkPreStmt() local 316 State = checkVLA(C, State, VLA, ArraySize); in checkPreStmt()
|
| H A D | CheckSecuritySyntaxOnly.cpp | 689 uint64_t ArraySize = BR.getContext().getTypeSize(Array) / 8; in checkCall_strcpy() local 691 if (ArraySize >= String->getLength() + 1) in checkCall_strcpy()
|
| /llvm-project-15.0.7/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()
|
| /llvm-project-15.0.7/clang-tools-extra/clang-tidy/cppcoreguidelines/ |
| H A D | ProBoundsConstantArrayIndexCheck.cpp | 113 llvm::APInt ArraySize = SizeArg.getAsIntegral(); in check() local 117 if (Index->getZExtValue() >= ArraySize.getZExtValue()) { in check() 121 << toString(*Index, 10) << toString(ArraySize, 10, false); in check()
|
| /llvm-project-15.0.7/clang/test/SemaCXX/ |
| H A D | builtin-align-cxx.cpp | 17 template <typename T, long Alignment, long ArraySize = 16> 19 …T array[ArraySize]; // expected-error{{v… in test_templated_arguments() 40 template <typename T, long ArraySize> 58 (void)__builtin_align_up(array, ArraySize); // The same above here in test_incorrect_alignment_without_instatiation()
|
| /llvm-project-15.0.7/clang/lib/Sema/ |
| H A D | SemaExprCXX.cpp | 1855 if (ArraySize) { in ActOnCXXNew() 2009 if (ArraySize) in BuildCXXNew() 2011 Diag(*ArraySize ? (*ArraySize)->getExprLoc() : TypeRange.getBegin(), in BuildCXXNew() 2014 << (*ArraySize ? (*ArraySize)->getSourceRange() : TypeRange)); in BuildCXXNew() 2059 if (!ArraySize) { in BuildCXXNew() 2082 if (ArraySize && *ArraySize && in BuildCXXNew() 2096 if (ArraySize && *ArraySize && !(*ArraySize)->isTypeDependent()) { in BuildCXXNew() 2112 Expr *ArraySize; in BuildCXXNew() member in Sema::BuildCXXNew::SizeConvertDiagnoser 2117 ArraySize(ArraySize) {} in BuildCXXNew() 2365 else if (ArraySize) in BuildCXXNew() [all …]
|
| H A D | SemaType.cpp | 2466 if (ArraySize && ArraySize->hasPlaceholderType()) { in BuildArrayType() 2469 ArraySize = Result.get(); in BuildArrayType() 2473 if (ArraySize && !ArraySize->isPRValue()) { in BuildArrayType() 2478 ArraySize = Result.get(); in BuildArrayType() 2484 ArraySize && !ArraySize->isTypeDependent() && in BuildArrayType() 2487 << ArraySize->getType() << ArraySize->getSourceRange(); in BuildArrayType() 2513 if (!ArraySize) { in BuildArrayType() 2523 } else if (ArraySize->isTypeDependent() || ArraySize->isValueDependent()) { in BuildArrayType() 2563 Diag(ArraySize->getBeginLoc(), in BuildArrayType() 2700 if (!ArraySize->isTypeDependent() && !ArraySize->isValueDependent()) { in BuildExtVectorType() [all …]
|
| /llvm-project-15.0.7/polly/lib/CodeGen/ |
| H A D | ManagedMemoryRewrite.cpp | 233 Value *ArraySize = Builder.getInt64(ArraySizeInt); in replaceGlobalArray() local 234 ArraySize->setName("array.size"); in replaceGlobalArray() 237 Builder.CreateCall(PollyMallocManaged, {ArraySize}, "mem.raw"); in replaceGlobalArray()
|
| H A D | PPCGCodeGeneration.cpp | 799 Value *ArraySize = getArraySize(Array); in allocateDeviceArrays() local 802 ArraySize = Builder.CreateSub( in allocateDeviceArrays() 803 ArraySize, in allocateDeviceArrays() 806 const SCEV *SizeSCEV = SE.getSCEV(ArraySize); in allocateDeviceArrays() 813 << " has computed array size 0: " << *ArraySize in allocateDeviceArrays() 819 Value *DevArray = createCallAllocateMemoryForDevice(ArraySize); in allocateDeviceArrays() 1117 Value *ArraySize = ConstantInt::get(Builder.getInt64Ty(), Array->size); in getArraySize() local 1132 if (NumElements->getType() != ArraySize->getType()) in getArraySize() 1133 NumElements = Builder.CreateSExt(NumElements, ArraySize->getType()); in getArraySize() 1134 ArraySize = Builder.CreateMul(ArraySize, NumElements); in getArraySize() [all …]
|
| /llvm-project-15.0.7/llvm/lib/Support/ |
| H A D | SmallPtrSet.cpp | 67 unsigned ArraySize = CurArraySize; in FindBucketFor() local 88 Bucket = (Bucket + ProbeAmt++) & (ArraySize-1); in FindBucketFor()
|
| /llvm-project-15.0.7/llvm/lib/IR/ |
| H A D | Instructions.cpp | 665 Value *ArraySize, in createMalloc() argument 675 if (!ArraySize) in createMalloc() 676 ArraySize = ConstantInt::get(IntPtrTy, 1); in createMalloc() 677 else if (ArraySize->getType() != IntPtrTy) { in createMalloc() 679 ArraySize = CastInst::CreateIntegerCast(ArraySize, IntPtrTy, false, in createMalloc() 682 ArraySize = CastInst::CreateIntegerCast(ArraySize, IntPtrTy, false, in createMalloc() 686 if (!IsConstantOne(ArraySize)) { in createMalloc() 765 ArraySize, OpB, MallocF, Name); in CreateMalloc() 789 ArraySize, OpB, MallocF, Name); in CreateMalloc() 1373 : AllocaInst(Ty, AddrSpace, ArraySize, in AllocaInst() [all …]
|
| /llvm-project-15.0.7/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()
|
| /llvm-project-15.0.7/compiler-rt/lib/scudo/ |
| H A D | scudo_allocator.cpp | 47 inline u32 computeCRC32(u32 Crc, uptr Value, uptr *Array, uptr ArraySize) { in computeCRC32() argument 54 for (uptr i = 0; i < ArraySize; i++) in computeCRC32() 60 for (uptr i = 0; i < ArraySize; i++) in computeCRC32() 65 for (uptr i = 0; i < ArraySize; i++) in computeCRC32()
|
| /llvm-project-15.0.7/llvm/lib/Analysis/ |
| H A D | MemoryBuiltins.cpp | 790 Value *ArraySize = I.getArraySize(); in visitAllocaInst() local 791 if (const ConstantInt *C = dyn_cast<ConstantInt>(ArraySize)) { in visitAllocaInst() 1135 Value *ArraySize = Builder.CreateZExtOrTrunc( in visitAllocaInst() local 1137 assert(ArraySize->getType() == Zero->getType() && in visitAllocaInst() 1140 Value *Size = ConstantInt::get(ArraySize->getType(), in visitAllocaInst() 1142 Size = Builder.CreateMul(Size, ArraySize); in visitAllocaInst()
|
| /llvm-project-15.0.7/clang-tools-extra/clang-tidy/modernize/ |
| H A D | MakeSmartPtrCheck.cpp | 286 if (const auto *ArraySize = New->getArraySize().value_or(nullptr)) { in replaceNew() local 288 ArraySize->getSourceRange()), in replaceNew()
|
| H A D | LoopConvertUtils.cpp | 451 llvm::APSInt ArraySize(ConstType->getSize()); in arrayMatchesBoundExpr() local 452 return llvm::APSInt::isSameValue(*ConditionSize, ArraySize); in arrayMatchesBoundExpr()
|
| /llvm-project-15.0.7/clang/lib/AST/ |
| H A D | ExprCXX.cpp | 185 Optional<Expr *> ArraySize, in CXXNewExpr() argument 199 CXXNewExprBits.IsArray = ArraySize.has_value(); 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.has_value(); in Create() 262 ArraySize, InitializationStyle, Initializer, Ty, in Create()
|
| H A D | ExprConstant.cpp | 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 476 assert(ArrayIndex <= ArraySize && in adjustIndex() 6976 unsigned ArraySize = Val.getArraySize(); in visitArray() local 9531 const Expr *Stripped = *ArraySize; in VisitCXXNewExpr() [all …]
|
| H A D | TextNodeDumper.cpp | 542 unsigned ArraySize = Value.getArraySize(); in Visit() local 544 OS << "Array size=" << ArraySize; in Visit() 557 OS << ArraySize - NumInitializedElements << " x "; in Visit()
|
| /llvm-project-15.0.7/clang/lib/CodeGen/ |
| H A D | CGExpr.cpp | 71 llvm::Value *ArraySize) { in CreateTempAllocaWithoutCast() argument 72 auto Alloca = CreateTempAlloca(Ty, Name, ArraySize); in CreateTempAllocaWithoutCast() 81 llvm::Value *ArraySize, in CreateTempAlloca() argument 83 auto Alloca = CreateTempAllocaWithoutCast(Ty, Align, Name, ArraySize); in CreateTempAlloca() 97 if (!ArraySize) in CreateTempAlloca() 113 if (ArraySize) in CreateTempAlloca() 114 return Builder.CreateAlloca(Ty, ArraySize, Name); in CreateTempAlloca() 116 ArraySize, Name, AllocaInsertPt); in CreateTempAlloca() 679 llvm::Value *ArraySize) { in EmitTypeCheck() argument 738 if (ArraySize) in EmitTypeCheck() [all …]
|
| /llvm-project-15.0.7/llvm/include/llvm/IR/ |
| H A D | Instructions.h | 76 explicit AllocaInst(Type *Ty, unsigned AddrSpace, Value *ArraySize, 78 AllocaInst(Type *Ty, unsigned AddrSpace, Value *ArraySize, 86 AllocaInst(Type *Ty, unsigned AddrSpace, Value *ArraySize, Align Align, 88 AllocaInst(Type *Ty, unsigned AddrSpace, Value *ArraySize, Align Align, 1620 Value *ArraySize = nullptr, 1625 Value *ArraySize = nullptr, 1630 Value *ArraySize = nullptr, 1636 Value *ArraySize = nullptr,
|
| H A D | IRBuilder.h | 1633 Value *ArraySize = nullptr, const Twine &Name = "") { 1636 return Insert(new AllocaInst(Ty, AddrSpace, ArraySize, AllocaAlign), Name); 1639 AllocaInst *CreateAlloca(Type *Ty, Value *ArraySize = nullptr, 1644 return Insert(new AllocaInst(Ty, AddrSpace, ArraySize, AllocaAlign), Name);
|
| /llvm-project-15.0.7/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)
|
| H A D | OMPIRBuilder.h | 1231 #define OMP_ARRAY_TYPE(VarName, ElemTy, ArraySize) \ argument
|