Searched refs:NumElements (Results 1 - 25 of 91) sorted by relevance

1234

/freebsd-11-stable/contrib/llvm-project/llvm/include/llvm/Support/
H A DMachineValueType.h918 static MVT getVectorVT(MVT VT, unsigned NumElements) { argument
923 if (NumElements == 1) return MVT::v1i1;
924 if (NumElements == 2) return MVT::v2i1;
925 if (NumElements == 4) return MVT::v4i1;
926 if (NumElements == 8) return MVT::v8i1;
927 if (NumElements == 16) return MVT::v16i1;
928 if (NumElements == 32) return MVT::v32i1;
929 if (NumElements == 64) return MVT::v64i1;
930 if (NumElements == 128) return MVT::v128i1;
931 if (NumElements
1018 getScalableVectorVT(MVT VT, unsigned NumElements) argument
1084 getVectorVT(MVT VT, unsigned NumElements, bool IsScalable) argument
[all...]
H A DLowLevelTypeImpl.h44 return LLT{/*isPointer=*/false, /*isVector=*/false, /*NumElements=*/0,
51 return LLT{/*isPointer=*/true, /*isVector=*/false, /*NumElements=*/0,
56 /// \p NumElements must be at least 2.
57 static LLT vector(uint16_t NumElements, unsigned ScalarSizeInBits) { argument
58 assert(NumElements > 1 && "invalid number of vector elements");
60 return LLT{/*isPointer=*/false, /*isVector=*/true, NumElements,
65 static LLT vector(uint16_t NumElements, LLT ScalarTy) { argument
66 assert(NumElements > 1 && "invalid number of vector elements");
68 return LLT{ScalarTy.isPointer(), /*isVector=*/true, NumElements,
73 static LLT scalarOrVector(uint16_t NumElements, LL argument
77 scalarOrVector(uint16_t NumElements, unsigned ScalarSize) argument
81 LLT(bool isPointer, bool isVector, uint16_t NumElements, unsigned SizeInBits, unsigned AddressSpace) argument
248 init(bool IsPointer, bool IsVector, uint16_t NumElements, unsigned SizeInBits, unsigned AddressSpace) argument
[all...]
H A DBinaryStreamReader.h177 /// Get a reference to a \p NumElements element array of objects of type T
187 Error readArray(ArrayRef<T> &Array, uint32_t NumElements) { argument
189 if (NumElements == 0) {
194 if (NumElements > UINT32_MAX / sizeof(T))
198 if (auto EC = readBytes(Bytes, NumElements * sizeof(T)))
204 Array = ArrayRef<T>(reinterpret_cast<const T *>(Bytes.data()), NumElements);
/freebsd-11-stable/contrib/llvm-project/clang/lib/StaticAnalyzer/Checkers/
H A DReturnPointerRangeChecker.cpp57 DefinedOrUnknownSVal NumElements
61 ProgramStateRef StInBound = state->assumeInBound(Idx, NumElements, true);
62 ProgramStateRef StOutBound = state->assumeInBound(Idx, NumElements, false);
H A DArrayBoundChecker.cpp57 DefinedOrUnknownSVal NumElements local
61 ProgramStateRef StInBound = state->assumeInBound(Idx, NumElements, true);
62 ProgramStateRef StOutBound = state->assumeInBound(Idx, NumElements, false);
H A DUndefResultChecker.cpp53 DefinedOrUnknownSVal NumElements = C.getStoreManager().getSizeInElements( local
55 ProgramStateRef StInBound = state->assumeInBound(Idx, NumElements, true);
56 ProgramStateRef StOutBound = state->assumeInBound(Idx, NumElements, false);
/freebsd-11-stable/contrib/llvm-project/llvm/lib/CodeGen/
H A DLowLevelType.cpp22 auto NumElements = VTy->getNumElements(); local
24 if (NumElements == 1)
26 return LLT::vector(NumElements, ScalarTy);
/freebsd-11-stable/contrib/llvm-project/llvm/include/llvm/IR/
H A DGetElementPtrTypeIterator.h38 uint64_t NumElements = Unbounded; variable
80 NumElements = STy->getNumElements();
116 return isSequential() && NumElements != Unbounded;
121 return NumElements;
H A DDerivedTypes.h382 uint64_t NumElements; member in class:llvm::SequentialType
385 SequentialType(TypeID TID, Type *ElType, uint64_t NumElements) argument
387 NumElements(NumElements) {
398 uint64_t getNumElements() const { return NumElements; }
416 static ArrayType *get(Type *ElementType, uint64_t NumElements);
450 // minimum 'NumElements' from SequentialType. Otherwise the total number
451 // of elements is exactly equal to 'NumElements'.
460 static VectorType *get(Type *ElementType, unsigned NumElements, argument
462 return VectorType::get(ElementType, {NumElements, Scalabl
[all...]
H A DDataLayout.h589 unsigned NumElements : 31;
608 assert(Idx < NumElements && "Invalid element idx!");
/freebsd-11-stable/contrib/llvm-project/llvm/lib/Target/ARM/
H A DMVETailPredication.cpp93 bool isTailPredicate(Instruction *Predicate, Value *NumElements);
99 Value *NumElements);
191 bool MVETailPredication::isTailPredicate(Instruction *I, Value *NumElements) { argument
243 if (TripCount != NumElements || !L->isLoopInvariant(BECount))
462 VectorType *VecTy, Value *NumElements) {
469 Processed->addIncoming(NumElements, L->getLoopPreheader());
525 Value *NumElements = ComputeElements(TripCount, VecTy); local
526 if (!NumElements)
529 if (!isTailPredicate(Predicate, NumElements)) {
537 InsertVCTPIntrinsic(Predicate, NewPredicates, VecTy, NumElements);
460 InsertVCTPIntrinsic(Instruction *Predicate, DenseMap<Instruction*, Instruction*> &NewPredicates, VectorType *VecTy, Value *NumElements) argument
[all...]
H A DMVEGatherScatterLowering.cpp75 bool isLegalTypeAndAlignment(unsigned NumElements, unsigned ElemSize,
104 bool MVEGatherScatterLowering::isLegalTypeAndAlignment(unsigned NumElements, argument
108 if (((NumElements == 4 && ElemSize == 32) ||
109 (NumElements == 8 && ElemSize == 16) ||
110 (NumElements == 16 && ElemSize == 8)) &&
H A DARMLowOverheadLoops.cpp357 Register NumElements = VCTP->getOperand(1).getReg(); local
362 if (RDA->getReachingDef(VCTP, NumElements) >= 0) {
371 if (!RDA->isReachingDefLiveOut(InsertPt, NumElements)) {
372 if (auto *ElemDef = RDA->getLocalLiveOutMIDef(InsertBB, NumElements)) {
394 Register NumElements) {
395 // NumElements is redefined in this block.
396 if (RDA->getReachingDef(&MBB->back(), NumElements) >= 0)
415 if (CannotProvideElements(MBB, NumElements)) {
/freebsd-11-stable/contrib/llvm-project/clang/lib/AST/
H A DExprObjC.cpp30 NumElements(Elements.size()), Range(SR), ArrayWithObjectsMethod(Method) {
53 unsigned NumElements) {
54 void *Mem = C.Allocate(totalSizeToAlloc<Expr *>(NumElements));
55 return new (Mem) ObjCArrayLiteral(EmptyShell(), NumElements);
64 NumElements(VK.size()), HasPackExpansions(HasPackExpansions), Range(SR),
69 for (unsigned I = 0; I < NumElements; I++) {
104 ObjCDictionaryLiteral::CreateEmpty(const ASTContext &C, unsigned NumElements, argument
107 NumElements, HasPackExpansions ? NumElements : 0));
109 ObjCDictionaryLiteral(EmptyShell(), NumElements, HasPackExpansion
52 CreateEmpty(const ASTContext &C, unsigned NumElements) argument
[all...]
/freebsd-11-stable/contrib/llvm-project/clang/include/clang/AST/
H A DExprObjC.h191 unsigned NumElements; member in class:clang::final
199 explicit ObjCArrayLiteral(EmptyShell Empty, unsigned NumElements) argument
200 : Expr(ObjCArrayLiteralClass, Empty), NumElements(NumElements) {}
212 unsigned NumElements);
227 unsigned getNumElements() const { return NumElements; }
231 assert((Index < NumElements) && "Arg access out of range!");
235 assert((Index < NumElements) && "Arg access out of range!");
246 reinterpret_cast<Stmt **>(getElements()) + NumElements);
310 unsigned NumElements
332 ObjCDictionaryLiteral(EmptyShell Empty, unsigned NumElements, bool HasPackExpansions) argument
[all...]
/freebsd-11-stable/contrib/llvm-project/llvm/lib/Target/NVPTX/MCTargetDesc/
H A DNVPTXTargetStreamer.cpp112 unsigned NumElements = Data.size();
114 unsigned NumChunks = 1 + ((NumElements - 1) / MaxLen);
/freebsd-11-stable/contrib/llvm-project/llvm/include/llvm/CodeGen/
H A DValueTypes.h71 /// Returns the EVT that represents a vector NumElements in length, where
73 static EVT getVectorVT(LLVMContext &Context, EVT VT, unsigned NumElements, argument
75 MVT M = MVT::getVectorVT(VT.V, NumElements, IsScalable);
80 return getExtendedVectorVT(Context, VT, NumElements);
432 unsigned NumElements);
/freebsd-11-stable/contrib/llvm-project/llvm/include/llvm-c/
H A DDebugInfo.h513 * \param NumElements Number of type elements.
517 size_t NumElements);
592 * \param NumElements Number of enumeration elements.
599 unsigned NumElements, LLVMMetadataRef ClassTy);
613 * \param NumElements Number of union elements.
622 LLVMMetadataRef *Elements, unsigned NumElements, unsigned RunTimeLang,
709 * \param NumElements Number of struct elements.
720 unsigned NumElements, unsigned RunTimeLang, LLVMMetadataRef VTableHolder,
979 * \param NumElements Number of class elements.
993 LLVMMetadataRef *Elements, unsigned NumElements,
[all...]
/freebsd-11-stable/contrib/llvm-project/clang/lib/CodeGen/
H A DCGExprCXX.cpp711 // We multiply the size of all dimensions for NumElements.
712 // e.g for 'int[2][3]', ElemType is 'int' and NumElements is 6.
981 Address BeginPtr, llvm::Value *NumElements,
1058 llvm::ConstantInt *ConstNum = dyn_cast<llvm::ConstantInt>(NumElements);
1136 llvm::ConstantInt *ConstNum = dyn_cast<llvm::ConstantInt>(NumElements);
1169 NumElements = Builder.CreateSub(
1170 NumElements,
1171 llvm::ConstantInt::get(NumElements->getType(), InitListElements));
1172 EmitCXXAggrConstructorCall(Ctor, NumElements, CurPtr, CCE,
1205 unsigned NumElements local
979 EmitNewArrayInitializer( const CXXNewExpr *E, QualType ElementType, llvm::Type *ElementTy, Address BeginPtr, llvm::Value *NumElements, llvm::Value *AllocSizeWithoutCookie) argument
1286 EmitNewInitializer(CodeGenFunction &CGF, const CXXNewExpr *E, QualType ElementType, llvm::Type *ElementTy, Address NewPtr, llvm::Value *NumElements, llvm::Value *AllocSizeWithoutCookie) argument
1766 EmitDeleteCall(const FunctionDecl *DeleteFD, llvm::Value *Ptr, QualType DeleteTy, llvm::Value *NumElements, CharUnits CookieSize) argument
1963 llvm::Value *NumElements; member in struct:__anon360::final
1967 CallArrayDelete(llvm::Value *Ptr, const FunctionDecl *OperatorDelete, llvm::Value *NumElements, QualType ElementType, CharUnits CookieSize) argument
[all...]
H A DCGCXXABI.h487 /// \param NumElements - the computed number of elements,
494 llvm::Value *NumElements,
503 /// \param NumElements - an out parameter which will be initialized
513 QualType ElementType, llvm::Value *&NumElements,
/freebsd-11-stable/contrib/llvm-project/llvm/lib/IR/
H A DType.cpp100 unsigned NumElements = ATy->getNumElements(); local
101 return NumElements == 0 || ATy->getElementType()->isEmptyTy();
105 unsigned NumElements = STy->getNumElements(); local
106 for (unsigned i = 0; i < NumElements; ++i)
587 ArrayType *ArrayType::get(Type *ElementType, uint64_t NumElements) { argument
592 pImpl->ArrayTypes[std::make_pair(ElementType, NumElements)];
595 Entry = new (pImpl->Alloc) ArrayType(ElementType, NumElements);
H A DDebugInfo.cpp964 unsigned NumElements, LLVMMetadataRef ClassTy) {
966 NumElements});
976 LLVMMetadataRef *Elements, unsigned NumElements, unsigned RunTimeLang,
979 NumElements});
1033 unsigned NumElements, unsigned RunTimeLang, LLVMMetadataRef VTableHolder,
1036 NumElements});
1206 LLVMMetadataRef *Elements, unsigned NumElements,
1210 NumElements});
960 LLVMDIBuilderCreateEnumerationType( LLVMDIBuilderRef Builder, LLVMMetadataRef Scope, const char *Name, size_t NameLen, LLVMMetadataRef File, unsigned LineNumber, uint64_t SizeInBits, uint32_t AlignInBits, LLVMMetadataRef *Elements, unsigned NumElements, LLVMMetadataRef ClassTy) argument
972 LLVMDIBuilderCreateUnionType( LLVMDIBuilderRef Builder, LLVMMetadataRef Scope, const char *Name, size_t NameLen, LLVMMetadataRef File, unsigned LineNumber, uint64_t SizeInBits, uint32_t AlignInBits, LLVMDIFlags Flags, LLVMMetadataRef *Elements, unsigned NumElements, unsigned RunTimeLang, const char *UniqueId, size_t UniqueIdLen) argument
1028 LLVMDIBuilderCreateStructType( LLVMDIBuilderRef Builder, LLVMMetadataRef Scope, const char *Name, size_t NameLen, LLVMMetadataRef File, unsigned LineNumber, uint64_t SizeInBits, uint32_t AlignInBits, LLVMDIFlags Flags, LLVMMetadataRef DerivedFrom, LLVMMetadataRef *Elements, unsigned NumElements, unsigned RunTimeLang, LLVMMetadataRef VTableHolder, const char *UniqueId, size_t UniqueIdLen) argument
1201 LLVMDIBuilderCreateClassType(LLVMDIBuilderRef Builder, LLVMMetadataRef Scope, const char *Name, size_t NameLen, LLVMMetadataRef File, unsigned LineNumber, uint64_t SizeInBits, uint32_t AlignInBits, uint64_t OffsetInBits, LLVMDIFlags Flags, LLVMMetadataRef DerivedFrom, LLVMMetadataRef *Elements, unsigned NumElements, LLVMMetadataRef VTableHolder, LLVMMetadataRef TemplateParamsNode, const char *UniqueIdentifier, size_t UniqueIdentifierLen) argument
/freebsd-11-stable/contrib/llvm-project/llvm/lib/Transforms/InstCombine/
H A DInstCombineLoadStoreAlloca.cpp659 auto NumElements = ST->getNumElements(); local
660 if (NumElements == 1) {
686 for (unsigned i = 0; i < NumElements; i++) {
709 auto NumElements = AT->getNumElements(); local
710 if (NumElements == 1) {
723 if (NumElements > IC.MaxArraySizeForCombine)
738 for (uint64_t i = 0; i < NumElements; i++) {
1239 auto NumElements = AT->getNumElements(); local
1240 if (NumElements == 1) {
1250 if (NumElements > I
[all...]
/freebsd-11-stable/contrib/llvm-project/llvm/lib/CodeGen/SelectionDAG/
H A DLegalizeTypesGeneric.cpp310 void DAGTypeLegalizer::IntegerToVector(SDValue Op, unsigned NumElements, argument
317 if (NumElements > 1) {
318 NumElements >>= 1;
322 IntegerToVector(Parts[0], NumElements, Ops, EltVT);
323 IntegerToVector(Parts[1], NumElements, Ops, EltVT);
/freebsd-11-stable/contrib/llvm-project/llvm/lib/Transforms/Scalar/
H A DSROA.cpp1825 uint64_t NumElements = EndIndex - BeginIndex;
1826 Type *SliceTy = (NumElements == 1)
1828 : VectorType::get(Ty->getElementType(), NumElements);
1831 Type::getIntNTy(Ty->getContext(), NumElements * ElementSize * 8);
2184 unsigned NumElements = EndIndex - BeginIndex;
2185 assert(NumElements <= VecTy->getNumElements() && "Too many elements!");
2187 if (NumElements == VecTy->getNumElements())
2190 if (NumElements == 1) {
2198 Mask.reserve(NumElements);
2604 unsigned NumElements
[all...]

Completed in 202 milliseconds

1234