Home
last modified time | relevance | path

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

12

/openbsd-src/gnu/llvm/compiler-rt/lib/scudo/standalone/tests/
H A Dchecksum_test.cpp16 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()
/openbsd-src/gnu/llvm/clang/lib/StaticAnalyzer/Checkers/
H A DVLASizeChecker.cpp52 const VariableArrayType *VLA, SVal &ArraySize) const;
71 SVal &ArraySize) const { in checkVLA()
148 ArraySize = ArrSize; in checkVLA()
276 SVal ArraySize; in checkPreStmt() local
278 State = checkVLA(C, State, VLA, ArraySize); in checkPreStmt()
282 if (!isa<NonLoc>(ArraySize)) { in checkPreStmt()
292 ArraySize.castAs<NonLoc>(), 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()
/openbsd-src/gnu/llvm/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()
/openbsd-src/gnu/llvm/clang/lib/Sema/
H A DSemaExprCXX.cpp1850 std::optional<Expr *> ArraySize; in ActOnCXXNew() local
1865 ArraySize = static_cast<Expr*>(Chunk.Arr.NumElts); in ActOnCXXNew()
1870 if (ArraySize) { in ActOnCXXNew()
1913 TypeIdParens, AllocType, TInfo, ArraySize, DirectInitRange, in ActOnCXXNew()
1974 std::optional<Expr *> ArraySize, in BuildCXXNew() argument
2022 if (ArraySize) in BuildCXXNew()
2024 Diag(*ArraySize ? (*ArraySize)->getExprLoc() : TypeRange.getBegin(), in BuildCXXNew()
2027 << (*ArraySize ? (*ArraySize)->getSourceRange() : TypeRange)); in BuildCXXNew()
2077 if (!ArraySize) { in BuildCXXNew()
2080 ArraySize = IntegerLiteral::Create(Context, Array->getSize(), in BuildCXXNew()
[all …]
H A DSemaType.cpp2351 static ExprResult checkArraySize(Sema &S, Expr *&ArraySize, in checkArraySize() argument
2356 !ArraySize->getType()->isIntegralOrUnscopedEnumerationType())) { in checkArraySize()
2366 ArraySize, S.Context.getSizeType(), SizeVal, Sema::CCEK_ArrayBound); in checkArraySize()
2398 S.VerifyIntegerConstantExpression(ArraySize, &SizeVal, Diagnoser); in checkArraySize()
2437 Expr *ArraySize, unsigned Quals, in BuildArrayType() argument
2508 if (ArraySize && ArraySize->hasPlaceholderType()) { in BuildArrayType()
2509 ExprResult Result = CheckPlaceholderExpr(ArraySize); in BuildArrayType()
2511 ArraySize = Result.get(); in BuildArrayType()
2515 if (ArraySize && !ArraySize->isPRValue()) { in BuildArrayType()
2516 ExprResult Result = DefaultLvalueConversion(ArraySize); in BuildArrayType()
[all …]
/openbsd-src/gnu/llvm/llvm/lib/Support/
H A DSmallPtrSet.cpp67 unsigned ArraySize = CurArraySize; in FindBucketFor() local
88 Bucket = (Bucket + ProbeAmt++) & (ArraySize-1); in FindBucketFor()
/openbsd-src/gnu/llvm/llvm/lib/IR/
H A DInstructions.cpp773 Value *ArraySize, in createMalloc() argument
783 if (!ArraySize) in createMalloc()
784 ArraySize = ConstantInt::get(IntPtrTy, 1); in createMalloc()
785 else if (ArraySize->getType() != IntPtrTy) { in createMalloc()
787 ArraySize = CastInst::CreateIntegerCast(ArraySize, IntPtrTy, false, in createMalloc()
790 ArraySize = CastInst::CreateIntegerCast(ArraySize, IntPtrTy, false, in createMalloc()
794 if (!IsConstantOne(ArraySize)) { in createMalloc()
796 AllocSize = ArraySize; // Operand * 1 = Operand in createMalloc()
797 } else if (Constant *CO = dyn_cast<Constant>(ArraySize)) { in createMalloc()
805 AllocSize = BinaryOperator::CreateMul(ArraySize, AllocSize, in createMalloc()
[all …]
/openbsd-src/sys/stand/efi/include/
H A Defifs.h100 UINT32 ArraySize; member
/openbsd-src/gnu/llvm/llvm/lib/CodeGen/
H A DSafeStack.cpp664 Value *ArraySize = AI->getArraySize(); in moveDynamicAllocasToUnsafeStack() local
665 if (ArraySize->getType() != IntPtrTy) in moveDynamicAllocasToUnsafeStack()
666 ArraySize = IRB.CreateIntCast(ArraySize, IntPtrTy, false); in moveDynamicAllocasToUnsafeStack()
670 Value *Size = IRB.CreateMul(ArraySize, ConstantInt::get(IntPtrTy, TySize)); in moveDynamicAllocasToUnsafeStack()
/openbsd-src/gnu/usr.bin/gcc/gcc/testsuite/g++.old-deja/g++.law/
H A Dvisibility13.C16 const int ArraySize = 12; variable
/openbsd-src/gnu/llvm/llvm/lib/Analysis/
H A DMemoryBuiltins.cpp757 Value *ArraySize = I.getArraySize(); in visitAllocaInst() local
758 if (const ConstantInt *C = dyn_cast<ConstantInt>(ArraySize)) { in visitAllocaInst()
1104 Value *ArraySize = Builder.CreateZExtOrTrunc( in visitAllocaInst() local
1106 assert(ArraySize->getType() == Zero->getType() && in visitAllocaInst()
1109 Value *Size = ConstantInt::get(ArraySize->getType(), in visitAllocaInst()
1111 Size = Builder.CreateMul(Size, ArraySize); in visitAllocaInst()
/openbsd-src/gnu/llvm/clang/lib/AST/
H A DExprCXX.cpp186 std::optional<Expr *> ArraySize, in CXXNewExpr() argument
200 CXXNewExprBits.IsArray = ArraySize.has_value(); in CXXNewExpr()
209 if (ArraySize) in CXXNewExpr()
210 getTrailingObjects<Stmt *>()[arraySizeOffset()] = *ArraySize; in CXXNewExpr()
248 std::optional<Expr *> ArraySize, in Create() argument
252 bool IsArray = ArraySize.has_value(); in Create()
263 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.cpp542 unsigned ArraySize = Value.getArraySize(); in Visit() local
544 OS << "Array size=" << ArraySize; in Visit()
557 OS << ArraySize - NumInitializedElements << " x "; in Visit()
/openbsd-src/gnu/llvm/llvm/lib/Transforms/AggressiveInstCombine/
H A DAggressiveInstCombine.cpp540 uint64_t ArraySize = GEP->getSourceElementType()->getArrayNumElements(); in tryToRecognizeTableBasedCttz() local
541 if (ArraySize != 32 && ArraySize != 64) in tryToRecognizeTableBasedCttz()
/openbsd-src/gnu/llvm/clang/lib/CodeGen/
H A DCGExpr.cpp72 llvm::Value *ArraySize) { in CreateTempAllocaWithoutCast() argument
73 auto Alloca = CreateTempAlloca(Ty, Name, ArraySize); in CreateTempAllocaWithoutCast()
82 llvm::Value *ArraySize, in CreateTempAlloca() argument
84 auto Alloca = CreateTempAllocaWithoutCast(Ty, Align, Name, ArraySize); in CreateTempAlloca()
98 if (!ArraySize) in CreateTempAlloca()
113 llvm::Value *ArraySize) { in CreateTempAlloca() argument
114 if (ArraySize) in CreateTempAlloca()
115 return Builder.CreateAlloca(Ty, ArraySize, Name); in CreateTempAlloca()
117 ArraySize, Name, AllocaInsertPt); in CreateTempAlloca()
680 llvm::Value *ArraySize) { in EmitTypeCheck() argument
[all …]
H A DCGOpenMPRuntimeGPU.cpp176 llvm::APInt ArraySize(32, BufSize); in buildRecordForGlobalizedVars() local
177 Type = C.getConstantArrayType(Type, ArraySize, nullptr, ArrayType::Normal, in buildRecordForGlobalizedVars()
2896 llvm::APInt ArraySize(/*unsigned int numBits=*/32, Size); in emitReduction() local
2898 C.getConstantArrayType(C.VoidPtrTy, ArraySize, nullptr, ArrayType::Normal, in emitReduction()
H A DCodeGenFunction.h2566 llvm::Value *ArraySize = nullptr);
2569 llvm::Value *ArraySize = nullptr,
2573 llvm::Value *ArraySize = nullptr);
3004 llvm::Value *ArraySize = nullptr);
/openbsd-src/gnu/llvm/llvm/include/llvm/IR/
H A DInstructions.h75 explicit AllocaInst(Type *Ty, unsigned AddrSpace, Value *ArraySize,
77 AllocaInst(Type *Ty, unsigned AddrSpace, Value *ArraySize,
85 AllocaInst(Type *Ty, unsigned AddrSpace, Value *ArraySize, Align Align,
87 AllocaInst(Type *Ty, unsigned AddrSpace, Value *ArraySize, Align Align,
1631 Value *ArraySize = nullptr,
1636 Value *ArraySize = nullptr,
1641 Value *AllocSize, Value *ArraySize = nullptr,
1646 Value *AllocSize, Value *ArraySize = nullptr,
H A DIRBuilder.h1689 Value *ArraySize = nullptr, const Twine &Name = "") {
1692 return Insert(new AllocaInst(Ty, AddrSpace, ArraySize, AllocaAlign), Name);
1695 AllocaInst *CreateAlloca(Type *Ty, Value *ArraySize = nullptr,
1700 return Insert(new AllocaInst(Ty, AddrSpace, ArraySize, AllocaAlign), Name);
/openbsd-src/gnu/llvm/llvm/include/llvm/Frontend/OpenMP/
H A DOMPKinds.def66 #define OMP_ARRAY_TYPE(VarName, ElemTy, ArraySize)
69 #define __OMP_ARRAY_TYPE(VarName, ElemTy, ArraySize) \
70 OMP_ARRAY_TYPE(VarName, ElemTy, ArraySize)
H A DOMPIRBuilder.h1553 #define OMP_ARRAY_TYPE(VarName, ElemTy, ArraySize) \ argument
/openbsd-src/gnu/llvm/llvm/lib/CodeGen/AsmPrinter/
H A DCodeViewDebug.cpp1742 uint64_t ArraySize = in lowerTypeArray() local
1746 ArrayRecord AR(ElementTypeIndex, IndexType, ArraySize, Name); in lowerTypeArray()
1760 uint64_t ArraySize = Ty->getSizeInBits() >> 3; in lowerTypeString() local
1768 ArrayRecord AR(CharType, IndexType, ArraySize, Name); in lowerTypeString()
/openbsd-src/gnu/llvm/llvm/lib/Transforms/Scalar/
H A DLoopIdiomRecognize.cpp471 unsigned ArraySize = 16 / Size; in getMemSetPatternValue() local
472 ArrayType *AT = ArrayType::get(V->getType(), ArraySize); in getMemSetPatternValue()
473 return ConstantArray::get(AT, std::vector<Constant *>(ArraySize, C)); in getMemSetPatternValue()

12