Home
last modified time | relevance | path

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

1234

/freebsd-12.1/contrib/llvm/include/llvm/Support/
H A DMachineValueType.h844 if (NumElements == 1) return MVT::v1i8; in getVectorVT()
845 if (NumElements == 2) return MVT::v2i8; in getVectorVT()
846 if (NumElements == 4) return MVT::v4i8; in getVectorVT()
847 if (NumElements == 8) return MVT::v8i8; in getVectorVT()
865 if (NumElements == 1) return MVT::v1i32; in getVectorVT()
866 if (NumElements == 2) return MVT::v2i32; in getVectorVT()
867 if (NumElements == 4) return MVT::v4i32; in getVectorVT()
868 if (NumElements == 8) return MVT::v8i32; in getVectorVT()
874 if (NumElements == 1) return MVT::v1i64; in getVectorVT()
875 if (NumElements == 2) return MVT::v2i64; in getVectorVT()
[all …]
H A DLowLevelTypeImpl.h58 static LLT vector(uint16_t NumElements, unsigned ScalarSizeInBits) { in vector() argument
59 assert(NumElements > 1 && "invalid number of vector elements"); in vector()
61 return LLT{/*isPointer=*/false, /*isVector=*/true, NumElements, in vector()
66 static LLT vector(uint16_t NumElements, LLT ScalarTy) { in vector() argument
67 assert(NumElements > 1 && "invalid number of vector elements"); in vector()
69 return LLT{ScalarTy.isPointer(), /*isVector=*/true, NumElements, in vector()
74 explicit LLT(bool isPointer, bool isVector, uint16_t NumElements, in LLT() argument
76 init(isPointer, isVector, NumElements, SizeInBits, AddressSpace); in LLT()
213 void init(bool IsPointer, bool IsVector, uint16_t NumElements,
224 assert(NumElements > 1 && "invalid number of vector elements");
[all …]
H A DBinaryStreamReader.h176 Error readArray(ArrayRef<T> &Array, uint32_t NumElements) { in readArray() argument
178 if (NumElements == 0) { in readArray()
183 if (NumElements > UINT32_MAX / sizeof(T)) in readArray()
187 if (auto EC = readBytes(Bytes, NumElements * sizeof(T))) in readArray()
193 Array = ArrayRef<T>(reinterpret_cast<const T *>(Bytes.data()), NumElements); in readArray()
/freebsd-12.1/contrib/llvm/lib/CodeGen/
H A DLowLevelType.cpp23 auto NumElements = VTy->getNumElements(); in getLLTForType() local
25 if (NumElements == 1) in getLLTForType()
27 return LLT::vector(NumElements, ScalarTy); in getLLTForType()
/freebsd-12.1/contrib/llvm/tools/clang/lib/AST/
H A DExprObjC.cpp31 NumElements(Elements.size()), Range(SR), ArrayWithObjectsMethod(Method) { in ObjCArrayLiteral()
54 unsigned NumElements) { in CreateEmpty() argument
55 void *Mem = C.Allocate(totalSizeToAlloc<Expr *>(NumElements)); in CreateEmpty()
56 return new (Mem) ObjCArrayLiteral(EmptyShell(), NumElements); in CreateEmpty()
65 NumElements(VK.size()), HasPackExpansions(HasPackExpansions), Range(SR), in ObjCDictionaryLiteral()
70 for (unsigned I = 0; I < NumElements; I++) { in ObjCDictionaryLiteral()
105 ObjCDictionaryLiteral::CreateEmpty(const ASTContext &C, unsigned NumElements, in CreateEmpty() argument
108 NumElements, HasPackExpansions ? NumElements : 0)); in CreateEmpty()
110 ObjCDictionaryLiteral(EmptyShell(), NumElements, HasPackExpansions); in CreateEmpty()
/freebsd-12.1/contrib/llvm/include/llvm/IR/
H A DGetElementPtrTypeIterator.h39 uint64_t NumElements = Unbounded; variable
81 NumElements = STy->getNumElements();
117 return isSequential() && NumElements != Unbounded; in isBoundedSequential()
122 return NumElements; in getSequentialNumElements()
H A DDerivedTypes.h345 uint64_t NumElements; variable
348 SequentialType(TypeID TID, Type *ElType, uint64_t NumElements) in SequentialType() argument
350 NumElements(NumElements) { in SequentialType()
359 uint64_t getNumElements() const { return NumElements; } in getNumElements()
377 static ArrayType *get(Type *ElementType, uint64_t NumElements);
401 static VectorType *get(Type *ElementType, unsigned NumElements);
H A DDataLayout.h533 unsigned NumElements : 31; variable
552 assert(Idx < NumElements && "Invalid element idx!"); in getElementOffset()
/freebsd-12.1/contrib/llvm/tools/clang/lib/StaticAnalyzer/Checkers/
H A DArrayBoundChecker.cpp58 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 DReturnPointerRangeChecker.cpp58 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()
H A DUndefResultChecker.cpp54 DefinedOrUnknownSVal NumElements = C.getStoreManager().getSizeInElements( in isArrayIndexOutOfBounds() local
56 ProgramStateRef StInBound = state->assumeInBound(Idx, NumElements, true); in isArrayIndexOutOfBounds()
57 ProgramStateRef StOutBound = state->assumeInBound(Idx, NumElements, false); in isArrayIndexOutOfBounds()
/freebsd-12.1/contrib/llvm/lib/IR/
H A DType.cpp100 unsigned NumElements = ATy->getNumElements(); in isEmptyTy() local
101 return NumElements == 0 || ATy->getElementType()->isEmptyTy(); in isEmptyTy()
105 unsigned NumElements = STy->getNumElements(); in isEmptyTy() local
106 for (unsigned i = 0; i < NumElements; ++i) in isEmptyTy()
581 ArrayType *ArrayType::get(Type *ElementType, uint64_t NumElements) { in get() argument
586 pImpl->ArrayTypes[std::make_pair(ElementType, NumElements)]; in get()
589 Entry = new (pImpl->TypeAllocator) ArrayType(ElementType, NumElements); in get()
606 VectorType *VectorType::get(Type *ElementType, unsigned NumElements) { in get() argument
607 assert(NumElements > 0 && "#Elements of a VectorType must be greater than 0"); in get()
614 ->VectorTypes[std::make_pair(ElementType, NumElements)]; in get()
[all …]
H A DDebugInfo.cpp907 unsigned NumElements, LLVMMetadataRef ClassTy) { in LLVMDIBuilderCreateEnumerationType() argument
909 NumElements}); in LLVMDIBuilderCreateEnumerationType()
919 LLVMMetadataRef *Elements, unsigned NumElements, unsigned RunTimeLang, in LLVMDIBuilderCreateUnionType() argument
922 NumElements}); in LLVMDIBuilderCreateUnionType()
976 unsigned NumElements, unsigned RunTimeLang, LLVMMetadataRef VTableHolder, in LLVMDIBuilderCreateStructType() argument
979 NumElements}); in LLVMDIBuilderCreateStructType()
1150 LLVMMetadataRef *Elements, unsigned NumElements, in LLVMDIBuilderCreateClassType() argument
1154 NumElements}); in LLVMDIBuilderCreateClassType()
H A DDataLayout.cpp51 NumElements = ST->getNumElements(); in StructLayout()
54 for (unsigned i = 0, e = NumElements; i != e; ++i) { in StructLayout()
86 std::upper_bound(&MemberOffsets[0], &MemberOffsets[NumElements], Offset); in getElementContainingOffset()
91 (SI+1 == &MemberOffsets[NumElements] || *(SI+1) > Offset) && in getElementContainingOffset()
/freebsd-12.1/contrib/llvm/tools/clang/include/clang/AST/
H A DExprObjC.h174 unsigned NumElements; variable
183 : Expr(ObjCArrayLiteralClass, Empty), NumElements(NumElements) {} in ObjCArrayLiteral()
195 unsigned NumElements);
210 unsigned getNumElements() const { return NumElements; } in getNumElements()
214 assert((Index < NumElements) && "Arg access out of range!"); in getElement()
218 assert((Index < NumElements) && "Arg access out of range!"); in getElement()
294 unsigned NumElements : 31;
318 : Expr(ObjCDictionaryLiteralClass, Empty), NumElements(NumElements),
322 return NumElements;
342 unsigned getNumElements() const { return NumElements; }
[all …]
/freebsd-12.1/contrib/llvm/include/llvm-c/
H A DDebugInfo.h463 size_t NumElements);
500 unsigned NumElements, LLVMMetadataRef ClassTy);
523 LLVMMetadataRef *Elements, unsigned NumElements, unsigned RunTimeLang,
621 unsigned NumElements, unsigned RunTimeLang, LLVMMetadataRef VTableHolder,
894 LLVMMetadataRef *Elements, unsigned NumElements,
974 size_t NumElements);
1029 size_t NumElements);
/freebsd-12.1/contrib/llvm/tools/clang/lib/CodeGen/
H A DCGExprCXX.cpp1160 NumElements = Builder.CreateSub( in EmitNewArrayInitializer()
1161 NumElements, in EmitNewArrayInitializer()
1196 unsigned NumElements = 0; in EmitNewArrayInitializer() local
1198 NumElements = CXXRD->getNumBases(); in EmitNewArrayInitializer()
1201 ++NumElements; in EmitNewArrayInitializer()
1203 if (ILE->getNumInits() == NumElements) in EmitNewArrayInitializer()
1206 --NumElements; in EmitNewArrayInitializer()
1795 if (NumElements) in EmitDeleteCall()
1934 llvm::Value *NumElements; member
1940 llvm::Value *NumElements, in CallArrayDelete()
[all …]
H A DCGExprConstant.cpp909 unsigned NumElements = CAT->getSize().getZExtValue(); in EmitArrayInitialization() local
930 Elts.reserve(NumElements); in EmitArrayInitialization()
979 unsigned NumElements = AType->getNumElements(); in EmitDesignatedInitUpdater() local
982 Elts.reserve(NumElements); in EmitDesignatedInitUpdater()
987 for (unsigned i = 0; i != NumElements; ++i) in EmitDesignatedInitUpdater()
990 for (unsigned i = 0; i != NumElements; ++i) in EmitDesignatedInitUpdater()
1001 for (unsigned i = 0; i != NumElements; ++i) { in EmitDesignatedInitUpdater()
1022 Types.reserve(NumElements); in EmitDesignatedInitUpdater()
1023 for (unsigned i = 0; i != NumElements; ++i) in EmitDesignatedInitUpdater()
1951 unsigned NumElements = Value.getArraySize(); in tryEmitPrivate() local
[all …]
/freebsd-12.1/contrib/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);
80 return getExtendedVectorVT(Context, VT, NumElements);
417 unsigned NumElements);
/freebsd-12.1/contrib/llvm/lib/Target/NVPTX/MCTargetDesc/
H A DNVPTXTargetStreamer.cpp103 unsigned NumElements = Data.size(); in emitRawBytes() local
105 unsigned NumChunks = 1 + ((NumElements - 1) / MaxLen); in emitRawBytes()
/freebsd-12.1/contrib/llvm/lib/Transforms/InstCombine/
H A DInstCombineLoadStoreAlloca.cpp693 auto NumElements = ST->getNumElements(); in unpackLoadToAggregate() local
694 if (NumElements == 1) { in unpackLoadToAggregate()
720 for (unsigned i = 0; i < NumElements; i++) { in unpackLoadToAggregate()
742 auto NumElements = AT->getNumElements(); in unpackLoadToAggregate() local
743 if (NumElements == 1) { in unpackLoadToAggregate()
756 if (NumElements > IC.MaxArraySizeForCombine) in unpackLoadToAggregate()
771 for (uint64_t i = 0; i < NumElements; i++) { in unpackLoadToAggregate()
1268 auto NumElements = AT->getNumElements(); in unpackStoreToAggregate() local
1269 if (NumElements == 1) { in unpackStoreToAggregate()
1279 if (NumElements > IC.MaxArraySizeForCombine) in unpackStoreToAggregate()
[all …]
/freebsd-12.1/contrib/llvm/lib/Transforms/Scalar/
H A DSROA.cpp1793 uint64_t NumElements = EndIndex - BeginIndex; in isVectorPromotionViableForSlice() local
1794 Type *SliceTy = (NumElements == 1) in isVectorPromotionViableForSlice()
2144 unsigned NumElements = EndIndex - BeginIndex; in extractVector() local
2147 if (NumElements == VecTy->getNumElements()) in extractVector()
2150 if (NumElements == 1) { in extractVector()
2158 Mask.reserve(NumElements); in extractVector()
2561 Type *SliceTy = (NumElements == 1) in rewriteVectorizedStoreInst()
2774 if (NumElements > 1) in visitMemSetInst()
2952 if (NumElements == 1) in visitMemTransferInst()
3470 uint64_t NumElements = Size / ElementSize; in getTypePartition() local
[all …]
/freebsd-12.1/contrib/llvm/lib/CodeGen/SelectionDAG/
H A DLegalizeTypesGeneric.cpp319 void DAGTypeLegalizer::IntegerToVector(SDValue Op, unsigned NumElements, in IntegerToVector() argument
326 if (NumElements > 1) { in IntegerToVector()
327 NumElements >>= 1; in IntegerToVector()
331 IntegerToVector(Parts[0], NumElements, Ops, EltVT); in IntegerToVector()
332 IntegerToVector(Parts[1], NumElements, Ops, EltVT); in IntegerToVector()
H A DLegalizeVectorOps.cpp896 int NumElements = VT.getVectorNumElements(); in ExpandANY_EXTEND_VECTOR_INREG() local
906 int ExtLaneScale = NumSrcElements / NumElements; in ExpandANY_EXTEND_VECTOR_INREG()
908 for (int i = 0; i < NumElements; ++i) in ExpandANY_EXTEND_VECTOR_INREG()
943 int NumElements = VT.getVectorNumElements(); in ExpandZERO_EXTEND_VECTOR_INREG() local
958 int ExtLaneScale = NumSrcElements / NumElements; in ExpandZERO_EXTEND_VECTOR_INREG()
960 for (int i = 0; i < NumElements; ++i) in ExpandZERO_EXTEND_VECTOR_INREG()
/freebsd-12.1/contrib/llvm/lib/Transforms/IPO/
H A DGlobalOpt.cpp438 unsigned NumElements) { in transferSRADebugInfo() argument
444 if (NumElements > 1) { in transferSRADebugInfo()
479 unsigned NumElements = STy->getNumElements(); in SRAGlobal() local
480 NewGlobals.reserve(NumElements); in SRAGlobal()
482 for (unsigned i = 0, e = NumElements; i != e; ++i) { in SRAGlobal()
506 transferSRADebugInfo(GV, NGV, FragmentOffsetInBits, Size, NumElements); in SRAGlobal()
509 unsigned NumElements = STy->getNumElements(); in SRAGlobal() local
510 if (NumElements > 16 && GV->hasNUsesOrMore(16)) in SRAGlobal()
512 NewGlobals.reserve(NumElements); in SRAGlobal()
517 for (unsigned i = 0, e = NumElements; i != e; ++i) { in SRAGlobal()
[all …]

1234