Home | History | Annotate | Download | only in Support

Lines Matching defs:isVector

45     return LLT{/*isPointer=*/false, /*isVector=*/false, /*NumElements=*/0,
52 return LLT{/*isPointer=*/true, /*isVector=*/false, /*NumElements=*/0,
61 return LLT{/*isPointer=*/false, /*isVector=*/true, NumElements,
68 assert(!ScalarTy.isVector() && "invalid vector element type");
69 return LLT{ScalarTy.isPointer(), /*isVector=*/true, NumElements,
74 explicit LLT(bool isPointer, bool isVector, uint16_t NumElements,
76 init(isPointer, isVector, NumElements, SizeInBits, AddressSpace);
78 explicit LLT() : IsPointer(false), IsVector(false), RawData(0) {}
84 bool isScalar() const { return isValid() && !IsPointer && !IsVector; }
86 bool isPointer() const { return isValid() && IsPointer && !IsVector; }
88 bool isVector() const { return isValid() && IsVector; }
93 assert(IsVector && "cannot get number of elements on scalar/aggregate");
109 if (!IsVector) {
125 if (!IsVector)
133 assert(isVector() && "cannot get element type of scalar/aggregate");
146 return LLT{/*isPointer=*/false, IsVector ? true : false,
147 IsVector ? getNumElements() : (uint16_t)0,
156 return LLT{/*isPointer=*/false, IsVector ? true : false,
157 IsVector ? getNumElements() : (uint16_t)0,
166 assert(isVector() && getNumElements() % 2 == 0 && "cannot half odd vector");
170 return LLT{/*isPointer=*/false, /*isVector=*/true,
180 return LLT{IsPointer ? true : false, /*isVector=*/true,
188 return IsPointer == RHS.IsPointer && IsVector == RHS.IsVector &&
199 /// isVector : 1
212 /// * Non-pointer scalar (isPointer == 0 && isVector == 0):
215 /// * Pointer (isPointer == 1 && isVector == 0):
221 /// * Vector-of-non-pointer (isPointer == 0 && isVector == 1):
227 /// * Vector-of-pointer (isPointer == 1 && isVector == 1):
239 uint64_t IsVector : 1;
257 void init(bool IsPointer, bool IsVector, uint16_t NumElements,
260 this->IsVector = IsVector;
261 if (!IsVector) {
294 Invalid.IsVector = true;
299 ((uint64_t)Ty.IsVector);