Home
last modified time | relevance | path

Searched refs:VectorType (Results 1 – 25 of 154) sorted by relevance

1234567

/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/CodeGen/
DValueTypes.cpp38 ResultVT.LLVMTy = VectorType::get(VT.getTypeForEVT(Context), NumElements); in getExtendedVectorVT()
97 return EVT::getEVT(cast<VectorType>(LLVMTy)->getElementType()); in getExtendedVectorElementType()
102 return cast<VectorType>(LLVMTy)->getNumElements(); in getExtendedVectorNumElements()
109 if (VectorType *VTy = dyn_cast<VectorType>(LLVMTy)) in getExtendedSizeInBits()
159 case MVT::v1i1: return VectorType::get(Type::getInt1Ty(Context), 1); in getTypeForEVT()
160 case MVT::v2i1: return VectorType::get(Type::getInt1Ty(Context), 2); in getTypeForEVT()
161 case MVT::v4i1: return VectorType::get(Type::getInt1Ty(Context), 4); in getTypeForEVT()
162 case MVT::v8i1: return VectorType::get(Type::getInt1Ty(Context), 8); in getTypeForEVT()
163 case MVT::v16i1: return VectorType::get(Type::getInt1Ty(Context), 16); in getTypeForEVT()
164 case MVT::v32i1: return VectorType::get(Type::getInt1Ty(Context), 32); in getTypeForEVT()
[all …]
DScalarizeMaskedMemIntrin.cpp134 VectorType *VecType = cast<VectorType>(CI->getType()); in scalarizeMaskedLoad()
272 VectorType *VecType = cast<VectorType>(Src->getType()); in scalarizeMaskedStore()
396 VectorType *VecType = cast<VectorType>(CI->getType()); in scalarizeMaskedGather()
520 assert(isa<VectorType>(Src->getType()) && in scalarizeMaskedScatter()
522 assert(isa<VectorType>(Ptrs->getType()) && in scalarizeMaskedScatter()
604 VectorType *VecType = cast<VectorType>(CI->getType()); in scalarizeMaskedExpandLoad()
717 VectorType *VecType = cast<VectorType>(Src->getType()); in scalarizeMaskedCompressStore()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/include/llvm/IR/
DDerivedTypes.h432 class VectorType : public SequentialType {
446 VectorType(Type *ElType, unsigned NumEl, bool Scalable = false);
447 VectorType(Type *ElType, ElementCount EC);
455 VectorType(const VectorType &) = delete;
456 VectorType &operator=(const VectorType &) = delete;
459 static VectorType *get(Type *ElementType, ElementCount EC);
460 static VectorType *get(Type *ElementType, unsigned NumElements,
462 return VectorType::get(ElementType, {NumElements, Scalable});
468 static VectorType *getInteger(VectorType *VTy) { in getInteger()
472 return VectorType::get(EltTy, VTy->getElementCount()); in getInteger()
[all …]
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-subzero/include/llvm/IR/
DDerivedTypes.h369 class VectorType : public SequentialType {
370 VectorType(Type *ElType, unsigned NumEl);
373 VectorType(const VectorType &) = delete;
374 VectorType &operator=(const VectorType &) = delete;
377 static VectorType *get(Type *ElementType, unsigned NumElements);
382 static VectorType *getInteger(VectorType *VTy) { in getInteger()
386 return VectorType::get(EltTy, VTy->getNumElements()); in getInteger()
391 static VectorType *getExtendedElementVectorType(VectorType *VTy) { in getExtendedElementVectorType()
394 return VectorType::get(EltTy, VTy->getNumElements()); in getExtendedElementVectorType()
399 static VectorType *getTruncatedElementVectorType(VectorType *VTy) { in getTruncatedElementVectorType()
[all …]
/third_party/vk-gl-cts/external/vulkancts/modules/vulkan/ray_tracing/
DvktRayTracingDataSpillTests.cpp97 enum class VectorType enum
131 size_t getEffectiveVectorLength (VectorType vectorType) in getEffectiveVectorLength()
133 return ((vectorType == VectorType::V3) ? static_cast<size_t>(4) : static_cast<size_t>(vectorType)); in getEffectiveVectorLength()
137 VkDeviceSize getElementSize(DataType dataType, VectorType vectorType) in getElementSize()
245 std::pair<std::string, std::string> getGLSLInputValDecl (DataType dataType, VectorType vectorType) in getGLSLInputValDecl()
247 using TypePair = std::pair<DataType, VectorType>; in getGLSLInputValDecl()
258 std::make_pair(std::make_pair(DataType::INT32, VectorType::SCALAR), "int32_t"), in getGLSLInputValDecl()
259 std::make_pair(std::make_pair(DataType::INT32, VectorType::V2), "i32vec2"), in getGLSLInputValDecl()
260 std::make_pair(std::make_pair(DataType::INT32, VectorType::V3), "i32vec3"), in getGLSLInputValDecl()
261 std::make_pair(std::make_pair(DataType::INT32, VectorType::V4), "i32vec4"), in getGLSLInputValDecl()
[all …]
/third_party/skia/third_party/externals/swiftshader/third_party/subzero/src/
DIceTypeConverter.cpp36 addLLVMType(IceType_v4i1, llvm::VectorType::get(Type_i1, 4)); in TypeConverter()
37 addLLVMType(IceType_v8i1, llvm::VectorType::get(Type_i1, 8)); in TypeConverter()
38 addLLVMType(IceType_v16i1, llvm::VectorType::get(Type_i1, 16)); in TypeConverter()
39 addLLVMType(IceType_v16i8, llvm::VectorType::get(Type_i8, 16)); in TypeConverter()
40 addLLVMType(IceType_v8i16, llvm::VectorType::get(Type_i16, 8)); in TypeConverter()
41 addLLVMType(IceType_v4i32, llvm::VectorType::get(Type_i32, 4)); in TypeConverter()
42 addLLVMType(IceType_v4f32, llvm::VectorType::get(Type_f32, 4)); in TypeConverter()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/include/llvm/ADT/
DMapVector.h36 typename VectorType = std::vector<std::pair<KeyT, ValueT>>>
39 VectorType Vector;
46 using value_type = typename VectorType::value_type;
47 using size_type = typename VectorType::size_type;
49 using iterator = typename VectorType::iterator;
50 using const_iterator = typename VectorType::const_iterator;
51 using reverse_iterator = typename VectorType::reverse_iterator;
52 using const_reverse_iterator = typename VectorType::const_reverse_iterator;
55 VectorType takeVector() { in takeVector()
173 typename VectorType::iterator erase(typename VectorType::iterator Iterator) { in erase()
[all …]
DUniqueVector.h26 using VectorType = typename std::vector<T>;
27 using iterator = typename VectorType::iterator;
28 using const_iterator = typename VectorType::const_iterator;
35 VectorType Vector;
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/IR/
DFunction.cpp634 } else if (VectorType* VTy = dyn_cast<VectorType>(Ty)) { in getMangledTypeStr()
986 return VectorType::get(DecodeFixedType(Infos, Tys, Context),D.Vector_Width); in DecodeFixedType()
1000 if (VectorType *VTy = dyn_cast<VectorType>(Ty)) in DecodeFixedType()
1001 return VectorType::getExtendedElementVectorType(VTy); in DecodeFixedType()
1007 if (VectorType *VTy = dyn_cast<VectorType>(Ty)) in DecodeFixedType()
1008 return VectorType::getTruncatedElementVectorType(VTy); in DecodeFixedType()
1017 VectorType *VTy = dyn_cast<VectorType>(Ty); in DecodeFixedType()
1020 return VectorType::getSubdividedVectorType(VTy, SubDivs); in DecodeFixedType()
1023 return VectorType::getHalfElementsVectorType(cast<VectorType>( in DecodeFixedType()
1028 if (auto *VTy = dyn_cast<VectorType>(Ty)) in DecodeFixedType()
[all …]
DType.cpp73 if (auto *thisPTy = dyn_cast<VectorType>(this)) { in canLosslesslyBitCastTo()
74 if (auto *thatPTy = dyn_cast<VectorType>(Ty)) in canLosslesslyBitCastTo()
82 if (auto *thatPTy = dyn_cast<VectorType>(Ty)) in canLosslesslyBitCastTo()
127 const VectorType *VTy = cast<VectorType>(this); in getPrimitiveSizeInBits()
139 if (auto *VTy = dyn_cast<VectorType>(this)) in getFPMantissaWidth()
155 if (auto *VTy = dyn_cast<VectorType>(this)) in isSizedDerivedType()
512 if (auto *VTy = dyn_cast<VectorType>(ElemTy)) in isValidElementType()
600 if (auto *VTy = dyn_cast<VectorType>(ElemTy)) in isValidElementType()
611 VectorType::VectorType(Type *ElType, ElementCount EC) in VectorType() function in VectorType
614 VectorType *VectorType::get(Type *ElementType, ElementCount EC) { in get()
[all …]
DConstants.cpp366 if (VectorType *VTy = dyn_cast<VectorType>(Ty)) in getIntegerValue()
383 VectorType *VTy = cast<VectorType>(Ty); in getAllOnesValue()
677 if (auto *VTy = dyn_cast<VectorType>(Ty)) in getTrue()
685 if (auto *VTy = dyn_cast<VectorType>(Ty)) in getFalse()
708 if (VectorType *VTy = dyn_cast<VectorType>(Ty)) in get()
732 if (VectorType *VTy = dyn_cast<VectorType>(Ty)) in get()
777 if (VectorType *VTy = dyn_cast<VectorType>(Ty)) in get()
789 if (auto *VTy = dyn_cast<VectorType>(Ty)) in get()
802 if (VectorType *VTy = dyn_cast<VectorType>(Ty)) in get()
813 if (VectorType *VTy = dyn_cast<VectorType>(Ty)) in getNaN()
[all …]
DPass.cpp234 using VectorType = AnalysisUsage::VectorType; typedef
236 VectorType &CFGOnlyList;
238 GetCFGOnlyPasses(VectorType &L) : CFGOnlyList(L) {} in GetCFGOnlyPasses()
DInstructions.cpp86 if (VectorType *VT = dyn_cast<VectorType>(Op0->getType())) { in areInvalidOperands()
90 VectorType *ET = dyn_cast<VectorType>(Op1->getType()); in areInvalidOperands()
1699 : Instruction(cast<VectorType>(Val->getType())->getElementType(), in ExtractElementInst()
1713 : Instruction(cast<VectorType>(Val->getType())->getElementType(), in ExtractElementInst()
1769 if (Elt->getType() != cast<VectorType>(Vec->getType())->getElementType()) in isValidOperands()
1784 : Instruction(VectorType::get(cast<VectorType>(V1->getType())->getElementType(), in ShuffleVectorInst()
1785 cast<VectorType>(Mask->getType())->getElementCount()), in ShuffleVectorInst()
1801 : Instruction(VectorType::get(cast<VectorType>(V1->getType())->getElementType(), in ShuffleVectorInst()
1802 cast<VectorType>(Mask->getType())->getElementCount()), in ShuffleVectorInst()
1842 auto *MaskTy = dyn_cast<VectorType>(Mask->getType()); in isValidOperands()
[all …]
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/Scalar/
DScalarizer.cpp164 VectorType *VecTy = nullptr;
441 Layout.VecTy = dyn_cast<VectorType>(Ty); in getVectorLayout()
462 VectorType *VT = dyn_cast<VectorType>(I.getType()); in splitUnary()
482 VectorType *VT = dyn_cast<VectorType>(I.getType()); in splitBinary()
508 VectorType *Ty) { in getScalarIntrinsicDeclaration()
515 VectorType *VT = dyn_cast<VectorType>(CI.getType()); in splitCall()
573 VectorType *VT = dyn_cast<VectorType>(SI.getType()); in visitSelectInst()
619 VectorType *VT = dyn_cast<VectorType>(GEPI.getType()); in visitGetElementPtrInst()
665 VectorType *VT = dyn_cast<VectorType>(CI.getDestTy()); in visitCastInst()
683 VectorType *DstVT = dyn_cast<VectorType>(BCI.getDestTy()); in visitBitCastInst()
[all …]
DLowerMatrixIntrinsics.cpp106 Type *ColumnType = VectorType::get(EltType, NumRows); in computeColumnAddr()
155 return cast<VectorType>(Columns[0]->getType())->getNumElements(); in getNumRows()
227 VectorType *VType = dyn_cast<VectorType>(MatrixVal->getType()); in getMatrix()
563 auto VType = cast<VectorType>(Inst->getType()); in LowerLoad()
591 auto VType = cast<VectorType>(Matrix->getType()); in LowerStore()
631 cast<VectorType>(Block->getType())->getNumElements(); in insertVector()
632 unsigned NumElts = cast<VectorType>(Col->getType())->getNumElements(); in insertVector()
647 unsigned VecNumElts = cast<VectorType>(Col->getType())->getNumElements(); in insertVector()
705 auto *EltType = cast<VectorType>(MatMul->getType())->getElementType(); in LowerMultiply()
722 Result.addColumn(UndefValue::get(VectorType::get(EltType, R))); in LowerMultiply()
[all …]
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/include/llvm/
DPassAnalysisSupport.h44 using VectorType = SmallVectorImpl<AnalysisID>;
134 const VectorType &getRequiredSet() const { return Required; } in getRequiredSet()
135 const VectorType &getRequiredTransitiveSet() const { in getRequiredTransitiveSet()
138 const VectorType &getPreservedSet() const { return Preserved; } in getPreservedSet()
139 const VectorType &getUsedSet() const { return Used; } in getUsedSet()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Target/ARM/
DMVETailPredication.cpp89 Value *ComputeElements(Value *TripCount, VectorType *VecTy);
98 VectorType *VecTy,
284 unsigned Lanes = cast<VectorType>(Insert->getType())->getNumElements(); in isTailPredicate()
293 static VectorType* getVectorType(IntrinsicInst *I) { in getVectorType()
296 return cast<VectorType>(PtrTy->getElementType()); in getVectorType()
306 VectorType *VecTy = getVectorType(cast<IntrinsicInst>(&I)); in IsPredicatedVectorLoop()
317 if (isa<VectorType>(U->getType())) in IsPredicatedVectorLoop()
328 VectorType *VecTy) { in ComputeElements()
462 VectorType *VecTy, Value *NumElements) { in InsertVCTPIntrinsic()
524 VectorType *VecTy = getVectorType(I); in TryConvert()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/Vectorize/
DLoadStoreVectorizer.cpp759 if (!VectorType::isValidElementType(Ty->getScalarType())) in collectInstructions()
780 VectorType *VecTy = dyn_cast<VectorType>(Ty); in collectInstructions()
788 if (isa<VectorType>(Ty) && !llvm::all_of(LI->users(), [](const User *U) { in collectInstructions()
806 if (!VectorType::isValidElementType(Ty->getScalarType())) in collectInstructions()
827 VectorType *VecTy = dyn_cast<VectorType>(Ty); in collectInstructions()
834 if (isa<VectorType>(Ty) && !llvm::all_of(SI->users(), [](const User *U) { in collectInstructions()
992 VectorType *VecTy; in vectorizeStoreChain()
993 VectorType *VecStoreTy = dyn_cast<VectorType>(StoreTy); in vectorizeStoreChain()
995 VecTy = VectorType::get(StoreTy->getScalarType(), in vectorizeStoreChain()
998 VecTy = VectorType::get(StoreTy, Chain.size()); in vectorizeStoreChain()
[all …]
/third_party/flatbuffers/src/
Didl_gen_java.cpp156 case BASE_TYPE_VECTOR: return GenTypeGet(type.VectorType()); in GenTypePointer()
166 : (IsArray(type) ? GenTypeGet(type.VectorType()) in GenTypeGet()
181 if (vectorelem) return DestinationType(type.VectorType(), vectorelem); in DestinationType()
207 if (vectorelem) return DestinationMask(type.VectorType(), vectorelem); in DestinationMask()
216 return DestinationCast(type.VectorType()); in DestinationCast()
230 return SourceCast(type.VectorType(), castFromDest); in SourceCast()
365 case BASE_TYPE_VECTOR: return GenGetter(type.VectorType()); in GenGetter()
366 case BASE_TYPE_ARRAY: return GenGetter(type.VectorType()); in GenGetter()
425 const auto &type = array_field ? field_type.VectorType() in GenStructArgs()
470 IsArray(field_type) ? field_type.VectorType() : field_type; in GenStructBody()
[all …]
Didl_gen_rust.cpp103 switch (GetFullType(type.VectorType())) { in GetFullType()
135 switch (GetFullType(type.VectorType())) { in GetFullType()
594 return "[" + GetTypeGet(type.VectorType()) + "; " + in GetTypeGet()
1047 const auto typname = GetTypeBasic(type.VectorType()); in TableBuilderArgsDefnType()
1117 ty = "Vec<" + WrapInNameSpace(*type.VectorType().enum_def) + ">"; in ObjectFieldType()
1123 ty = "Vec<" + GetTypeBasic(type.VectorType()) + ">"; in ObjectFieldType()
1132 ty = NamespacedNativeName(*type.VectorType().struct_def); in ObjectFieldType()
1141 ty = "[" + WrapInNameSpace(*type.VectorType().enum_def) + "; " + in ObjectFieldType()
1146 ty = "[" + NamespacedNativeName(*type.VectorType().struct_def) + "; " + in ObjectFieldType()
1151 ty = "[" + GetTypeBasic(type.VectorType()) + "; " + in ObjectFieldType()
[all …]
Didl_gen_csharp.cpp153 case BASE_TYPE_VECTOR: return GenTypeGet(type.VectorType()); in GenTypePointer()
163 : (IsArray(type) ? GenTypeGet(type.VectorType()) in GenTypeGet()
180 return DestinationCast(type.VectorType()); in DestinationCast()
195 return SourceCast(type.VectorType()); in SourceCast()
330 case BASE_TYPE_VECTOR: return GenGetter(type.VectorType()); in GenGetter()
331 case BASE_TYPE_ARRAY: return GenGetter(type.VectorType()); in GenGetter()
391 const auto &type = array_field ? field_type.VectorType() : field_type; in GenStructArgs()
440 IsArray(field_type) ? field_type.VectorType() : field_type; in GenStructBody()
639 field.value.type.VectorType().base_type == BASE_TYPE_UNION)) { in GenStruct()
703 auto vectortype = field.value.type.VectorType(); in GenStruct()
[all …]
Didl_gen_python.cpp238 const auto vec_type = field.value.type.VectorType(); in GetArrayOfStruct()
340 auto vectortype = field.value.type.VectorType(); in GetMemberOfVectorOfStruct()
369 auto vectortype = field.value.type.VectorType(); in GetMemberOfVectorOfNonStruct()
394 auto vectortype = field.value.type.VectorType(); in GetVectorOfNonStructAsNumpy()
472 IsArray(field_type) ? field_type.VectorType() : field_type; in StructBuilderArgs()
513 IsArray(field_type) ? field_type.VectorType() : field_type; in StructBuilderBody()
613 auto vector_type = field.value.type.VectorType(); in BuildVectorOfTable()
651 auto vector_type = field.value.type.VectorType(); in BuildVectorOfTableFromBytes()
718 auto vectortype = field.value.type.VectorType(); in GenStructAccessor()
944 auto base_type = field.value.type.VectorType().base_type; in GenVectorInit()
[all …]
/third_party/skia/third_party/externals/swiftshader/third_party/subzero/crosstest/
Dinsertelement.h21 template <typename VectorType, typename ElementType>
23 setElement(VectorType &Value, size_t Index, ElementType Element) { in setElement()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Target/AMDGPU/
DAMDGPULowerKernelArguments.cpp123 VectorType *VT = dyn_cast<VectorType>(ArgTy); in runOnFunction()
127 VectorType *V4Ty = nullptr; in runOnFunction()
155 V4Ty = VectorType::get(VT->getVectorElementType(), 4); in runOnFunction()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Target/Hexagon/
DHexagonTargetTransformInfo.cpp48 if (cast<VectorType>(VecTy)->isScalable()) in isTypeForHVX()
51 if (!cast<VectorType>(VecTy)->getElementType()->isIntegerTy()) in isTypeForHVX()
163 VectorType *VecTy = cast<VectorType>(Src); in getMemoryOpCost()
268 Type *ElemTy = Val->isVectorTy() ? cast<VectorType>(Val)->getElementType() in getVectorInstrCost()

1234567