Home
last modified time | relevance | path

Searched refs:NumElements (Results 1 – 25 of 116) sorted by relevance

12345

/freebsd/contrib/llvm-project/clang/lib/AST/
H A DExprObjC.cpp31 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()
/freebsd/contrib/llvm-project/llvm/include/llvm/Support/
H A DBinaryStreamReader.h168 /// Get a reference to a \p NumElements element array of objects of type T in readObject()
178 Error readArray(ArrayRef<T> &Array, uint32_t NumElements) {
180 if (NumElements == 0) { in readArray() argument
185 if (NumElements > UINT32_MAX / sizeof(T)) in readArray()
189 if (auto EC = readBytes(Bytes, NumElements * sizeof(T))) in readArray()
195 Array = ArrayRef<T>(reinterpret_cast<const T *>(Bytes.data()), NumElements); in readArray()
/freebsd/contrib/llvm-project/clang/lib/AST/Interp/
H A DDynamicAllocator.cpp43 size_t NumElements, unsigned EvalID) { in allocate() argument
47 Source, T, Descriptor::InlineDescMD, NumElements, /*IsConst=*/false, in allocate()
54 size_t NumElements, unsigned EvalID) { in allocate() argument
58 ElementDesc->asExpr(), ElementDesc, Descriptor::InlineDescMD, NumElements, in allocate()
H A DDynamicAllocator.h63 Block *allocate(const Expr *Source, PrimType T, size_t NumElements,
66 Block *allocate(const Descriptor *D, size_t NumElements, unsigned EvalID);
/freebsd/contrib/llvm-project/llvm/include/llvm-c/
H A DDebugInfo.h436 LLVMMetadataRef *Elements, unsigned NumElements);
451 unsigned NumElements);
471 LLVMMetadataRef *Elements, unsigned NumElements);
563 size_t NumElements);
645 unsigned NumElements, LLVMMetadataRef ClassTy);
668 LLVMMetadataRef *Elements, unsigned NumElements, unsigned RunTimeLang,
766 unsigned NumElements, unsigned RunTimeLang, LLVMMetadataRef VTableHolder,
1039 LLVMMetadataRef *Elements, unsigned NumElements,
1119 size_t NumElements);
1222 size_t NumElements);
/freebsd/contrib/llvm-project/llvm/include/llvm/CodeGenTypes/
H A DMachineValueType.h440 static MVT getVectorVT(MVT VT, unsigned NumElements) { in getVectorVT() argument
442 if (!Sc && VT.SimpleTy == ElTy && NumElements == nElem) \ in getVectorVT()
450 static MVT getScalableVectorVT(MVT VT, unsigned NumElements) { in getScalableVectorVT() argument
452 if (Sc && VT.SimpleTy == ElTy && NumElements == nElem) \ in getScalableVectorVT()
460 static MVT getVectorVT(MVT VT, unsigned NumElements, bool IsScalable) { in getVectorVT() argument
462 return getScalableVectorVT(VT, NumElements); in getVectorVT()
463 return getVectorVT(VT, NumElements); in getVectorVT()
H A DLowLevelType.h100 static constexpr LLT fixed_vector(unsigned NumElements, in fixed_vector() argument
102 return vector(ElementCount::getFixed(NumElements), ScalarSizeInBits); in fixed_vector()
107 static constexpr LLT fixed_vector(unsigned NumElements, LLT ScalarTy) { in fixed_vector() argument
108 return vector(ElementCount::getFixed(NumElements), ScalarTy); in fixed_vector()
/freebsd/contrib/llvm-project/llvm/lib/Target/AArch64/
H A DAArch64TargetTransformInfo.h299 bool isLegalBroadcastLoad(Type *ElementTy, ElementCount NumElements) const { in isLegalBroadcastLoad() argument
301 if (!ST->hasNEON() || NumElements.isScalable()) in isLegalBroadcastLoad()
309 unsigned VectorBits = NumElements.getFixedValue() * ElementBits; in isLegalBroadcastLoad()
325 unsigned NumElements = DataTypeTy->getNumElements(); in isLegalNTStoreLoad() local
327 return NumElements > 1 && isPowerOf2_64(NumElements) && EltSize >= 8 && in isLegalNTStoreLoad()
/freebsd/contrib/llvm-project/clang/lib/CodeGen/
H A DCGExprCXX.cpp997 Address BeginPtr, llvm::Value *NumElements, in EmitNewArrayInitializer() argument
1084 llvm::ConstantInt *ConstNum = dyn_cast<llvm::ConstantInt>(NumElements); in EmitNewArrayInitializer()
1170 llvm::ConstantInt *ConstNum = dyn_cast<llvm::ConstantInt>(NumElements); in EmitNewArrayInitializer()
1200 NumElements = Builder.CreateSub( in EmitNewArrayInitializer()
1201 NumElements, in EmitNewArrayInitializer()
1202 llvm::ConstantInt::get(NumElements->getType(), InitListElements)); in EmitNewArrayInitializer()
1203 EmitCXXAggrConstructorCall(Ctor, NumElements, CurPtr, CCE, in EmitNewArrayInitializer()
1236 unsigned NumElements = 0; in EmitNewArrayInitializer() local
1238 NumElements = CXXRD->getNumBases(); in EmitNewArrayInitializer()
1241 ++NumElements; in EmitNewArrayInitializer()
[all …]
H A DABIInfo.cpp148 unsigned NumElements = in isHomogeneousAggregate() local
151 .getVectorType(EltTy, NumElements, VT->getVectorKind()) in isHomogeneousAggregate()
/freebsd/contrib/llvm-project/llvm/include/llvm/IR/
H A DDataLayout.h626 unsigned NumElements : 31; variable
644 return llvm::MutableArrayRef(getTrailingObjects<TypeSize>(), NumElements); in getMemberOffsets()
648 return llvm::ArrayRef(getTrailingObjects<TypeSize>(), NumElements); in getMemberOffsets()
652 assert(Idx < NumElements && "Invalid element idx!"); in getElementOffset()
666 return NumElements; in numTrailingObjects()
H A DDerivedTypes.h375 uint64_t NumElements; variable
383 uint64_t getNumElements() const { return NumElements; } in getNumElements()
387 static ArrayType *get(Type *ElementType, uint64_t NumElements);
441 static VectorType *get(Type *ElementType, unsigned NumElements, in get() argument
444 ElementCount::get(NumElements, Scalable)); in get()
/freebsd/contrib/llvm-project/llvm/lib/IR/
H A DType.cpp151 unsigned NumElements = ATy->getNumElements(); in isEmptyTy() local
152 return NumElements == 0 || ATy->getElementType()->isEmptyTy(); in isEmptyTy()
156 unsigned NumElements = STy->getNumElements(); in isEmptyTy() local
157 for (unsigned i = 0; i < NumElements; ++i) in isEmptyTy()
642 NumElements(NumEl) { in ArrayType()
647 ArrayType *ArrayType::get(Type *ElementType, uint64_t NumElements) { in get() argument
652 pImpl->ArrayTypes[std::make_pair(ElementType, NumElements)]; in get()
655 Entry = new (pImpl->Alloc) ArrayType(ElementType, NumElements); in get()
H A DDebugInfo.cpp1166 LLVMMetadataRef *Elements, unsigned NumElements) { in LLVMDIBuilderCreateImportedModuleFromAlias() argument
1168 (NumElements > 0) in LLVMDIBuilderCreateImportedModuleFromAlias()
1169 ? unwrap(Builder)->getOrCreateArray({unwrap(Elements), NumElements}) in LLVMDIBuilderCreateImportedModuleFromAlias()
1179 unsigned NumElements) { in LLVMDIBuilderCreateImportedModuleFromModule() argument
1181 (NumElements > 0) in LLVMDIBuilderCreateImportedModuleFromModule()
1182 ? unwrap(Builder)->getOrCreateArray({unwrap(Elements), NumElements}) in LLVMDIBuilderCreateImportedModuleFromModule()
1192 LLVMMetadataRef *Elements, unsigned NumElements) { in LLVMDIBuilderCreateImportedDeclaration() argument
1194 (NumElements > 0) in LLVMDIBuilderCreateImportedDeclaration()
1195 ? unwrap(Builder)->getOrCreateArray({unwrap(Elements), NumElements}) in LLVMDIBuilderCreateImportedDeclaration()
1283 unsigned NumElements, LLVMMetadataRef ClassTy) { in LLVMDIBuilderCreateEnumerationType() argument
[all …]
/freebsd/contrib/llvm-project/llvm/include/llvm/CodeGen/
H A DValueTypes.h73 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);
523 static EVT getExtendedVectorVT(LLVMContext &C, EVT VT, unsigned NumElements,
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Utils/
H A DEvaluator.cpp149 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()
/freebsd/contrib/llvm-project/llvm/lib/Target/NVPTX/MCTargetDesc/
H A DNVPTXTargetStreamer.cpp114 unsigned NumElements = Data.size(); in emitRawBytes()
116 unsigned NumChunks = 1 + ((NumElements - 1) / MaxLen); in emitRawBytes()
/freebsd/contrib/llvm-project/llvm/lib/Transforms/InstCombine/
H A DInstCombineLoadStoreAlloca.cpp707 auto NumElements = ST->getNumElements(); in unpackLoadToAggregate() local
708 if (NumElements == 1) { in unpackLoadToAggregate()
734 for (unsigned i = 0; i < NumElements; i++) { in unpackLoadToAggregate()
755 auto NumElements = AT->getNumElements(); in unpackLoadToAggregate() local
756 if (NumElements == 1) { in unpackLoadToAggregate()
767 if (NumElements > IC.MaxArraySizeForCombine) in unpackLoadToAggregate()
780 for (uint64_t i = 0; i < NumElements; i++) { in unpackLoadToAggregate()
1278 auto NumElements = AT->getNumElements(); in unpackStoreToAggregate() local
1279 if (NumElements == 1) { in unpackStoreToAggregate()
1289 if (NumElements > IC.MaxArraySizeForCombine) in unpackStoreToAggregate()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/CodeGen/
H A DExpandLargeDivRem.cpp63 unsigned NumElements = VTy->getElementCount().getFixedValue(); in scalarize() local
65 for (unsigned Idx = 0; Idx < NumElements; ++Idx) { in scalarize()
H A DValueTypes.cpp45 EVT EVT::getExtendedVectorVT(LLVMContext &Context, EVT VT, unsigned NumElements, in getExtendedVectorVT() argument
49 VectorType::get(VT.getTypeForEVT(Context), NumElements, IsScalable); in getExtendedVectorVT()
/freebsd/contrib/llvm-project/llvm/lib/Target/SPIRV/
H A DSPIRVGlobalRegistry.cpp52 SPIRVType *BaseType, unsigned NumElements, Register VReg, MachineInstr &I, in assignVectTypeToVReg() argument
55 getOrCreateSPIRVVectorType(BaseType, NumElements, I, TII); in assignVectTypeToVReg()
1050 unsigned NumElements = 1; in getNumScalarOrVectorTotalBitWidth() local
1052 NumElements = static_cast<unsigned>(Type->getOperand(2).getImm()); in getNumScalarOrVectorTotalBitWidth()
1057 ? NumElements * Type->getOperand(1).getImm() in getNumScalarOrVectorTotalBitWidth()
1357 SPIRVType *BaseType, unsigned NumElements, MachineIRBuilder &MIRBuilder) { in getOrCreateSPIRVVectorType() argument
1360 NumElements), in getOrCreateSPIRVVectorType()
1365 SPIRVType *BaseType, unsigned NumElements, MachineInstr &I, in getOrCreateSPIRVVectorType() argument
1368 const_cast<Type *>(getTypeForSPIRVType(BaseType)), NumElements); in getOrCreateSPIRVVectorType()
1376 .addImm(NumElements); in getOrCreateSPIRVVectorType()
[all …]
H A DSPIRVGlobalRegistry.h283 SPIRVType *assignVectTypeToVReg(SPIRVType *BaseType, unsigned NumElements,
510 unsigned NumElements,
513 unsigned NumElements, MachineInstr &I,
516 unsigned NumElements, MachineInstr &I,
/freebsd/contrib/llvm-project/clang/lib/CodeGen/Targets/
H A DARM.cpp657 unsigned NumElements = VT->getNumElements(); in isIllegalVectorType() local
659 if (!llvm::isPowerOf2_32(NumElements) && NumElements != 3) in isIllegalVectorType()
663 unsigned NumElements = VT->getNumElements(); in isIllegalVectorType() local
666 if (!llvm::isPowerOf2_32(NumElements)) in isIllegalVectorType()
/freebsd/contrib/llvm-project/llvm/lib/CodeGen/SelectionDAG/
H A DLegalizeTypesGeneric.cpp313 void DAGTypeLegalizer::IntegerToVector(SDValue Op, unsigned NumElements, in IntegerToVector() argument
320 if (NumElements > 1) { in IntegerToVector()
321 NumElements >>= 1; in IntegerToVector()
325 IntegerToVector(Parts[0], NumElements, Ops, EltVT); in IntegerToVector()
326 IntegerToVector(Parts[1], NumElements, Ops, EltVT); in IntegerToVector()
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Scalar/
H A DSROA.cpp2040 uint64_t NumElements = EndIndex - BeginIndex; in isVectorPromotionViableForSlice() local
2041 Type *SliceTy = (NumElements == 1) in isVectorPromotionViableForSlice()
2043 : FixedVectorType::get(Ty->getElementType(), NumElements); in isVectorPromotionViableForSlice()
2046 Type::getIntNTy(Ty->getContext(), NumElements * ElementSize * 8); in isVectorPromotionViableForSlice()
2531 unsigned NumElements = EndIndex - BeginIndex; in extractVector() local
2532 assert(NumElements <= VecTy->getNumElements() && "Too many elements!"); in extractVector()
2534 if (NumElements == VecTy->getNumElements()) in extractVector()
2537 if (NumElements == 1) { in extractVector()
2977 unsigned NumElements = EndIndex - BeginIndex; in rewriteVectorizedStoreInst() local
2978 assert(NumElements <= cast<FixedVectorType>(VecTy)->getNumElements() && in rewriteVectorizedStoreInst()
[all …]

12345