| /llvm-project-15.0.7/llvm/include/llvm/Support/ |
| H A D | MachineValueType.h | 1238 if (NumElements == 64) return MVT::v64i4; in getVectorVT() 1241 if (NumElements == 1) return MVT::v1i8; in getVectorVT() 1242 if (NumElements == 2) return MVT::v2i8; in getVectorVT() 1243 if (NumElements == 4) return MVT::v4i8; in getVectorVT() 1244 if (NumElements == 8) return MVT::v8i8; in getVectorVT() 1285 if (NumElements == 1) return MVT::v1i64; in getVectorVT() 1286 if (NumElements == 2) return MVT::v2i64; in getVectorVT() 1287 if (NumElements == 3) return MVT::v3i64; in getVectorVT() 1288 if (NumElements == 4) return MVT::v4i64; in getVectorVT() 1289 if (NumElements == 8) return MVT::v8i64; in getVectorVT() [all …]
|
| H A D | BinaryStreamReader.h | 180 Error readArray(ArrayRef<T> &Array, uint32_t NumElements) { in readArray() argument 182 if (NumElements == 0) { in readArray() 187 if (NumElements > UINT32_MAX / sizeof(T)) in readArray() 191 if (auto EC = readBytes(Bytes, NumElements * sizeof(T))) in readArray() 197 Array = ArrayRef<T>(reinterpret_cast<const T *>(Bytes.data()), NumElements); in readArray()
|
| H A D | LowLevelTypeImpl.h | 74 static LLT fixed_vector(unsigned NumElements, unsigned ScalarSizeInBits) { in fixed_vector() argument 75 return vector(ElementCount::getFixed(NumElements), ScalarSizeInBits); in fixed_vector() 80 static LLT fixed_vector(unsigned NumElements, LLT ScalarTy) { in fixed_vector() argument 81 return vector(ElementCount::getFixed(NumElements), ScalarTy); in fixed_vector()
|
| /llvm-project-15.0.7/cross-project-tests/debuginfo-tests/dexter-tests/ |
| H A D | optnone-vectors-and-functions.cpp | 20 static const unsigned NumElements = 4; member 59 for (unsigned i = 0; i != TypeTraits<T>::NumElements; ++i) { in test2() 92 for (unsigned i=0; i != TypeTraits<T>::NumElements; ++i) in test3() 109 for (unsigned i=0; i != TypeTraits<T>::NumElements; ++i) in test4()
|
| /llvm-project-15.0.7/clang/lib/AST/ |
| H A D | ExprObjC.cpp | 31 NumElements(Elements.size()), Range(SR), ArrayWithObjectsMethod(Method) { in ObjCArrayLiteral() 48 unsigned NumElements) { in CreateEmpty() argument 49 void *Mem = C.Allocate(totalSizeToAlloc<Expr *>(NumElements)); in CreateEmpty() 50 return new (Mem) ObjCArrayLiteral(EmptyShell(), NumElements); in CreateEmpty() 58 NumElements(VK.size()), HasPackExpansions(HasPackExpansions), Range(SR), in ObjCDictionaryLiteral() 63 for (unsigned I = 0; I < NumElements; I++) { in ObjCDictionaryLiteral() 88 ObjCDictionaryLiteral::CreateEmpty(const ASTContext &C, unsigned NumElements, in CreateEmpty() argument 91 NumElements, HasPackExpansions ? NumElements : 0)); in CreateEmpty() 93 ObjCDictionaryLiteral(EmptyShell(), NumElements, HasPackExpansions); in CreateEmpty()
|
| /llvm-project-15.0.7/clang/test/CXX/temp/temp.spec/temp.expl.spec/ |
| H A D | p9.cpp | 10 const unsigned NumElements = 17; variable 14 int array[NumElements];
|
| /llvm-project-15.0.7/llvm/include/llvm-c/ |
| H A D | DebugInfo.h | 412 LLVMMetadataRef *Elements, unsigned NumElements); 427 unsigned NumElements); 447 LLVMMetadataRef *Elements, unsigned NumElements); 539 size_t NumElements); 621 unsigned NumElements, LLVMMetadataRef ClassTy); 644 LLVMMetadataRef *Elements, unsigned NumElements, unsigned RunTimeLang, 742 unsigned NumElements, unsigned RunTimeLang, LLVMMetadataRef VTableHolder, 1015 LLVMMetadataRef *Elements, unsigned NumElements, 1095 size_t NumElements); 1192 size_t NumElements);
|
| /llvm-project-15.0.7/llvm/lib/CodeGen/ |
| H A D | ReplaceWithVeclib.cpp | 123 ElementCount NumElements = VectorArgTy->getElementCount(); in replaceWithCallToVeclib() local 124 if (NumElements.isScalable()) { in replaceWithCallToVeclib() 129 if (VF.isNonZero() && VF != NumElements) { in replaceWithCallToVeclib() 133 VF = NumElements; in replaceWithCallToVeclib()
|
| /llvm-project-15.0.7/llvm/lib/Target/AArch64/ |
| H A D | AArch64TargetTransformInfo.h | 285 bool isLegalBroadcastLoad(Type *ElementTy, ElementCount NumElements) const { in isLegalBroadcastLoad() argument 287 if (!ST->hasNEON() || NumElements.isScalable()) in isLegalBroadcastLoad() 295 unsigned VectorBits = NumElements.getFixedValue() * ElementBits; in isLegalBroadcastLoad() 311 unsigned NumElements = in isLegalNTStore() local 314 return NumElements > 1 && isPowerOf2_64(NumElements) && EltSize >= 8 && in isLegalNTStore()
|
| /llvm-project-15.0.7/clang/include/clang/AST/ |
| H A D | ExprObjC.h | 193 unsigned NumElements; variable 202 : Expr(ObjCArrayLiteralClass, Empty), NumElements(NumElements) {} in ObjCArrayLiteral() 214 unsigned NumElements); 229 unsigned getNumElements() const { return NumElements; } in getNumElements() 233 assert((Index < NumElements) && "Arg access out of range!"); in getElement() 237 assert((Index < NumElements) && "Arg access out of range!"); in getElement() 312 unsigned NumElements : 31; variable 336 : Expr(ObjCDictionaryLiteralClass, Empty), NumElements(NumElements), in ObjCDictionaryLiteral() 340 return NumElements; in numTrailingObjects() 360 unsigned getNumElements() const { return NumElements; } in getNumElements() [all …]
|
| /llvm-project-15.0.7/clang/lib/CodeGen/ |
| H A D | CGExprCXX.cpp | 1172 NumElements = Builder.CreateSub( in EmitNewArrayInitializer() 1173 NumElements, in EmitNewArrayInitializer() 1208 unsigned NumElements = 0; in EmitNewArrayInitializer() local 1210 NumElements = CXXRD->getNumBases(); in EmitNewArrayInitializer() 1213 ++NumElements; in EmitNewArrayInitializer() 1215 if (ILE->getNumInits() == NumElements) in EmitNewArrayInitializer() 1218 --NumElements; in EmitNewArrayInitializer() 1812 if (NumElements) in EmitDeleteCall() 1992 llvm::Value *NumElements; member 1998 llvm::Value *NumElements, in CallArrayDelete() [all …]
|
| /llvm-project-15.0.7/llvm/include/llvm/IR/ |
| H A D | DataLayout.h | 626 unsigned NumElements : 31; variable 645 NumElements); in getMemberOffsets() 649 return llvm::makeArrayRef(getTrailingObjects<uint64_t>(), NumElements); in getMemberOffsets() 653 assert(Idx < NumElements && "Invalid element idx!"); in getElementOffset() 667 return NumElements; in numTrailingObjects()
|
| H A D | DerivedTypes.h | 361 uint64_t NumElements; variable 369 uint64_t getNumElements() const { return NumElements; } in getNumElements() 373 static ArrayType *get(Type *ElementType, uint64_t NumElements); 427 static VectorType *get(Type *ElementType, unsigned NumElements, in get() argument 430 ElementCount::get(NumElements, Scalable)); in get()
|
| H A D | MatrixBuilder.h | 231 void CreateIndexAssumption(Value *Idx, unsigned NumElements, 234 B.getIntN(Idx->getType()->getScalarSizeInBits(), NumElements);
|
| /llvm-project-15.0.7/llvm/include/llvm/CodeGen/ |
| H A D | ValueTypes.h | 73 static EVT getVectorVT(LLVMContext &Context, EVT VT, unsigned NumElements, 75 MVT M = MVT::getVectorVT(VT.V, NumElements, IsScalable); 78 return getExtendedVectorVT(Context, VT, NumElements, IsScalable); 495 static EVT getExtendedVectorVT(LLVMContext &C, EVT VT, unsigned NumElements,
|
| /llvm-project-15.0.7/llvm/lib/IR/ |
| H A D | DebugInfo.cpp | 1012 LLVMMetadataRef *Elements, unsigned NumElements) { in LLVMDIBuilderCreateImportedModuleFromAlias() argument 1014 (NumElements > 0) in LLVMDIBuilderCreateImportedModuleFromAlias() 1025 unsigned NumElements) { in LLVMDIBuilderCreateImportedModuleFromModule() argument 1027 (NumElements > 0) in LLVMDIBuilderCreateImportedModuleFromModule() 1038 LLVMMetadataRef *Elements, unsigned NumElements) { in LLVMDIBuilderCreateImportedDeclaration() argument 1040 (NumElements > 0) in LLVMDIBuilderCreateImportedDeclaration() 1129 unsigned NumElements, LLVMMetadataRef ClassTy) { in LLVMDIBuilderCreateEnumerationType() argument 1131 NumElements}); in LLVMDIBuilderCreateEnumerationType() 1144 NumElements}); in LLVMDIBuilderCreateUnionType() 1201 NumElements}); in LLVMDIBuilderCreateStructType() [all …]
|
| H A D | Type.cpp | 149 unsigned NumElements = ATy->getNumElements(); in isEmptyTy() local 150 return NumElements == 0 || ATy->getElementType()->isEmptyTy(); in isEmptyTy() 154 unsigned NumElements = STy->getNumElements(); in isEmptyTy() local 155 for (unsigned i = 0; i < NumElements; ++i) in isEmptyTy() 633 NumElements(NumEl) { in ArrayType() 638 ArrayType *ArrayType::get(Type *ElementType, uint64_t NumElements) { in get() argument 643 pImpl->ArrayTypes[std::make_pair(ElementType, NumElements)]; in get() 646 Entry = new (pImpl->Alloc) ArrayType(ElementType, NumElements); in get()
|
| /llvm-project-15.0.7/llvm/lib/Target/NVPTX/MCTargetDesc/ |
| H A D | NVPTXTargetStreamer.cpp | 113 unsigned NumElements = Data.size(); in emitRawBytes() 115 unsigned NumChunks = 1 + ((NumElements - 1) / MaxLen); in emitRawBytes()
|
| /llvm-project-15.0.7/llvm/lib/Transforms/Utils/ |
| H A D | Evaluator.cpp | 149 unsigned NumElements; in makeMutable() local 151 NumElements = VT->getNumElements(); in makeMutable() 153 NumElements = AT->getNumElements(); in makeMutable() 155 NumElements = ST->getNumElements(); in makeMutable() 160 MA->Elements.reserve(NumElements); in makeMutable() 161 for (unsigned I = 0; I < NumElements; ++I) in makeMutable()
|
| /llvm-project-15.0.7/llvm/lib/Target/SPIRV/ |
| H A D | SPIRVGlobalRegistry.h | 107 SPIRVType *assignVectTypeToVReg(SPIRVType *BaseType, unsigned NumElements, 231 unsigned NumElements, 234 unsigned NumElements, MachineInstr &I,
|
| H A D | SPIRVGlobalRegistry.cpp | 37 SPIRVType *BaseType, unsigned NumElements, Register VReg, MachineInstr &I, in assignVectTypeToVReg() argument 40 getOrCreateSPIRVVectorType(BaseType, NumElements, I, TII); in assignVectTypeToVReg() 738 SPIRVType *BaseType, unsigned NumElements, MachineIRBuilder &MIRBuilder) { in getOrCreateSPIRVVectorType() argument 741 NumElements), in getOrCreateSPIRVVectorType() 746 SPIRVType *BaseType, unsigned NumElements, MachineInstr &I, in getOrCreateSPIRVVectorType() argument 749 const_cast<Type *>(getTypeForSPIRVType(BaseType)), NumElements); in getOrCreateSPIRVVectorType() 757 .addImm(NumElements); in getOrCreateSPIRVVectorType()
|
| /llvm-project-15.0.7/llvm/lib/Transforms/InstCombine/ |
| H A D | InstCombineLoadStoreAlloca.cpp | 636 auto NumElements = ST->getNumElements(); in unpackLoadToAggregate() local 637 if (NumElements == 1) { in unpackLoadToAggregate() 658 for (unsigned i = 0; i < NumElements; i++) { in unpackLoadToAggregate() 679 auto NumElements = AT->getNumElements(); in unpackLoadToAggregate() local 680 if (NumElements == 1) { in unpackLoadToAggregate() 691 if (NumElements > IC.MaxArraySizeForCombine) in unpackLoadToAggregate() 704 for (uint64_t i = 0; i < NumElements; i++) { in unpackLoadToAggregate() 1199 auto NumElements = AT->getNumElements(); in unpackStoreToAggregate() local 1200 if (NumElements == 1) { in unpackStoreToAggregate() 1210 if (NumElements > IC.MaxArraySizeForCombine) in unpackStoreToAggregate() [all …]
|
| /llvm-project-15.0.7/llvm/lib/Transforms/Scalar/ |
| H A D | SROA.cpp | 1804 uint64_t NumElements = EndIndex - BeginIndex; in isVectorPromotionViableForSlice() local 1805 Type *SliceTy = (NumElements == 1) in isVectorPromotionViableForSlice() 2176 unsigned NumElements = EndIndex - BeginIndex; in extractVector() local 2179 if (NumElements == VecTy->getNumElements()) in extractVector() 2182 if (NumElements == 1) { in extractVector() 2601 Type *SliceTy = (NumElements == 1) in rewriteVectorizedStoreInst() 2831 if (NumElements > 1) in visitMemSetInst() 3006 unsigned NumElements = EndIndex - BeginIndex; in visitMemTransferInst() local 3014 if (NumElements == 1) in visitMemTransferInst() 3675 uint64_t NumElements = Size / ElementSize; in getTypePartition() local [all …]
|
| /llvm-project-15.0.7/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()
|
| /llvm-project-15.0.7/llvm/lib/Target/ARM/ |
| H A D | ARMLowOverheadLoops.cpp | 647 MCRegister NumElements = TPNumElements.getReg().asMCReg(); in ValidateTailPredicate() local 652 if (RDA.hasLocalDefBefore(VCTP, NumElements)) { in ValidateTailPredicate() 662 !RDA.isReachingDefLiveOut(&*StartInsertPt, NumElements)) { in ValidateTailPredicate() 664 RDA.getLocalLiveOutMIDef(StartInsertBB, NumElements)) { in ValidateTailPredicate() 685 NumElements = TPNumElements.getReg(); in ValidateTailPredicate() 700 MCRegister NumElements) { in ValidateTailPredicate() argument 704 if (RDA.hasLocalDefBefore(&MBB->back(), NumElements)) in ValidateTailPredicate() 717 if (CannotProvideElements(MBB, NumElements)) { in ValidateTailPredicate()
|