Home
last modified time | relevance | path

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

12

/freebsd/contrib/llvm-project/clang/lib/StaticAnalyzer/Checkers/
H A DVLASizeChecker.cpp47 const VariableArrayType *VLA, SVal &ArraySize) const;
68 SVal &ArraySize) const { in checkVLA()
145 ArraySize = ArrSize; in checkVLA()
285 SVal ArraySize; in checkPreStmt() local
287 State = checkVLA(C, State, VLA, ArraySize); in checkPreStmt()
291 if (!isa<NonLoc>(ArraySize)) { in checkPreStmt()
301 ArraySize.castAs<NonLoc>()); in checkPreStmt()
325 SVal ArraySize; in checkPreStmt() local
326 State = checkVLA(C, State, VLA, ArraySize); in checkPreStmt()
/freebsd/contrib/llvm-project/compiler-rt/lib/scudo/standalone/
H A Dchunk.h23 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 DSemaExprCXX.cpp2011 std::optional<Expr *> ArraySize; in ActOnCXXNew() local
2026 ArraySize = Chunk.Arr.NumElts; in ActOnCXXNew()
2031 if (ArraySize) { in ActOnCXXNew()
2074 TypeIdParens, AllocType, TInfo, ArraySize, DirectInitRange, in ActOnCXXNew()
2134 std::optional<Expr *> ArraySize, in BuildCXXNew() argument
2191 if (ArraySize) in BuildCXXNew()
2193 Diag(*ArraySize ? (*ArraySize)->getExprLoc() : TypeRange.getBegin(), in BuildCXXNew()
2196 << (*ArraySize ? (*ArraySize)->getSourceRange() : TypeRange)); in BuildCXXNew()
2248 if (!ArraySize && !AllocType->isDependentType()) { in BuildCXXNew()
2251 ArraySize = IntegerLiteral::Create(Context, Array->getSize(), in BuildCXXNew()
[all …]
H A DSemaType.cpp1982 static ExprResult checkArraySize(Sema &S, Expr *&ArraySize, in checkArraySize() argument
1987 !ArraySize->getType()->isIntegralOrUnscopedEnumerationType())) { in checkArraySize()
1997 ArraySize, S.Context.getSizeType(), SizeVal, CCEKind::ArrayBound); in checkArraySize()
2029 S.VerifyIntegerConstantExpression(ArraySize, &SizeVal, Diagnoser); in checkArraySize()
2053 Expr *ArraySize, unsigned Quals, in BuildArrayType() argument
2134 if (ArraySize && ArraySize->hasPlaceholderType()) { in BuildArrayType()
2135 ExprResult Result = CheckPlaceholderExpr(ArraySize); in BuildArrayType()
2137 ArraySize = Result.get(); in BuildArrayType()
2141 if (ArraySize && !ArraySize->isPRValue()) { in BuildArrayType()
2142 ExprResult Result = DefaultLvalueConversion(ArraySize); in BuildArrayType()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/IR/
H A DIRBuilder.cpp260 Value *AllocSize, Value *ArraySize, in CreateMalloc() argument
267 if (!ArraySize) in CreateMalloc()
268 ArraySize = ConstantInt::get(IntPtrTy, 1); in CreateMalloc()
269 else if (ArraySize->getType() != IntPtrTy) in CreateMalloc()
270 ArraySize = CreateIntCast(ArraySize, IntPtrTy, false); in CreateMalloc()
272 if (!isConstantOne(ArraySize)) { in CreateMalloc()
274 AllocSize = ArraySize; // Operand * 1 = Operand in CreateMalloc()
277 AllocSize = CreateMul(ArraySize, AllocSize, "mallocsize"); in CreateMalloc()
303 Value *AllocSize, Value *ArraySize, in CreateMalloc() argument
306 return CreateMalloc(IntPtrTy, AllocTy, AllocSize, ArraySize, {}, MallocF, in CreateMalloc()
/freebsd/contrib/llvm-project/llvm/lib/Support/
H A DSmallPtrSet.cpp85 unsigned ArraySize = CurArraySize; in FindBucketFor() local
106 Bucket = (Bucket + ProbeAmt++) & (ArraySize-1); in FindBucketFor()
/freebsd/contrib/llvm-project/clang/lib/CodeGen/Targets/
H A DLoongArch.cpp148 uint64_t ArraySize = ATy->getZExtSize(); in detectFARsEligibleStructHelper() local
153 if (ArraySize != 0 && isa<CXXRecordDecl>(RTy->getDecl()) && in detectFARsEligibleStructHelper()
158 for (uint64_t i = 0; i < ArraySize; ++i) { in detectFARsEligibleStructHelper()
H A DRISCV.cpp226 uint64_t ArraySize = ATy->getZExtSize(); in detectFPCCEligibleStructHelper() local
231 if (ArraySize != 0 && isa<CXXRecordDecl>(RTy->getDecl()) && in detectFPCCEligibleStructHelper()
236 for (uint64_t i = 0; i < ArraySize; ++i) { in detectFPCCEligibleStructHelper()
/freebsd/contrib/llvm-project/llvm/lib/CodeGen/
H A DSafeStack.cpp671 Value *ArraySize = AI->getArraySize(); in moveDynamicAllocasToUnsafeStack() local
672 if (ArraySize->getType() != IntPtrTy) in moveDynamicAllocasToUnsafeStack()
673 ArraySize = IRB.CreateIntCast(ArraySize, IntPtrTy, false); in moveDynamicAllocasToUnsafeStack()
677 Value *Size = IRB.CreateMul(ArraySize, ConstantInt::get(IntPtrTy, TySize)); in moveDynamicAllocasToUnsafeStack()
H A DPreISelIntrinsicLowering.cpp299 uint64_t ArraySize = 16 / Size; in getMemSetPattern16Value() local
300 ArrayType *AT = ArrayType::get(V->getType(), ArraySize); in getMemSetPattern16Value()
301 return ConstantArray::get(AT, std::vector<Constant *>(ArraySize, C)); in getMemSetPattern16Value()
/freebsd/contrib/llvm-project/llvm/lib/Analysis/
H A DMemoryBuiltins.cpp905 Value *ArraySize = I.getArraySize(); in visitAllocaInst() local
907 aggregatePossibleConstantValues(ArraySize, Options.EvalMode)) { in visitAllocaInst()
1288 Value *ArraySize = Builder.CreateZExtOrTrunc( in visitAllocaInst() local
1291 assert(ArraySize->getType() == Zero->getType() && in visitAllocaInst()
1295 ArraySize->getType(), DL.getTypeAllocSize(I.getAllocatedType())); in visitAllocaInst()
1296 Size = Builder.CreateMul(Size, ArraySize); in visitAllocaInst()
/freebsd/contrib/llvm-project/clang/lib/Parse/
H A DParseInit.cpp396 llvm::APSInt ArraySize = in createEmbedExpr() local
399 Ty, ArraySize, nullptr, ArraySizeModifier::Normal, 0); in createEmbedExpr()
/freebsd/contrib/llvm-project/clang/lib/AST/
H A DExprCXX.cpp233 std::optional<Expr *> ArraySize, in CXXNewExpr() argument
248 CXXNewExprBits.IsArray = ArraySize.has_value(); in CXXNewExpr()
260 if (ArraySize) in CXXNewExpr()
261 getTrailingObjects<Stmt *>()[arraySizeOffset()] = *ArraySize; in CXXNewExpr()
297 SourceRange TypeIdParens, std::optional<Expr *> ArraySize, in Create() argument
301 bool IsArray = ArraySize.has_value(); in Create()
311 PlacementArgs, TypeIdParens, ArraySize, InitializationStyle, Initializer, in Create()
H A DExprConstant.cpp200 uint64_t &ArraySize, QualType &Type, bool &IsArray, in findMostDerivedSubobject() argument
219 ArraySize = CAT->getZExtSize(); in findMostDerivedSubobject()
223 ArraySize = AssumedSizeForUnsizedArray; in findMostDerivedSubobject()
228 ArraySize = 2; in findMostDerivedSubobject()
233 ArraySize = VT->getNumElements(); in findMostDerivedSubobject()
238 ArraySize = 0; in findMostDerivedSubobject()
243 ArraySize = 0; in findMostDerivedSubobject()
384 uint64_t ArraySize = in validIndexAdjustments() local
386 return {ArrayIndex, ArraySize - ArrayIndex}; in validIndexAdjustments()
488 uint64_t ArraySize = in adjustIndex() local
[all …]
H A DTextNodeDumper.cpp773 unsigned ArraySize = Value.getArraySize(); in Visit() local
775 OS << "Array size=" << ArraySize; in Visit()
788 OS << ArraySize - NumInitializedElements << " x "; in Visit()
/freebsd/contrib/llvm-project/llvm/lib/Transforms/AggressiveInstCombine/
H A DAggressiveInstCombine.cpp556 uint64_t ArraySize = GEP->getSourceElementType()->getArrayNumElements(); in tryToRecognizeTableBasedCttz() local
557 if (ArraySize != 32 && ArraySize != 64) in tryToRecognizeTableBasedCttz()
/freebsd/contrib/llvm-project/clang/lib/CodeGen/
H A DCodeGenFunction.h2836 llvm::Value *ArraySize = nullptr);
2843 llvm::Value *ArraySize = nullptr,
2853 llvm::Value *ArraySize = nullptr,
2855 return CreateTempAlloca(Ty, LangAS::Default, align, Name, ArraySize,
2861 llvm::Value *ArraySize = nullptr);
3305 llvm::Value *ArraySize = nullptr) {
3309 SkippedChecks, ArraySize);
3315 llvm::Value *ArraySize = nullptr) {
3319 SkippedChecks, ArraySize);
3328 llvm::Value *ArraySize = nullptr);
H A DCGExpr.cpp93 llvm::Value *ArraySize) { in CreateTempAllocaWithoutCast() argument
94 auto Alloca = CreateTempAlloca(Ty, Name, ArraySize); in CreateTempAllocaWithoutCast()
101 llvm::Value *ArraySize, in CreateTempAlloca() argument
103 RawAddress Alloca = CreateTempAllocaWithoutCast(Ty, Align, Name, ArraySize); in CreateTempAlloca()
118 if (!ArraySize) in CreateTempAlloca()
133 llvm::Value *ArraySize) { in CreateTempAlloca() argument
135 if (ArraySize) in CreateTempAlloca()
136 Alloca = Builder.CreateAlloca(Ty, ArraySize, Name); in CreateTempAlloca()
140 ArraySize, Name, AllocaInsertPt->getIterator()); in CreateTempAlloca()
732 llvm::Value *ArraySize) { in EmitTypeCheck() argument
[all …]
/freebsd/contrib/llvm-project/llvm/include/llvm/IR/
H A DIRBuilder.h659 Value *AllocSize, Value *ArraySize,
670 Value *AllocSize, Value *ArraySize,
1836 Value *ArraySize = nullptr, const Twine &Name = "") {
1839 return Insert(new AllocaInst(Ty, AddrSpace, ArraySize, AllocaAlign), Name);
1842 AllocaInst *CreateAlloca(Type *Ty, Value *ArraySize = nullptr,
1847 return Insert(new AllocaInst(Ty, AddrSpace, ArraySize, AllocaAlign), Name);
/freebsd/contrib/sqlite3/
H A Dshell.c78 #define ArraySize(X) (int)(sizeof(X)/sizeof(X[0])) macro
24432 for(i=0; i<ArraySize(aMult); i++){ in integerValue()
24657 for(i=0; i<ArraySize(aPrefix); i++){ in shellAddSchemaName()
24945 if( eMode<ArraySize(aModeInfo) ){ in modeChange()
25020 for(i=0; i<ArraySize(aModeInfo); i++){ in modeFind()
25547 for(i=0; i<ArraySize(azProhibitedFunctions); i++){ in safeModeAuth()
25624 for(i=0; i<ArraySize(azTerm); i++){ in printSchemaLine()
26043 for(i=0; i<ArraySize(aTrans); i++){ in displayLinuxIoStats()
26554 assert( /*pArg->mode.eMode>=0 &&*/ pArg->mode.eMode<ArraySize(aModeInfo) ); in shell_exec()
27460 for(i=0; i<ArraySize(aUsage); i++){ in findUsage()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/Target/SPIRV/
H A DSPIRVEmitIntrinsics.cpp1779 Value *ArraySize = nullptr; in visitAllocaInst() local
1788 ArraySize = I.getArraySize(); in visitAllocaInst()
1795 ArraySize in visitAllocaInst()
1797 {PtrTy, ArraySize->getType()}, in visitAllocaInst()
1798 {ArraySize, B.getInt8(I.getAlign().value())}) in visitAllocaInst()
H A DSPIRVInstructionSelector.cpp324 uint32_t ArraySize, Register IndexReg,
3430 uint32_t Set, uint32_t Binding, uint32_t ArraySize, Register IndexReg, in buildPointerToResource() argument
3433 if (ArraySize == 1) { in buildPointerToResource()
3442 const Type *VarType = ArrayType::get(const_cast<Type *>(ResType), ArraySize); in buildPointerToResource()
4130 uint32_t ArraySize = foldImm(HandleDef.getOperand(4), MRI); in loadHandleBeforePosition() local
4132 bool IsNonUniform = ArraySize > 1 && foldImm(HandleDef.getOperand(6), MRI); in loadHandleBeforePosition()
4147 buildPointerToResource(VarType, SC, Set, Binding, ArraySize, IndexReg, in loadHandleBeforePosition()
/freebsd/contrib/llvm-project/clang/lib/AST/ByteCode/
H A DInterp.cpp1773 std::optional<uint64_t> ArraySize) { in CheckNewTypeMismatch() argument
1812 if (ArraySize) { in CheckNewTypeMismatch()
1815 APInt(64, static_cast<uint64_t>(*ArraySize), false), nullptr, in CheckNewTypeMismatch()
/freebsd/contrib/llvm-project/llvm/include/llvm/Frontend/OpenMP/
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)
/freebsd/contrib/llvm-project/llvm/lib/CodeGen/AsmPrinter/
H A DCodeViewDebug.cpp1787 uint64_t ArraySize = in lowerTypeArray() local
1791 ArrayRecord AR(ElementTypeIndex, IndexType, ArraySize, Name); in lowerTypeArray()
1805 uint64_t ArraySize = Ty->getSizeInBits() >> 3; in lowerTypeString() local
1813 ArrayRecord AR(CharType, IndexType, ArraySize, Name); in lowerTypeString()

12