@@ -60,13 +60,6 @@ class LLT {
6060 ElementCount::getFixed (0 ), SizeInBits, AddressSpace};
6161 }
6262
63- // / Get a low-level vector of some number of elements and element width.
64- static constexpr LLT vector (ElementCount EC, unsigned ScalarSizeInBits) {
65- assert (!EC.isScalar () && " invalid number of vector elements" );
66- return LLT{/* isPointer=*/ false , /* isVector=*/ true , /* isScalar=*/ false ,
67- EC, ScalarSizeInBits, /* AddressSpace=*/ 0 };
68- }
69-
7063 // / Get a low-level vector of some number of elements and element type.
7164 static constexpr LLT vector (ElementCount EC, LLT ScalarTy) {
7265 assert (!EC.isScalar () && " invalid number of vector elements" );
@@ -95,26 +88,12 @@ class LLT {
9588 return scalar (64 );
9689 }
9790
98- // / Get a low-level fixed-width vector of some number of elements and element
99- // / width.
100- static constexpr LLT fixed_vector (unsigned NumElements,
101- unsigned ScalarSizeInBits) {
102- return vector (ElementCount::getFixed (NumElements), ScalarSizeInBits);
103- }
104-
10591 // / Get a low-level fixed-width vector of some number of elements and element
10692 // / type.
10793 static constexpr LLT fixed_vector (unsigned NumElements, LLT ScalarTy) {
10894 return vector (ElementCount::getFixed (NumElements), ScalarTy);
10995 }
11096
111- // / Get a low-level scalable vector of some number of elements and element
112- // / width.
113- static constexpr LLT scalable_vector (unsigned MinNumElements,
114- unsigned ScalarSizeInBits) {
115- return vector (ElementCount::getScalable (MinNumElements), ScalarSizeInBits);
116- }
117-
11897 // / Get a low-level scalable vector of some number of elements and element
11998 // / type.
12099 static constexpr LLT scalable_vector (unsigned MinNumElements, LLT ScalarTy) {
@@ -125,12 +104,6 @@ class LLT {
125104 return EC.isScalar () ? ScalarTy : LLT::vector (EC, ScalarTy);
126105 }
127106
128- static constexpr LLT scalarOrVector (ElementCount EC, uint64_t ScalarSize) {
129- assert (ScalarSize <= std::numeric_limits<unsigned >::max () &&
130- " Not enough bits in LLT to represent size" );
131- return scalarOrVector (EC, LLT::scalar (static_cast <unsigned >(ScalarSize)));
132- }
133-
134107 explicit constexpr LLT (bool isPointer, bool isVector, bool isScalar,
135108 ElementCount EC, uint64_t SizeInBits,
136109 unsigned AddressSpace)
@@ -215,16 +188,6 @@ class LLT {
215188 return isVector () ? LLT::vector (getElementCount (), NewEltTy) : NewEltTy;
216189 }
217190
218- // / If this type is a vector, return a vector with the same number of elements
219- // / but the new element size. Otherwise, return the new element type. Invalid
220- // / for pointer types. For pointer types, use changeElementType.
221- constexpr LLT changeElementSize (unsigned NewEltSize) const {
222- assert (!isPointerOrPointerVector () &&
223- " invalid to directly change element size for pointers" );
224- return isVector () ? LLT::vector (getElementCount (), NewEltSize)
225- : LLT::scalar (NewEltSize);
226- }
227-
228191 // / Return a vector or scalar with the same element type and the new element
229192 // / count.
230193 constexpr LLT changeElementCount (ElementCount EC) const {
0 commit comments