Home
last modified time | relevance | path

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

12345678910>>...18

/external/swiftshader/third_party/llvm-7.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()
221 case MVT::v1i1: return VectorType::get(Type::getInt1Ty(Context), 1); in getTypeForEVT()
222 case MVT::v2i1: return VectorType::get(Type::getInt1Ty(Context), 2); in getTypeForEVT()
223 case MVT::v4i1: return VectorType::get(Type::getInt1Ty(Context), 4); in getTypeForEVT()
224 case MVT::v8i1: return VectorType::get(Type::getInt1Ty(Context), 8); in getTypeForEVT()
225 case MVT::v16i1: return VectorType::get(Type::getInt1Ty(Context), 16); in getTypeForEVT()
226 case MVT::v32i1: return VectorType::get(Type::getInt1Ty(Context), 32); in getTypeForEVT()
[all …]
/external/llvm/lib/IR/
DValueTypes.cpp43 ResultVT.LLVMTy = VectorType::get(VT.getTypeForEVT(Context), NumElements); in getExtendedVectorVT()
102 return EVT::getEVT(cast<VectorType>(LLVMTy)->getElementType()); in getExtendedVectorElementType()
107 return cast<VectorType>(LLVMTy)->getNumElements(); in getExtendedVectorNumElements()
114 if (VectorType *VTy = dyn_cast<VectorType>(LLVMTy)) in getExtendedSizeInBits()
223 case MVT::v2i1: return VectorType::get(Type::getInt1Ty(Context), 2); in getTypeForEVT()
224 case MVT::v4i1: return VectorType::get(Type::getInt1Ty(Context), 4); in getTypeForEVT()
225 case MVT::v8i1: return VectorType::get(Type::getInt1Ty(Context), 8); in getTypeForEVT()
226 case MVT::v16i1: return VectorType::get(Type::getInt1Ty(Context), 16); in getTypeForEVT()
227 case MVT::v32i1: return VectorType::get(Type::getInt1Ty(Context), 32); in getTypeForEVT()
228 case MVT::v64i1: return VectorType::get(Type::getInt1Ty(Context), 64); in getTypeForEVT()
[all …]
DFunction.cpp524 } else if (isa<VectorType>(Ty)) in getMangledTypeStr()
801 return VectorType::get(DecodeFixedType(Infos, Tys, Context),D.Vector_Width); in DecodeFixedType()
817 if (VectorType *VTy = dyn_cast<VectorType>(Ty)) in DecodeFixedType()
818 return VectorType::getExtendedElementVectorType(VTy); in DecodeFixedType()
824 if (VectorType *VTy = dyn_cast<VectorType>(Ty)) in DecodeFixedType()
825 return VectorType::getTruncatedElementVectorType(VTy); in DecodeFixedType()
832 return VectorType::getHalfElementsVectorType(cast<VectorType>( in DecodeFixedType()
837 if (VectorType *VTy = dyn_cast<VectorType>(Ty)) { in DecodeFixedType()
838 return VectorType::get(EltTy, VTy->getNumElements()); in DecodeFixedType()
848 VectorType *VTy = dyn_cast<VectorType>(Ty); in DecodeFixedType()
[all …]
/external/eigen/test/
Dmapped_matrix.cpp18 template<typename VectorType> void map_class_vector(const VectorType& m) in map_class_vector()
20 typedef typename VectorType::Index Index; in map_class_vector()
21 typedef typename VectorType::Scalar Scalar; in map_class_vector()
31 Map<VectorType, AlignedMax>(array1, size) = VectorType::Random(size); in map_class_vector()
32 Map<VectorType, AlignedMax>(array2, size) = Map<VectorType,AlignedMax>(array1, size); in map_class_vector()
33 Map<VectorType>(array3unaligned, size) = Map<VectorType>(array1, size); in map_class_vector()
34 Map<VectorType>(array4, size) = Map<VectorType,AlignedMax>(array1, size); in map_class_vector()
35 VectorType ma1 = Map<VectorType, AlignedMax>(array1, size); in map_class_vector()
36 VectorType ma2 = Map<VectorType, AlignedMax>(array2, size); in map_class_vector()
37 VectorType ma3 = Map<VectorType>(array3unaligned, size); in map_class_vector()
[all …]
DdenseLM.cpp25 typedef Matrix<Scalar,Dynamic,1> VectorType; typedef
30 VectorType model(const VectorType& uv, VectorType& x) in model()
32 VectorType y; // Should change to use expression template in model()
40 VectorBlock<const VectorType> u(uv, 0, half); in model()
41 VectorBlock<const VectorType> v(uv, half, half); in model()
50 void initPoints(VectorType& uv_ref, VectorType& x) in initPoints()
56 int operator()(const VectorType& uv, VectorType& fvec) in operator ()()
65 VectorBlock<const VectorType> u(uv, 0, half); in operator ()()
66 VectorBlock<const VectorType> v(uv, half, half); in operator ()()
78 int df(const VectorType& uv, JacobianType& fjac) in df()
[all …]
DsparseLM.cpp23 typedef Matrix<Scalar,Dynamic,1> VectorType; typedef
29 VectorType model(const VectorType& uv, VectorType& x) in model()
31 VectorType y; //Change this to use expression template in model()
39 VectorBlock<const VectorType> u(uv, 0, half); in model()
40 VectorBlock<const VectorType> v(uv, half, half); in model()
54 void initPoints(VectorType& uv_ref, VectorType& x) in initPoints()
59 int operator()(const VectorType& uv, VectorType& fvec) in operator ()()
66 VectorBlock<const VectorType> u(uv, 0, half); in operator ()()
67 VectorBlock<const VectorType> v(uv, half, half); in operator ()()
83 int df(const VectorType& uv, JacobianType& fjac) in df()
[all …]
Dnullary.cpp36 template<typename VectorType>
37 void check_extremity_accuracy(const VectorType &v, const typename VectorType::Scalar &low, const ty… in check_extremity_accuracy()
39 typedef typename VectorType::Scalar Scalar; in check_extremity_accuracy()
40 typedef typename VectorType::RealScalar RealScalar; in check_extremity_accuracy()
63 template<typename VectorType>
64 void testVectorType(const VectorType& base) in testVectorType()
66 typedef typename VectorType::Scalar Scalar; in testVectorType()
67 typedef typename VectorType::RealScalar RealScalar; in testVectorType()
85 VectorType m(base); in testVectorType()
90 VectorType n(size); in testVectorType()
[all …]
Dgeo_alignedbox.cpp30 typedef Matrix<Scalar, BoxType::AmbientDimAtCompileTime, 1> VectorType; in alignedbox() typedef
34 VectorType p0 = VectorType::Random(dim); in alignedbox()
35 VectorType p1 = VectorType::Random(dim); in alignedbox()
37 p1 = VectorType::Random(dim); } in alignedbox()
41 BoxType b1(VectorType::Random(dim),VectorType::Random(dim)); in alignedbox()
60 BoxType box1(VectorType::Random(dim)); in alignedbox()
61 box1.extend(VectorType::Random(dim)); in alignedbox()
62 BoxType box2(VectorType::Random(dim)); in alignedbox()
63 box2.extend(VectorType::Random(dim)); in alignedbox()
77 VectorType r = b0.sample(); in alignedbox()
[all …]
Dgeo_parametrizedline.cpp26 typedef Matrix<Scalar, LineType::AmbientDimAtCompileTime, 1> VectorType; in parametrizedline() typedef
29 VectorType p0 = VectorType::Random(dim); in parametrizedline()
30 VectorType p1 = VectorType::Random(dim); in parametrizedline()
32 VectorType d0 = VectorType::Random(dim).normalized(); in parametrizedline()
54 VectorType p2 = VectorType::Random(dim); in parametrizedline()
55 VectorType n2 = VectorType::Random(dim).normalized(); in parametrizedline()
58 VectorType pi = l0.pointAt(t); in parametrizedline()
Dconservative_resize.cpp63 typedef Matrix<Scalar, 1, Eigen::Dynamic> VectorType; in run_vector_tests() typedef
65 VectorType m, n; in run_vector_tests()
68 m = n = VectorType::Random(50); in run_vector_tests()
72 m = n = VectorType::Random(50); in run_vector_tests()
76 m = n = VectorType::Random(50); in run_vector_tests()
80 m = n = VectorType::Random(50); in run_vector_tests()
88 m = n = VectorType::Random(50); in run_vector_tests()
92 m = n = VectorType::Random(50); in run_vector_tests()
101 m = n = VectorType::Random(50); in run_vector_tests()
102 m.conservativeResizeLike(VectorType::Zero(size)); in run_vector_tests()
[all …]
/external/eigen/Eigen/src/Core/
DVectorBlock.h17 template<typename VectorType, int Size>
18 struct traits<VectorBlock<VectorType, Size> >
19 : public traits<Block<VectorType,
20 traits<VectorType>::Flags & RowMajorBit ? 1 : Size,
21 traits<VectorType>::Flags & RowMajorBit ? Size : 1> >
56 template<typename VectorType, int Size> class VectorBlock
57 : public Block<VectorType,
58 internal::traits<VectorType>::Flags & RowMajorBit ? 1 : Size,
59 internal::traits<VectorType>::Flags & RowMajorBit ? Size : 1>
61 typedef Block<VectorType,
[all …]
/external/swiftshader/third_party/LLVM/lib/VMCore/
DValueTypes.cpp38 ResultVT.LLVMTy = VectorType::get(VT.getTypeForEVT(Context), NumElements); in getExtendedVectorVT()
76 return EVT::getEVT(cast<VectorType>(LLVMTy)->getElementType()); in getExtendedVectorElementType()
81 return cast<VectorType>(LLVMTy)->getNumElements(); in getExtendedVectorNumElements()
88 if (VectorType *VTy = dyn_cast<VectorType>(LLVMTy)) in getExtendedSizeInBits()
167 case MVT::v2i8: return VectorType::get(Type::getInt8Ty(Context), 2); in getTypeForEVT()
168 case MVT::v4i8: return VectorType::get(Type::getInt8Ty(Context), 4); in getTypeForEVT()
169 case MVT::v8i8: return VectorType::get(Type::getInt8Ty(Context), 8); in getTypeForEVT()
170 case MVT::v16i8: return VectorType::get(Type::getInt8Ty(Context), 16); in getTypeForEVT()
171 case MVT::v32i8: return VectorType::get(Type::getInt8Ty(Context), 32); in getTypeForEVT()
172 case MVT::v2i16: return VectorType::get(Type::getInt16Ty(Context), 2); in getTypeForEVT()
[all …]
/external/eigen/unsupported/test/
DBVH.cpp27 typedef Matrix<double, Dim, 1> VectorType; typedef
30 Ball(const VectorType &c, double r) : center(c), radius(r) {} in Ball()
32 VectorType center;
44 typedef Matrix<double, Dim, 1> VectorType; typedef
49 BallPointStuff(const VectorType &inP) : p(inP), calls(0), count(0) {} in BallPointStuff()
69 …bool intersectVolumeObject(const BoxType &r, const VectorType &v) { ++calls; return r.contains(v);… in intersectVolumeObject()
70 bool intersectObjectObject(const BallType &b, const VectorType &v){ in intersectObjectObject()
83 …double minimumOnVolumeObject(const BoxType &r, const VectorType &v) { ++calls; return r.squaredExt… in minimumOnVolumeObject()
84 …double minimumOnObjectObject(const BallType &b, const VectorType &v){ ++calls; return SQR((std::ma… in minimumOnObjectObject()
86 VectorType p;
[all …]
/external/eigen/Eigen/src/Geometry/
DParametrizedLine.h41 typedef Matrix<Scalar,AmbientDimAtCompileTime,1,Options> VectorType; typedef
58 EIGEN_DEVICE_FUNC ParametrizedLine(const VectorType& origin, const VectorType& direction) in ParametrizedLine()
65 …EIGEN_DEVICE_FUNC static inline ParametrizedLine Through(const VectorType& p0, const VectorType& p… in Through()
73 EIGEN_DEVICE_FUNC const VectorType& origin() const { return m_origin; } in origin()
74 EIGEN_DEVICE_FUNC VectorType& origin() { return m_origin; } in origin()
76 EIGEN_DEVICE_FUNC const VectorType& direction() const { return m_direction; } in direction()
77 EIGEN_DEVICE_FUNC VectorType& direction() { return m_direction; } in direction()
82 EIGEN_DEVICE_FUNC RealScalar squaredDistance(const VectorType& p) const in squaredDistance()
84 VectorType diff = p - origin(); in squaredDistance()
90 …EIGEN_DEVICE_FUNC RealScalar distance(const VectorType& p) const { EIGEN_USING_STD_MATH(sqrt) retu… in distance()
[all …]
DHyperplane.h45 typedef Matrix<Scalar,AmbientDimAtCompileTime,1> VectorType; typedef
67 EIGEN_DEVICE_FUNC inline Hyperplane(const VectorType& n, const VectorType& e) in Hyperplane()
78 EIGEN_DEVICE_FUNC inline Hyperplane(const VectorType& n, const Scalar& d) in Hyperplane()
88 EIGEN_DEVICE_FUNC static inline Hyperplane Through(const VectorType& p0, const VectorType& p1) in Through()
99 …VICE_FUNC static inline Hyperplane Through(const VectorType& p0, const VectorType& p1, const Vecto… in Through()
101 EIGEN_STATIC_ASSERT_VECTOR_SPECIFIC_SIZE(VectorType, 3) in Through()
103 VectorType v0(p2 - p0), v1(p1 - p0); in Through()
143 …EIGEN_DEVICE_FUNC inline Scalar signedDistance(const VectorType& p) const { return normal().dot(p)… in signedDistance()
148 …EIGEN_DEVICE_FUNC inline Scalar absDistance(const VectorType& p) const { return numext::abs(signed… in absDistance()
152 …EIGEN_DEVICE_FUNC inline VectorType projection(const VectorType& p) const { return p - signedDista… in projection()
[all …]
DAlignedBox.h40 typedef Matrix<Scalar,AmbientDimAtCompileTime,1> VectorType; typedef
41 …typedef CwiseBinaryOp<internal::scalar_sum_op<Scalar>, const VectorType, const VectorType> VectorT…
106 EIGEN_DEVICE_FUNC inline const VectorType& (min)() const { return m_min; }
108 EIGEN_DEVICE_FUNC inline VectorType& (min)() { return m_min; }
110 EIGEN_DEVICE_FUNC inline const VectorType& (max)() const { return m_max; }
112 EIGEN_DEVICE_FUNC inline VectorType& (max)() { return m_max; }
123 …inaryOp< internal::scalar_difference_op<Scalar,Scalar>, const VectorType, const VectorType> sizes(… in sizes()
134 …inaryOp< internal::scalar_difference_op<Scalar,Scalar>, const VectorType, const VectorType> diagon… in diagonal()
146 EIGEN_DEVICE_FUNC inline VectorType corner(CornerType corner) const in corner()
150 VectorType res; in corner()
[all …]
/external/mesa3d/src/gallium/drivers/swr/rasterizer/jitter/
Dbuilder.cpp69 mSimdInt1Ty = VectorType::get(mInt1Ty, mVWidth); in Builder()
70 mSimdInt16Ty = VectorType::get(mInt16Ty, mVWidth); in Builder()
71 mSimdInt32Ty = VectorType::get(mInt32Ty, mVWidth); in Builder()
72 mSimdInt64Ty = VectorType::get(mInt64Ty, mVWidth); in Builder()
73 mSimdFP16Ty = VectorType::get(mFP16Ty, mVWidth); in Builder()
74 mSimdFP32Ty = VectorType::get(mFP32Ty, mVWidth); in Builder()
80 mSimd16Int1Ty = VectorType::get(mInt1Ty, mVWidth16); in Builder()
81 mSimd16Int16Ty = VectorType::get(mInt16Ty, mVWidth16); in Builder()
82 mSimd16Int32Ty = VectorType::get(mInt32Ty, mVWidth16); in Builder()
83 mSimd16Int64Ty = VectorType::get(mInt64Ty, mVWidth16); in Builder()
[all …]
/external/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 …]
/external/llvm/include/llvm/IR/
DDerivedTypes.h365 class VectorType : public SequentialType {
368 VectorType(const VectorType &) = delete;
369 const VectorType &operator=(const VectorType &) = delete;
370 VectorType(Type *ElType, unsigned NumEl);
374 static VectorType *get(Type *ElementType, unsigned NumElements);
379 static VectorType *getInteger(VectorType *VTy) { in getInteger()
383 return VectorType::get(EltTy, VTy->getNumElements()); in getInteger()
388 static VectorType *getExtendedElementVectorType(VectorType *VTy) { in getExtendedElementVectorType()
391 return VectorType::get(EltTy, VTy->getNumElements()); in getExtendedElementVectorType()
396 static VectorType *getTruncatedElementVectorType(VectorType *VTy) { in getTruncatedElementVectorType()
[all …]
/external/swiftshader/third_party/llvm-7.0/llvm/include/llvm/IR/
DDerivedTypes.h393 class VectorType : public SequentialType {
394 VectorType(Type *ElType, unsigned NumEl);
397 VectorType(const VectorType &) = delete;
398 VectorType &operator=(const VectorType &) = delete;
401 static VectorType *get(Type *ElementType, unsigned NumElements);
406 static VectorType *getInteger(VectorType *VTy) { in getInteger()
410 return VectorType::get(EltTy, VTy->getNumElements()); in getInteger()
415 static VectorType *getExtendedElementVectorType(VectorType *VTy) { in getExtendedElementVectorType()
418 return VectorType::get(EltTy, VTy->getNumElements()); in getExtendedElementVectorType()
423 static VectorType *getTruncatedElementVectorType(VectorType *VTy) { in getTruncatedElementVectorType()
[all …]
/external/swiftshader/third_party/LLVM/include/llvm/
DDerivedTypes.h359 class VectorType : public SequentialType {
362 VectorType(const VectorType &); // Do not implement
363 const VectorType &operator=(const VectorType &); // Do not implement
364 VectorType(Type *ElType, unsigned NumEl);
369 static VectorType *get(Type *ElementType, unsigned NumElements);
375 static VectorType *getInteger(VectorType *VTy) { in getInteger()
378 return VectorType::get(EltTy, VTy->getNumElements()); in getInteger()
385 static VectorType *getExtendedElementVectorType(VectorType *VTy) { in getExtendedElementVectorType()
388 return VectorType::get(EltTy, VTy->getNumElements()); in getExtendedElementVectorType()
395 static VectorType *getTruncatedElementVectorType(VectorType *VTy) { in getTruncatedElementVectorType()
[all …]
/external/swiftshader/third_party/llvm-7.0/llvm/include/llvm/ADT/
DMapVector.h37 typename VectorType = std::vector<std::pair<KeyT, ValueT>>>
40 VectorType Vector;
47 using value_type = typename VectorType::value_type;
48 using size_type = typename VectorType::size_type;
50 using iterator = typename VectorType::iterator;
51 using const_iterator = typename VectorType::const_iterator;
52 using reverse_iterator = typename VectorType::reverse_iterator;
53 using const_reverse_iterator = typename VectorType::const_reverse_iterator;
56 VectorType takeVector() { in takeVector()
174 typename VectorType::iterator erase(typename VectorType::iterator Iterator) { in erase()
[all …]
/external/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()
/external/eigen/unsupported/Eigen/src/IterativeSolvers/
DGMRES.h64 typedef Matrix < Scalar, Dynamic, 1 > VectorType; in gmres() typedef
74 VectorType p0 = rhs - mat*x; in gmres()
75 VectorType r0 = precond.solve(p0); in gmres()
88 VectorType w = VectorType::Zero(restart + 1); in gmres()
89 VectorType tau = VectorType::Zero(restart + 1); in gmres()
95 VectorType t(m), v(m), workspace(m), x_new(m); in gmres()
98 Ref<VectorType> H0_tail = H.col(0).tail(m - 1); in gmres()
107 v = VectorType::Unit(m, k - 1); in gmres()
130 Ref<VectorType> Hk_tail = H.col(k).tail(m - k - 1); in gmres()
166 Ref<VectorType> y = w.head(k); in gmres()
/external/llvm/include/llvm/ADT/
DMapVector.h31 typename VectorType = std::vector<std::pair<KeyT, ValueT> > >
33 typedef typename VectorType::size_type size_type;
36 VectorType Vector;
39 typedef typename VectorType::iterator iterator;
40 typedef typename VectorType::const_iterator const_iterator;
41 typedef typename VectorType::reverse_iterator reverse_iterator;
42 typedef typename VectorType::const_reverse_iterator const_reverse_iterator;
134 typename VectorType::iterator erase(typename VectorType::iterator Iterator) { in erase()
168 template <typename KeyT, typename ValueT, typename MapType, typename VectorType>
170 void MapVector<KeyT, ValueT, MapType, VectorType>::remove_if(Function Pred) { in remove_if()

12345678910>>...18