Searched defs:NumElements (Results 1 - 25 of 43) sorted by relevance

12

/external/clang/test/CXX/temp/temp.spec/temp.expl.spec/
H A Dp9.cpp9 const unsigned NumElements = 17; member in namespace:N
13 int array[NumElements];
/external/llvm/runtime/libprofile/
H A DEdgeProfiling.c20 static unsigned NumElements; variable
31 write_profiling_data(EdgeInfo, ArrayStart, NumElements);
42 NumElements = numElements;
H A DOptimalEdgeProfiling.c20 static unsigned NumElements; variable
31 write_profiling_data(OptEdgeInfo, ArrayStart, NumElements);
42 NumElements = numElements;
H A DCommonProfiling.c139 unsigned NumElements) {
146 write(outFile, &NumElements, sizeof(unsigned)) < 0 ||
147 write(outFile, Start, NumElements*sizeof(unsigned)) < 0 ) {
138 write_profiling_data(enum ProfilingType PT, unsigned *Start, unsigned NumElements) argument
/external/clang/lib/StaticAnalyzer/Checkers/
H A DArrayBoundChecker.cpp57 DefinedOrUnknownSVal NumElements local
61 ProgramStateRef StInBound = state->assumeInBound(Idx, NumElements, true);
62 ProgramStateRef StOutBound = state->assumeInBound(Idx, NumElements, false);
/external/llvm/lib/VMCore/
H A DValueTypes.cpp36 unsigned NumElements) {
38 ResultVT.LLVMTy = VectorType::get(VT.getTypeForEVT(Context), NumElements);
35 getExtendedVectorVT(LLVMContext &Context, EVT VT, unsigned NumElements) argument
H A DType.cpp118 unsigned NumElements = ATy->getNumElements(); local
119 return NumElements == 0 || ATy->getElementType()->isEmptyTy();
124 unsigned NumElements = STy->getNumElements(); local
125 for (unsigned i = 0; i < NumElements; ++i)
456 unsigned NumElements = Elements.size(); local
457 Type **Elts = getContext().pImpl->TypeAllocator.Allocate<Type*>(NumElements);
458 memcpy(Elts, Elements.data(), sizeof(Elements[0]) * NumElements);
461 NumContainedTys = NumElements;
700 NumElements = NumEl;
704 ArrayType *ArrayType::get(Type *elementType, uint64_t NumElements) { argument
731 get(Type *elementType, unsigned NumElements) argument
[all...]
/external/llvm/utils/TableGen/
H A DTGValueTypes.cpp46 unsigned NumElements; member in class:ExtendedVectorType
49 : ElementType(elty), NumElements(num) {}
57 return NumElements;
/external/llvm/lib/Transforms/Instrumentation/
H A DProfilingUtils.cpp52 unsigned NumElements = 0; local
55 NumElements =
62 Args[3] = ConstantInt::get(Type::getInt32Ty(Context), NumElements);
/external/llvm/include/llvm/ADT/
H A DSmallPtrSet.h61 unsigned NumElements; member in class:llvm::SmallPtrSetImpl
79 unsigned size() const { return NumElements; }
84 if (!isSmall() && NumElements*4 < CurArraySize && CurArraySize > 32)
89 NumElements = 0;
116 *const *E = SmallArray+NumElements; APtr != E; ++APtr)
/external/llvm/include/llvm/
H A DDerivedTypes.h337 uint64_t NumElements; member in class:llvm::ArrayType
346 static ArrayType *get(Type *ElementType, uint64_t NumElements);
352 uint64_t getNumElements() const { return NumElements; }
364 unsigned NumElements; member in class:llvm::VectorType
373 static VectorType *get(Type *ElementType, unsigned NumElements);
413 unsigned getNumElements() const { return NumElements; }
418 return NumElements * getElementType()->getPrimitiveSizeInBits();
/external/llvm/include/llvm/Target/
H A DTargetData.h326 unsigned NumElements; member in class:llvm::StructLayout
348 assert(Idx < NumElements && "Invalid element idx!");
/external/llvm/lib/CodeGen/SelectionDAG/
H A DLegalizeTypesGeneric.cpp461 unsigned NumElements = Cond.getValueType().getVectorNumElements(); local
462 EVT VCondTy = EVT::getVectorVT(*DAG.getContext(), MVT::i1, NumElements / 2);
466 DAG.getIntPtrConstant(NumElements / 2));
H A DLegalizeTypes.cpp964 unsigned NumElements = InVT.getVectorNumElements(); local
965 assert(!(NumElements & 1) && "Splitting vector, but not in half!");
967 InVT.getVectorElementType(), NumElements/2);
/external/clang/lib/CodeGen/
H A DCGCXXABI.cpp160 llvm::Value *NumElements,
158 InitializeArrayCookie(CodeGenFunction &CGF, llvm::Value *NewPtr, llvm::Value *NumElements, const CXXNewExpr *expr, QualType ElementType) argument
H A DCGExprCXX.cpp569 // We multiply the size of all dimensions for NumElements.
570 // e.g for 'int[2][3]', ElemType is 'int' and NumElements is 6.
954 llvm::Value *NumElements,
974 CGF.EmitCXXAggrConstructorCall(Ctor, NumElements, NewPtr,
985 CGF.EmitNewArrayInitializer(E, ElementType, NewPtr, NumElements);
1450 llvm::Value *NumElements; member in struct:__anon44::CallArrayDelete
1456 llvm::Value *NumElements,
1459 : Ptr(Ptr), OperatorDelete(OperatorDelete), NumElements(NumElements),
1487 Size = CGF.Builder.CreateMul(Size, NumElements);
951 EmitNewInitializer(CodeGenFunction &CGF, const CXXNewExpr *E, QualType ElementType, llvm::Value *NewPtr, llvm::Value *NumElements, llvm::Value *AllocSizeWithoutCookie) argument
1454 CallArrayDelete(llvm::Value *Ptr, const FunctionDecl *OperatorDelete, llvm::Value *NumElements, QualType ElementType, CharUnits CookieSize) argument
[all...]
H A DCGExprConstant.cpp771 unsigned NumElements = AType->getNumElements(); local
775 unsigned NumInitableElts = std::min(NumInitElements, NumElements);
779 Elts.reserve(NumInitableElts + NumElements);
801 Elts.resize(NumElements, fillC);
806 Types.reserve(NumInitableElts + NumElements);
1185 unsigned NumElements = Value.getArraySize(); local
1189 Elts.reserve(NumElements);
1199 for (unsigned I = 0; I < NumElements; ++I) {
1214 Types.reserve(NumElements);
1222 llvm::ArrayType::get(CommonElementType, NumElements);
1475 unsigned NumElements = CAT->getSize().getZExtValue(); local
[all...]
H A DItaniumCXXABI.cpp116 llvm::Value *NumElements,
156 llvm::Value *NumElements,
808 llvm::Value *NumElements,
835 CGF.Builder.CreateStore(NumElements, NumElementsPtr);
874 llvm::Value *NumElements,
899 CGF.Builder.CreateStore(NumElements, CookiePtr);
806 InitializeArrayCookie(CodeGenFunction &CGF, llvm::Value *NewPtr, llvm::Value *NumElements, const CXXNewExpr *expr, QualType ElementType) argument
872 InitializeArrayCookie(CodeGenFunction &CGF, llvm::Value *NewPtr, llvm::Value *NumElements, const CXXNewExpr *expr, QualType ElementType) argument
/external/llvm/include/llvm/CodeGen/
H A DValueTypes.h392 static MVT getVectorVT(MVT VT, unsigned NumElements) { argument
397 if (NumElements == 2) return MVT::v2i8;
398 if (NumElements == 4) return MVT::v4i8;
399 if (NumElements == 8) return MVT::v8i8;
400 if (NumElements == 16) return MVT::v16i8;
401 if (NumElements == 32) return MVT::v32i8;
404 if (NumElements == 2) return MVT::v2i16;
405 if (NumElements == 4) return MVT::v4i16;
406 if (NumElements == 8) return MVT::v8i16;
407 if (NumElements
483 getVectorVT(LLVMContext &Context, EVT VT, unsigned NumElements) argument
[all...]
/external/llvm/lib/Linker/
H A DLinkModules.cpp884 unsigned NumElements = cast<ArrayType>(C->getType())->getNumElements(); local
886 for (unsigned i = 0; i != NumElements; ++i)
/external/clang/include/clang/AST/
H A DExprObjC.h135 unsigned NumElements; member in class:clang::ObjCArrayLiteral
143 explicit ObjCArrayLiteral(EmptyShell Empty, unsigned NumElements) argument
144 : Expr(ObjCArrayLiteralClass, Empty), NumElements(NumElements) {}
152 static ObjCArrayLiteral *CreateEmpty(ASTContext &C, unsigned NumElements);
170 unsigned getNumElements() const { return NumElements; }
174 assert((Index < NumElements) && "Arg access out of range!");
178 assert((Index < NumElements) && "Arg access out of range!");
189 (Stmt **)getElements() + NumElements);
239 unsigned NumElements
258 ObjCDictionaryLiteral(EmptyShell Empty, unsigned NumElements, bool HasPackExpansions) argument
[all...]
/external/clang/lib/AST/
H A DRecordLayoutBuilder.cpp417 uint64_t NumElements = Context.getConstantArrayElementCount(AT); local
419 for (uint64_t I = 0; I != NumElements; ++I) {
519 uint64_t NumElements = Context.getConstantArrayElementCount(AT); local
522 for (uint64_t I = 0; I != NumElements; ++I) {
H A DType.cpp77 const llvm::APInt &NumElements) {
78 llvm::APSInt SizeExtended(NumElements, true);
159 VectorTypeBits.NumElements = nElements;
171 VectorTypeBits.NumElements = nElements;
75 getNumAddressingBits(ASTContext &Context, QualType ElementType, const llvm::APInt &NumElements) argument
/external/llvm/lib/Transforms/InstCombine/
H A DInstCombineCasts.cpp111 Value *NumElements = // See if the array size is a decomposable linear expr. local
122 Amt = NumElements;
126 Amt = AllocaBuilder.CreateMul(Amt, NumElements);
/external/clang/lib/Serialization/
H A DASTReaderStmt.cpp838 unsigned NumElements = Record[Idx++]; local
839 assert(NumElements == E->getNumElements() && "Wrong number of elements");
841 for (unsigned I = 0, N = NumElements; I != N; ++I)
849 unsigned NumElements = Record[Idx++]; local
850 assert(NumElements == E->getNumElements() && "Wrong number of elements");
855 for (unsigned I = 0; I != NumElements; ++I) {

Completed in 391 milliseconds

12