Home
last modified time | relevance | path

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

1234

/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/include/llvm/Support/
DMachineValueType.h918 static MVT getVectorVT(MVT VT, unsigned NumElements) { in getVectorVT() argument
923 if (NumElements == 1) return MVT::v1i1; in getVectorVT()
924 if (NumElements == 2) return MVT::v2i1; in getVectorVT()
925 if (NumElements == 4) return MVT::v4i1; in getVectorVT()
926 if (NumElements == 8) return MVT::v8i1; in getVectorVT()
927 if (NumElements == 16) return MVT::v16i1; in getVectorVT()
928 if (NumElements == 32) return MVT::v32i1; in getVectorVT()
929 if (NumElements == 64) return MVT::v64i1; in getVectorVT()
930 if (NumElements == 128) return MVT::v128i1; in getVectorVT()
931 if (NumElements == 256) return MVT::v256i1; in getVectorVT()
[all …]
DLowLevelTypeImpl.h57 static LLT vector(uint16_t NumElements, unsigned ScalarSizeInBits) { in vector() argument
58 assert(NumElements > 1 && "invalid number of vector elements"); in vector()
60 return LLT{/*isPointer=*/false, /*isVector=*/true, NumElements, in vector()
65 static LLT vector(uint16_t NumElements, LLT ScalarTy) { in vector() argument
66 assert(NumElements > 1 && "invalid number of vector elements"); in vector()
68 return LLT{ScalarTy.isPointer(), /*isVector=*/true, NumElements, in vector()
73 static LLT scalarOrVector(uint16_t NumElements, LLT ScalarTy) { in scalarOrVector() argument
74 return NumElements == 1 ? ScalarTy : LLT::vector(NumElements, ScalarTy); in scalarOrVector()
77 static LLT scalarOrVector(uint16_t NumElements, unsigned ScalarSize) { in scalarOrVector() argument
78 return scalarOrVector(NumElements, LLT::scalar(ScalarSize)); in scalarOrVector()
[all …]
DBinaryStreamReader.h187 Error readArray(ArrayRef<T> &Array, uint32_t NumElements) { in readArray() argument
189 if (NumElements == 0) { in readArray()
194 if (NumElements > UINT32_MAX / sizeof(T)) in readArray()
198 if (auto EC = readBytes(Bytes, NumElements * sizeof(T))) in readArray()
204 Array = ArrayRef<T>(reinterpret_cast<const T *>(Bytes.data()), NumElements); in readArray()
/third_party/skia/third_party/externals/swiftshader/third_party/subzero/crosstest/
Dtest_vector_ops.cpp663 static typename std::enable_if<Vectors<Ty>::NumElements == 4, Ty>::type
665 const uint8_t NumElements = 4; in shufflevector() local
667 V1, V2, Idx0 % (NumElements * 2), Idx1 % (NumElements * 2), in shufflevector()
668 Idx2 % (NumElements * 2), Idx3 % (NumElements * 2)); in shufflevector()
679 static typename std::enable_if<Vectors<Ty>::NumElements == 8, Ty>::type
681 const uint8_t NumElements = 8; in shufflevector() local
683 V1, V2, Idx0 % (NumElements * 2), Idx1 % (NumElements * 2), in shufflevector()
684 Idx2 % (NumElements * 2), Idx3 % (NumElements * 2), in shufflevector()
685 Idx4 % (NumElements * 2), Idx5 % (NumElements * 2), in shufflevector()
686 Idx6 % (NumElements * 2), Idx7 % (NumElements * 2)); in shufflevector()
[all …]
Dtest_select_main.cpp42 static const size_t NumElements = Vectors<T>::NumElements; in testSelect() local
47 for (size_t j = 0; j < NumElements; ++j) { in testSelect()
78 static const size_t NumElements = 4; in testSelect() local
83 for (size_t j = 0; j < NumElements; ++j) { in testSelect()
108 static const size_t NumElements = Vectors<T>::NumElements; in testSelectI1() local
113 for (size_t j = 0; j < NumElements; ++j) { in testSelectI1()
Dtest_icmp_main.cpp212 const static size_t NumElementsInType = Vectors<TypeUnsigned>::NumElements; in testsVecInt()
247 const static size_t NumElements = Vectors<T>::NumElements; in incrementI1Vector() local
248 for (Pos = 0; Pos < NumElements; ++Pos) { in incrementI1Vector()
255 return (Pos == NumElements); in incrementI1Vector()
271 const static size_t NumElements = Vectors<T>::NumElements; in testsVecI1() local
275 if (NumElements <= MAX_NUMBER_OF_ELEMENTS_FOR_EXHAUSTIVE_TESTING) { in testsVecI1()
306 for (size_t j = 0; j < NumElements; ++j) { in testsVecI1()
Dtest_vector_ops_main.cpp38 for (int I = 0; I < VectorOps<T>::NumElements; ++I) in getTestVectors()
41 for (int I = 0; I < VectorOps<T>::NumElements; ++I) in getTestVectors()
44 for (int I = 0; I < VectorOps<T>::NumElements; ++I) in getTestVectors()
47 for (int I = 0; I < VectorOps<T>::NumElements; ++I) in getTestVectors()
81 for (size_t I = 0; I < VectorOps<T>::NumElements; ++I) { in testInsertElement()
114 for (size_t I = 0; I < VectorOps<T>::NumElements; ++I) { in testExtractElement()
Dvectors.h65 static const size_t NumElements; \
68 const size_t Vectors<LABEL>::NumElements = NUM_ELEMENTS; \
87 for (size_t i = 0; i < Vectors<T>::NumElements; ++i) { in vectAsString()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Target/ARM/
DMVETailPredication.cpp93 bool isTailPredicate(Instruction *Predicate, Value *NumElements);
99 Value *NumElements);
191 bool MVETailPredication::isTailPredicate(Instruction *I, Value *NumElements) { in isTailPredicate() argument
243 if (TripCount != NumElements || !L->isLoopInvariant(BECount)) in isTailPredicate()
462 VectorType *VecTy, Value *NumElements) { in InsertVCTPIntrinsic() argument
469 Processed->addIncoming(NumElements, L->getLoopPreheader()); in InsertVCTPIntrinsic()
525 Value *NumElements = ComputeElements(TripCount, VecTy); in TryConvert() local
526 if (!NumElements) in TryConvert()
529 if (!isTailPredicate(Predicate, NumElements)) { in TryConvert()
537 InsertVCTPIntrinsic(Predicate, NewPredicates, VecTy, NumElements); in TryConvert()
DMVEGatherScatterLowering.cpp75 bool isLegalTypeAndAlignment(unsigned NumElements, unsigned ElemSize,
104 bool MVEGatherScatterLowering::isLegalTypeAndAlignment(unsigned NumElements, in isLegalTypeAndAlignment() argument
108 if (((NumElements == 4 && ElemSize == 32) || in isLegalTypeAndAlignment()
109 (NumElements == 8 && ElemSize == 16) || in isLegalTypeAndAlignment()
110 (NumElements == 16 && ElemSize == 8)) && in isLegalTypeAndAlignment()
DARMLowOverheadLoops.cpp357 Register NumElements = VCTP->getOperand(1).getReg(); in ValidateTailPredicate() local
362 if (RDA->getReachingDef(VCTP, NumElements) >= 0) { in ValidateTailPredicate()
371 if (!RDA->isReachingDefLiveOut(InsertPt, NumElements)) { in ValidateTailPredicate()
372 if (auto *ElemDef = RDA->getLocalLiveOutMIDef(InsertBB, NumElements)) { in ValidateTailPredicate()
394 Register NumElements) { in ValidateTailPredicate() argument
396 if (RDA->getReachingDef(&MBB->back(), NumElements) >= 0) in ValidateTailPredicate()
415 if (CannotProvideElements(MBB, NumElements)) { in ValidateTailPredicate()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-subzero/include/llvm/IR/
DDerivedTypes.h321 uint64_t NumElements; variable
324 SequentialType(TypeID TID, Type *ElType, uint64_t NumElements) in SequentialType() argument
326 NumElements(NumElements) { in SequentialType()
335 uint64_t getNumElements() const { return NumElements; } in getNumElements()
353 static ArrayType *get(Type *ElementType, uint64_t NumElements);
377 static VectorType *get(Type *ElementType, unsigned NumElements);
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/include/llvm/IR/
DGetElementPtrTypeIterator.h38 uint64_t NumElements = Unbounded; variable
80 NumElements = STy->getNumElements();
116 return isSequential() && NumElements != Unbounded; in isBoundedSequential()
121 return NumElements; in getSequentialNumElements()
DDerivedTypes.h382 uint64_t NumElements; variable
385 SequentialType(TypeID TID, Type *ElType, uint64_t NumElements) in SequentialType() argument
387 NumElements(NumElements) { in SequentialType()
398 uint64_t getNumElements() const { return NumElements; } in getNumElements()
416 static ArrayType *get(Type *ElementType, uint64_t NumElements);
460 static VectorType *get(Type *ElementType, unsigned NumElements,
462 return VectorType::get(ElementType, {NumElements, Scalable});
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/CodeGen/
DLowLevelType.cpp22 auto NumElements = VTy->getNumElements(); in getLLTForType() local
24 if (NumElements == 1) in getLLTForType()
26 return LLT::vector(NumElements, ScalarTy); in getLLTForType()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/include/llvm-c/
DDebugInfo.h517 size_t NumElements);
599 unsigned NumElements, LLVMMetadataRef ClassTy);
622 LLVMMetadataRef *Elements, unsigned NumElements, unsigned RunTimeLang,
720 unsigned NumElements, unsigned RunTimeLang, LLVMMetadataRef VTableHolder,
993 LLVMMetadataRef *Elements, unsigned NumElements,
1073 size_t NumElements);
1170 size_t NumElements);
/third_party/skia/third_party/externals/swiftshader/third_party/subzero/src/
DIceTargetLowering.h475 const SizeT NumElements = typeNumElements(DestTy); in scalarizeInstruction() local
486 for (SizeT I = 0; I < NumElements; ++I) { in scalarizeInstruction()
489 auto makeExtractThunk = [this, Index, NumElements](Operand *Src) { in scalarizeInstruction()
490 return [this, Index, NumElements, Src]() { in scalarizeInstruction()
491 (void)NumElements; in scalarizeInstruction()
492 assert(typeNumElements(Src->getType()) == NumElements); in scalarizeInstruction()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/include/llvm/CodeGen/
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);
432 unsigned NumElements);
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/IR/
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()
587 ArrayType *ArrayType::get(Type *ElementType, uint64_t NumElements) { in get() argument
592 pImpl->ArrayTypes[std::make_pair(ElementType, NumElements)]; in get()
595 Entry = new (pImpl->Alloc) ArrayType(ElementType, NumElements); in get()
DDataLayout.cpp50 NumElements = ST->getNumElements(); in StructLayout()
53 for (unsigned i = 0, e = NumElements; i != e; ++i) { in StructLayout()
82 std::upper_bound(&MemberOffsets[0], &MemberOffsets[NumElements], Offset); in getElementContainingOffset()
87 (SI+1 == &MemberOffsets[NumElements] || *(SI+1) > Offset) && in getElementContainingOffset()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/InstCombine/
DInstCombineLoadStoreAlloca.cpp659 auto NumElements = ST->getNumElements(); in unpackLoadToAggregate() local
660 if (NumElements == 1) { in unpackLoadToAggregate()
686 for (unsigned i = 0; i < NumElements; i++) { in unpackLoadToAggregate()
709 auto NumElements = AT->getNumElements(); in unpackLoadToAggregate() local
710 if (NumElements == 1) { in unpackLoadToAggregate()
723 if (NumElements > IC.MaxArraySizeForCombine) in unpackLoadToAggregate()
738 for (uint64_t i = 0; i < NumElements; i++) { in unpackLoadToAggregate()
1239 auto NumElements = AT->getNumElements(); in unpackStoreToAggregate() local
1240 if (NumElements == 1) { in unpackStoreToAggregate()
1250 if (NumElements > IC.MaxArraySizeForCombine) in unpackStoreToAggregate()
[all …]
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Target/NVPTX/MCTargetDesc/
DNVPTXTargetStreamer.cpp112 unsigned NumElements = Data.size(); in emitRawBytes()
114 unsigned NumChunks = 1 + ((NumElements - 1) / MaxLen); in emitRawBytes()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/Scalar/
DSROA.cpp1825 uint64_t NumElements = EndIndex - BeginIndex; in isVectorPromotionViableForSlice() local
1826 Type *SliceTy = (NumElements == 1) in isVectorPromotionViableForSlice()
1828 : VectorType::get(Ty->getElementType(), NumElements); in isVectorPromotionViableForSlice()
1831 Type::getIntNTy(Ty->getContext(), NumElements * ElementSize * 8); in isVectorPromotionViableForSlice()
2184 unsigned NumElements = EndIndex - BeginIndex; in extractVector() local
2185 assert(NumElements <= VecTy->getNumElements() && "Too many elements!"); in extractVector()
2187 if (NumElements == VecTy->getNumElements()) in extractVector()
2190 if (NumElements == 1) { in extractVector()
2198 Mask.reserve(NumElements); in extractVector()
2604 unsigned NumElements = EndIndex - BeginIndex; in rewriteVectorizedStoreInst() local
[all …]
/third_party/skia/third_party/externals/dawn/src/dawn_native/d3d12/
DBindGroupD3D12.cpp92 desc.Buffer.NumElements = binding.size / 4; in BindGroup()
116 desc.Buffer.NumElements = binding.size / 4; in BindGroup()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/CodeGen/SelectionDAG/
DLegalizeTypesGeneric.cpp310 void DAGTypeLegalizer::IntegerToVector(SDValue Op, unsigned NumElements, in IntegerToVector() argument
317 if (NumElements > 1) { in IntegerToVector()
318 NumElements >>= 1; in IntegerToVector()
322 IntegerToVector(Parts[0], NumElements, Ops, EltVT); in IntegerToVector()
323 IntegerToVector(Parts[1], NumElements, Ops, EltVT); in IntegerToVector()

1234