| /minix3/external/bsd/llvm/dist/llvm/lib/Support/ |
| H A D | SmallPtrSet.cpp | 28 CurArraySize = NumElements > 16 ? 1 << (Log2_32_Ceil(NumElements) + 1) : 32; in shrink_and_clear() 29 NumElements = NumTombstones = 0; in shrink_and_clear() 41 for (const void **APtr = SmallArray, **E = SmallArray+NumElements; in insert_imp() 47 if (NumElements < CurArraySize) { in insert_imp() 48 SmallArray[NumElements++] = Ptr; in insert_imp() 49 return std::make_pair(SmallArray + (NumElements - 1), true); in insert_imp() 54 if (NumElements*4 >= CurArraySize*3) { in insert_imp() 57 } else if (CurArraySize-(NumElements+NumTombstones) < CurArraySize/8) { in insert_imp() 72 ++NumElements; // Track density. in insert_imp() 79 for (const void **APtr = SmallArray, **E = SmallArray+NumElements; in erase_imp() [all …]
|
| /minix3/external/bsd/llvm/dist/llvm/include/llvm/CodeGen/ |
| H A D | MachineValueType.h | 516 static MVT getVectorVT(MVT VT, unsigned NumElements) { in getVectorVT() argument 521 if (NumElements == 2) return MVT::v2i1; in getVectorVT() 522 if (NumElements == 4) return MVT::v4i1; in getVectorVT() 523 if (NumElements == 8) return MVT::v8i1; in getVectorVT() 524 if (NumElements == 16) return MVT::v16i1; in getVectorVT() 525 if (NumElements == 32) return MVT::v32i1; in getVectorVT() 526 if (NumElements == 64) return MVT::v64i1; in getVectorVT() 529 if (NumElements == 1) return MVT::v1i8; in getVectorVT() 530 if (NumElements == 2) return MVT::v2i8; in getVectorVT() 531 if (NumElements == 4) return MVT::v4i8; in getVectorVT() [all …]
|
| H A D | ValueTypes.h | 71 static EVT getVectorVT(LLVMContext &Context, EVT VT, unsigned NumElements) { in getVectorVT() 72 MVT M = MVT::getVectorVT(VT.V, NumElements); in getVectorVT() 75 return getExtendedVectorVT(Context, VT, NumElements); in getVectorVT() 349 unsigned NumElements);
|
| /minix3/external/bsd/llvm/dist/llvm/lib/Target/X86/Utils/ |
| H A D | X86ShuffleDecode.cpp | 275 int NumElements = MaskTy->getVectorNumElements(); in DecodePSHUFBMask() local 276 ShuffleMask.reserve(NumElements); in DecodePSHUFBMask() 278 for (int i = 0; i < NumElements; ++i) { in DecodePSHUFBMask() 328 int NumElements = VT.getVectorNumElements(); in DecodeBLENDMask() local 329 for (int i = 0; i < NumElements; ++i) { in DecodeBLENDMask() 333 int Bit = NumElements > 8 ? i % (128 / ElementBits) : i; in DecodeBLENDMask() 336 ShuffleMask.push_back(((Imm >> Bit) & 1) ? NumElements + i : i); in DecodeBLENDMask() 354 int NumElements = MaskTy->getVectorNumElements(); in DecodeVPERMILPMask() local 355 assert((NumElements == 2 || NumElements == 4 || NumElements == 8) && in DecodeVPERMILPMask() 357 ShuffleMask.reserve(NumElements); in DecodeVPERMILPMask() [all …]
|
| /minix3/external/bsd/llvm/dist/clang/test/CXX/temp/temp.spec/temp.expl.spec/ |
| H A D | p9.cpp | 10 const unsigned NumElements = 17; variable 14 int array[NumElements];
|
| /minix3/external/bsd/llvm/dist/clang/lib/StaticAnalyzer/Checkers/ |
| H A D | ArrayBoundChecker.cpp | 58 DefinedOrUnknownSVal NumElements in checkLocation() local 62 ProgramStateRef StInBound = state->assumeInBound(Idx, NumElements, true); in checkLocation() 63 ProgramStateRef StOutBound = state->assumeInBound(Idx, NumElements, false); in checkLocation()
|
| H A D | ReturnPointerRangeChecker.cpp | 58 DefinedOrUnknownSVal NumElements in checkPreStmt() local 62 ProgramStateRef StInBound = state->assumeInBound(Idx, NumElements, true); in checkPreStmt() 63 ProgramStateRef StOutBound = state->assumeInBound(Idx, NumElements, false); in checkPreStmt()
|
| /minix3/external/bsd/llvm/dist/llvm/lib/IR/ |
| H A D | Type.cpp | 105 unsigned NumElements = ATy->getNumElements(); in isEmptyTy() local 106 return NumElements == 0 || ATy->getElementType()->isEmptyTy(); in isEmptyTy() 111 unsigned NumElements = STy->getNumElements(); in isEmptyTy() local 112 for (unsigned i = 0; i < NumElements; ++i) in isEmptyTy() 429 unsigned NumElements = Elements.size(); in setBody() local 430 Type **Elts = getContext().pImpl->TypeAllocator.Allocate<Type*>(NumElements); in setBody() 431 memcpy(Elts, Elements.data(), sizeof(Elements[0]) * NumElements); in setBody() 434 NumContainedTys = NumElements; in setBody() 678 NumElements = NumEl; in ArrayType() 681 ArrayType *ArrayType::get(Type *elementType, uint64_t NumElements) { in get() argument [all …]
|
| H A D | DataLayout.cpp | 49 NumElements = ST->getNumElements(); in StructLayout() 52 for (unsigned i = 0, e = NumElements; i != e; ++i) { in StructLayout() 81 std::upper_bound(&MemberOffsets[0], &MemberOffsets[NumElements], Offset); in getElementContainingOffset() 86 (SI+1 == &MemberOffsets[NumElements] || *(SI+1) > Offset) && in getElementContainingOffset()
|
| H A D | ValueTypes.cpp | 36 unsigned NumElements) { in getExtendedVectorVT() argument 38 ResultVT.LLVMTy = VectorType::get(VT.getTypeForEVT(Context), NumElements); in getExtendedVectorVT()
|
| H A D | ConstantFold.cpp | 1977 uint64_t NumElements = 0; in isIndexInRangeOfSequentialType() local 1980 NumElements = ATy->getNumElements(); in isIndexInRangeOfSequentialType() 1982 NumElements = VTy->getNumElements(); in isIndexInRangeOfSequentialType() 1984 assert((isa<ArrayType>(STy) || NumElements > 0) && in isIndexInRangeOfSequentialType() 1994 if (IndexVal < 0 || (NumElements > 0 && (uint64_t)IndexVal >= NumElements)) in isIndexInRangeOfSequentialType() 2145 uint64_t NumElements = 0; in ConstantFoldGetElementPtrImpl() local 2147 NumElements = ATy->getNumElements(); in ConstantFoldGetElementPtrImpl() 2149 NumElements = cast<VectorType>(Ty)->getNumElements(); in ConstantFoldGetElementPtrImpl() 2151 ConstantInt *Factor = ConstantInt::get(CI->getType(), NumElements); in ConstantFoldGetElementPtrImpl()
|
| /minix3/external/bsd/llvm/dist/llvm/include/llvm/IR/ |
| H A D | DerivedTypes.h | 336 uint64_t NumElements; variable 345 static ArrayType *get(Type *ElementType, uint64_t NumElements); 351 uint64_t getNumElements() const { return NumElements; } in getNumElements() 362 unsigned NumElements; variable 371 static VectorType *get(Type *ElementType, unsigned NumElements); 431 unsigned getNumElements() const { return NumElements; } in getNumElements() 436 return NumElements * getElementType()->getPrimitiveSizeInBits(); in getBitWidth()
|
| H A D | DataLayout.h | 470 unsigned NumElements; variable 484 assert(Idx < NumElements && "Invalid element idx!"); in getElementOffset()
|
| /minix3/external/bsd/llvm/dist/llvm/include/llvm/ADT/ |
| H A D | SmallPtrSet.h | 61 unsigned NumElements; variable 79 size_type size() const { return NumElements; } in size() 84 if (!isSmall() && NumElements*4 < CurArraySize && CurArraySize > 32) in clear() 89 NumElements = 0; in clear() 116 *const *E = SmallArray+NumElements; APtr != E; ++APtr) in count_imp()
|
| /minix3/external/bsd/llvm/dist/clang/include/clang/AST/ |
| H A D | ExprObjC.h | 143 unsigned NumElements; variable 151 explicit ObjCArrayLiteral(EmptyShell Empty, unsigned NumElements) in ObjCArrayLiteral() argument 152 : Expr(ObjCArrayLiteralClass, Empty), NumElements(NumElements) {} in ObjCArrayLiteral() 161 unsigned NumElements); 180 unsigned getNumElements() const { return NumElements; } in getNumElements() 184 assert((Index < NumElements) && "Arg access out of range!"); in getElement() 188 assert((Index < NumElements) && "Arg access out of range!"); in getElement() 199 (Stmt **)getElements() + NumElements); in children() 255 unsigned NumElements : 31; 274 explicit ObjCDictionaryLiteral(EmptyShell Empty, unsigned NumElements, [all …]
|
| /minix3/external/bsd/llvm/dist/clang/lib/CodeGen/ |
| H A D | CGExprConstant.cpp | 747 unsigned NumElements = AType->getNumElements(); in EmitArrayInitialization() local 751 unsigned NumInitableElts = std::min(NumInitElements, NumElements); in EmitArrayInitialization() 769 Elts.reserve(NumInitableElts + NumElements); in EmitArrayInitialization() 782 Elts.resize(NumElements, fillC); in EmitArrayInitialization() 787 Types.reserve(NumInitableElts + NumElements); in EmitArrayInitialization() 1212 unsigned NumElements = Value.getArraySize(); in EmitConstantValue() local 1228 llvm::ArrayType::get(CommonElementType, NumElements); in EmitConstantValue() 1233 Elts.reserve(NumElements); in EmitConstantValue() 1234 for (unsigned I = 0; I < NumElements; ++I) { in EmitConstantValue() 1251 Types.reserve(NumElements); in EmitConstantValue() [all …]
|
| H A D | CGExprCXX.cpp | 785 llvm::Value *NumElements, in EmitNewArrayInitializer() argument 893 llvm::ConstantInt *ConstNum = dyn_cast<llvm::ConstantInt>(NumElements); in EmitNewArrayInitializer() 925 NumElements = Builder.CreateSub( in EmitNewArrayInitializer() 926 NumElements, in EmitNewArrayInitializer() 927 llvm::ConstantInt::get(NumElements->getType(), InitListElements)); in EmitNewArrayInitializer() 928 EmitCXXAggrConstructorCall(Ctor, NumElements, CurPtr, CCE, in EmitNewArrayInitializer() 962 Builder.CreateInBoundsGEP(BeginPtr, NumElements, "array.end"); in EmitNewArrayInitializer() 1017 llvm::Value *NumElements, in EmitNewInitializer() argument 1021 CGF.EmitNewArrayInitializer(E, ElementType, NewPtr, NumElements, in EmitNewInitializer() 1490 llvm::Value *NumElements; member [all …]
|
| H A D | CGCXXABI.h | 422 llvm::Value *NumElements, 441 QualType ElementType, llvm::Value *&NumElements,
|
| /minix3/external/bsd/llvm/dist/llvm/lib/Transforms/Scalar/ |
| H A D | SROA.cpp | 1945 uint64_t NumElements = EndIndex - BeginIndex; in isVectorPromotionViableForSlice() local 1946 Type *SliceTy = (NumElements == 1) in isVectorPromotionViableForSlice() 1948 : VectorType::get(Ty->getElementType(), NumElements); in isVectorPromotionViableForSlice() 1951 Type::getIntNTy(Ty->getContext(), NumElements * ElementSize * 8); in isVectorPromotionViableForSlice() 2283 unsigned NumElements = EndIndex - BeginIndex; in extractVector() local 2284 assert(NumElements <= VecTy->getNumElements() && "Too many elements!"); in extractVector() 2286 if (NumElements == VecTy->getNumElements()) in extractVector() 2289 if (NumElements == 1) { in extractVector() 2297 Mask.reserve(NumElements); in extractVector() 2637 unsigned NumElements = EndIndex - BeginIndex; in rewriteVectorizedStoreInst() local [all …]
|
| /minix3/external/bsd/llvm/dist/llvm/lib/CodeGen/SelectionDAG/ |
| H A D | LegalizeTypesGeneric.cpp | 315 void DAGTypeLegalizer::IntegerToVector(SDValue Op, unsigned NumElements, in IntegerToVector() argument 322 if (NumElements > 1) { in IntegerToVector() 323 NumElements >>= 1; in IntegerToVector() 327 IntegerToVector(Parts[0], NumElements, Ops, EltVT); in IntegerToVector() 328 IntegerToVector(Parts[1], NumElements, Ops, EltVT); in IntegerToVector()
|
| H A D | LegalizeVectorOps.cpp | 778 int NumElements = VT.getVectorNumElements(); in ExpandANY_EXTEND_VECTOR_INREG() local 788 int ExtLaneScale = NumSrcElements / NumElements; in ExpandANY_EXTEND_VECTOR_INREG() 790 for (int i = 0; i < NumElements; ++i) in ExpandANY_EXTEND_VECTOR_INREG() 825 int NumElements = VT.getVectorNumElements(); in ExpandZERO_EXTEND_VECTOR_INREG() local 843 int ExtLaneScale = NumSrcElements / NumElements; in ExpandZERO_EXTEND_VECTOR_INREG() 845 for (int i = 0; i < NumElements; ++i) in ExpandZERO_EXTEND_VECTOR_INREG()
|
| /minix3/external/bsd/llvm/dist/llvm/lib/Transforms/IPO/ |
| H A D | GlobalOpt.cpp | 413 uint64_t NumElements = AT->getNumElements(); in IsUserOfGlobalSafeForSRA() local 419 if (Idx->getZExtValue() >= NumElements) in IsUserOfGlobalSafeForSRA() 432 uint64_t NumElements; in IsUserOfGlobalSafeForSRA() local 434 NumElements = SubArrayTy->getNumElements(); in IsUserOfGlobalSafeForSRA() 436 NumElements = SubVectorTy->getNumElements(); in IsUserOfGlobalSafeForSRA() 444 if (!IdxVal || IdxVal->getZExtValue() >= NumElements) in IsUserOfGlobalSafeForSRA() 513 unsigned NumElements = 0; in SRAGlobal() local 515 NumElements = ATy->getNumElements(); in SRAGlobal() 517 NumElements = cast<VectorType>(STy)->getNumElements(); in SRAGlobal() 519 if (NumElements > 16 && GV->hasNUsesOrMore(16)) in SRAGlobal() [all …]
|
| /minix3/external/bsd/llvm/dist/clang/lib/AST/ |
| H A D | Type.cpp | 78 const llvm::APInt &NumElements) { in getNumAddressingBits() argument 88 return NumElements.getActiveBits() + llvm::Log2_64(ElementSize); in getNumAddressingBits() 93 if ((ElementSize >> 32) == 0 && NumElements.getBitWidth() <= 64 && in getNumAddressingBits() 94 (NumElements.getZExtValue() >> 32) == 0) { in getNumAddressingBits() 95 uint64_t TotalSize = NumElements.getZExtValue() * ElementSize; in getNumAddressingBits() 100 llvm::APSInt SizeExtended(NumElements, true); in getNumAddressingBits() 180 VectorTypeBits.NumElements = nElements; in VectorType() 192 VectorTypeBits.NumElements = nElements; in VectorType()
|
| /minix3/external/bsd/llvm/dist/llvm/lib/Target/AArch64/AsmParser/ |
| H A D | AArch64AsmParser.cpp | 181 unsigned NumElements; member 905 template <unsigned NumRegs, unsigned NumElements, char ElementKind> 913 return VectorList.NumElements == NumElements; in isTypedVectorList() 1579 CreateVectorList(unsigned RegNum, unsigned Count, unsigned NumElements, in CreateVectorList() argument 1584 Op->VectorList.NumElements = NumElements; in CreateVectorList() 1828 static void parseValidVectorKind(StringRef Name, unsigned &NumElements, in parseValidVectorKind() argument 1833 NumElements = 0; in parseValidVectorKind() 1841 NumElements = 10 * NumElements + (Name.front() - '0'); in parseValidVectorKind() 2887 unsigned NumElements = 0; in parseVectorList() local 2890 parseValidVectorKind(Kind, NumElements, ElementKind); in parseVectorList() [all …]
|
| /minix3/external/bsd/llvm/dist/llvm/lib/Target/R600/ |
| H A D | SIISelLowering.cpp | 454 unsigned NumElements = ParamType->getVectorNumElements(); in LowerFormalArguments() local 456 for (unsigned j = 0; j != NumElements; ++j) { in LowerFormalArguments() 572 unsigned NumElements = ParamType->getVectorNumElements(); in LowerFormalArguments() local 576 for (unsigned j = 1; j != NumElements; ++j) { in LowerFormalArguments() 583 NumElements = Arg.VT.getVectorNumElements() - NumElements; in LowerFormalArguments() 584 for (unsigned j = 0; j != NumElements; ++j) in LowerFormalArguments() 982 unsigned NumElements = Op.getValueType().getVectorNumElements(); in LowerLOAD() local 983 assert(NumElements != 2 && "v2 loads are supported for all address spaces."); in LowerLOAD() 989 if (NumElements <= 4) in LowerLOAD()
|