Home
last modified time | relevance | path

Searched refs:VectorType (Results 1 - 25 of 135) sorted by relevance

123456

/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/CodeGen/
H A 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 in getTypeForEVT()
[all...]
H A 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>(C in scalarizeMaskedExpandLoad()
[all...]
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/include/llvm/IR/
H A DDerivedTypes.h198 /// Common super class of ArrayType, StructType and VectorType.
432 class VectorType : public SequentialType { class
433 /// A fully specified VectorType is of the form <vscale x n x Ty>. 'n' is the
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;
458 /// This static method is the primary way to construct an VectorType
[all...]
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-subzero/include/llvm/IR/
H A DDerivedTypes.h159 /// Common super class of ArrayType, StructType and VectorType.
369 class VectorType : public SequentialType { class
370 VectorType(Type *ElType, unsigned NumEl);
373 VectorType(const VectorType &) = delete;
374 VectorType &operator=(const VectorType &) = delete;
376 /// This static method is the primary way to construct an VectorType.
377 static VectorType *get(Type *ElementType, unsigned NumElements);
379 /// This static method gets a VectorType wit
[all...]
/third_party/vk-gl-cts/external/vulkancts/modules/vulkan/ray_tracing/
H A DvktRayTracingDataSpillTests.cpp97 enum class VectorType class
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 in getGLSLInputValDecl()
[all...]
/third_party/vk-gl-cts/external/vulkancts/modules_no_buildgn/vulkan/ray_tracing/
H A DvktRayTracingDataSpillTests.cpp97 enum class VectorType class
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 in getGLSLInputValDecl()
[all...]
/third_party/skia/third_party/externals/swiftshader/third_party/subzero/src/
H A 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/
H A 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
[all...]
H A 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/
H A 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 *VT in DecodeFixedType()
[all...]
H A 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()
608 // VectorType Implementatio
611 VectorType::VectorType(Type *ElType, ElementCount EC) VectorType() function in VectorType
[all...]
H A 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>(T in get()
[all...]
H A DPass.cpp234 using VectorType = AnalysisUsage::VectorType;
236 VectorType &CFGOnlyList;
238 GetCFGOnlyPasses(VectorType &L) : CFGOnlyList(L) {} in GetCFGOnlyPasses()
H A DAutoUpgrade.cpp45 if (Arg0Type != VectorType::get(Type::getFloatTy(F->getContext()), 4)) in UpgradePTESTIntrinsic()
588 VectorType *Ty = dyn_cast<VectorType>(F->getReturnType()); in UpgradeIntrinsicFunction1()
898 Type *VecTy = VectorType::get(Builder.getInt8Ty(), NumElts); in UpgradeX86PSLLDQIntrinsics()
932 Type *VecTy = VectorType::get(Builder.getInt8Ty(), NumElts); in UpgradeX86PSRLDQIntrinsics()
960 llvm::VectorType *MaskTy = llvm::VectorType::get(Builder.getInt1Ty(), in getX86MaskVec()
996 llvm::VectorType *MaskTy = in EmitX86ScalarSelect()
997 llvm::VectorType::get(Builder.getInt1Ty(), in EmitX86ScalarSelect()
1241 Aligned ? cast<VectorType>(Dat in UpgradeMaskedStore()
[all...]
H A 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>(Mas in ShuffleVectorInst()
[all...]
H A DConstantFold.cpp45 static Constant *BitCastConstantVector(Constant *CV, VectorType *DstTy) { in BitCastConstantVector()
139 if (VectorType *DestPTy = dyn_cast<VectorType>(DestTy)) { in FoldBitCast()
140 if (VectorType *SrcTy = dyn_cast<VectorType>(V->getType())) { in FoldBitCast()
576 VectorType *DestVecTy = cast<VectorType>(DestTy); in ConstantFoldCastInstruction()
838 VectorType *ValTy = cast<VectorType>(Val->getType()); in ConstantFoldInsertElementInstruction()
871 return UndefValue::get(VectorType in ConstantFoldShuffleVectorInstruction()
[all...]
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/Scalar/
H A 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 *V in visitSelectInst()
[all...]
H A 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>(MatMu in LowerMultiply()
[all...]
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/include/llvm/
H A 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/
H A 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 *VecT in TryConvert()
[all...]
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/Vectorize/
H A 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 *VecStoreT in vectorizeStoreChain()
[all...]
/third_party/skia/third_party/externals/swiftshader/third_party/subzero/crosstest/
H A 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/
H A 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/
H A 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()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/InstCombine/
H A DInstCombineCasts.cpp468 !isa<VectorType>(VecInput->getType())) in foldVecTruncToExtElt()
471 VectorType *VecType = cast<VectorType>(VecInput->getType()); in foldVecTruncToExtElt()
483 VecType = VectorType::get(DestType, NumVecElts); in foldVecTruncToExtElt()
497 assert((isa<VectorType>(Trunc.getSrcTy()) || in narrowRotate()
583 if (!isa<VectorType>(SrcTy) && !shouldChangeType(SrcTy, DestTy)) in narrowBinOp()
1503 return VectorType::get(MinType, NumElts); in shrinkFPConstantVector()
1792 Ty = VectorType::get(Ty, CI.getType()->getVectorNumElements()); in visitIntToPtr()
1842 PtrTy = VectorType::get(PtrTy, Ty->getVectorNumElements()); in visitPtrToInt()
1865 VectorType *DestT in optimizeVectorResizeWithIntegerBitCasts()
[all...]

Completed in 37 milliseconds

123456