Lines Matching refs:TypeVec
55 TypeVec.push_back(VT);
62 TypeVec.append(VTList.begin(), VTList.end());
69 array_pod_sort(TypeVec.begin(), TypeVec.end());
70 assert(std::unique(TypeVec.begin(), TypeVec.end()) == TypeVec.end());
87 TypeVec.push_back(LegalTypes[i]);
90 if (TypeVec.empty()) {
96 if (TypeVec.size() == 1) return true;
99 array_pod_sort(TypeVec.begin(), TypeVec.end());
100 TypeVec.erase(std::unique(TypeVec.begin(), TypeVec.end()), TypeVec.end());
108 for (unsigned i = 0, e = TypeVec.size(); i != e; ++i)
109 if (isInteger(TypeVec[i]))
117 for (unsigned i = 0, e = TypeVec.size(); i != e; ++i)
118 if (isFloatingPoint(TypeVec[i]))
126 for (unsigned i = 0, e = TypeVec.size(); i != e; ++i)
127 if (isVector(TypeVec[i]))
134 if (TypeVec.empty()) return "<empty>";
138 for (unsigned i = 0, e = TypeVec.size(); i != e; ++i) {
139 std::string VTName = llvm::getEnumName(TypeVec[i]);
147 if (TypeVec.size() == 1)
164 assert(TypeVec.size() >= 1 && InVT.TypeVec.size() >= 1 && "No unknowns");
167 switch (TypeVec[0]) {
178 TypeVec[0] = InVT.TypeVec[0];
191 if ((InVT.TypeVec[0] == MVT::iPTR || InVT.TypeVec[0] == MVT::iPTRAny) &&
197 if ((InVT.TypeVec[0] == MVT::iPTR || InVT.TypeVec[0] == MVT::iPTRAny) &&
198 TypeVec.size() != 1) {
199 TypeVec.resize(1);
200 TypeVec[0] = InVT.TypeVec[0];
212 for (unsigned i = 0; i != TypeVec.size(); ++i) {
214 for (unsigned j = 0, e = InVT.TypeVec.size(); j != e; ++j)
215 if (TypeVec[i] == InVT.TypeVec[j]) {
221 TypeVec.erase(TypeVec.begin()+i--);
226 if (!TypeVec.empty())
240 if (TypeVec.empty())
248 for (unsigned i = 0; i != TypeVec.size(); ++i)
249 if (!isInteger(TypeVec[i]))
250 TypeVec.erase(TypeVec.begin()+i--);
252 if (TypeVec.empty()) {
265 if (TypeVec.empty())
274 for (unsigned i = 0; i != TypeVec.size(); ++i)
275 if (!isFloatingPoint(TypeVec[i]))
276 TypeVec.erase(TypeVec.begin()+i--);
278 if (TypeVec.empty()) {
292 if (TypeVec.empty())
301 for (unsigned i = 0; i != TypeVec.size(); ++i)
302 if (!isScalar(TypeVec[i]))
303 TypeVec.erase(TypeVec.begin()+i--);
305 if (TypeVec.empty()) {
319 if (TypeVec.empty())
326 for (unsigned i = 0; i != TypeVec.size(); ++i)
327 if (!isVector(TypeVec[i])) {
328 TypeVec.erase(TypeVec.begin()+i--);
332 if (TypeVec.empty()) {
377 if (TypeVec.size() == 1 && Other.TypeVec.size() == 1) {
388 EVT Type(TypeVec[0]);
389 EVT OtherType(Other.TypeVec[0]);
420 for (unsigned i = 0, e = TypeVec.size(); i != e; ++i)
421 if (isInteger(TypeVec[i])) {
422 SmallestInt = TypeVec[i];
425 for (unsigned i = 1, e = TypeVec.size(); i != e; ++i)
426 if (isInteger(TypeVec[i]) && TypeVec[i] < SmallestInt)
427 SmallestInt = TypeVec[i];
430 for (unsigned i = 0, e = TypeVec.size(); i != e; ++i)
431 if (isFloatingPoint(TypeVec[i])) {
432 SmallestFP = TypeVec[i];
435 for (unsigned i = 1, e = TypeVec.size(); i != e; ++i)
436 if (isFloatingPoint(TypeVec[i]) && TypeVec[i] < SmallestFP)
437 SmallestFP = TypeVec[i];
442 Other.TypeVec.begin();
443 TVI != Other.TypeVec.end();
448 TVI = Other.TypeVec.erase(TVI);
457 TVI = Other.TypeVec.erase(TVI);
478 for (unsigned i = 0, e = Other.TypeVec.size(); i != e; ++i)
479 if (isInteger(Other.TypeVec[i])) {
480 LargestInt = Other.TypeVec[i];
483 for (unsigned i = 1, e = Other.TypeVec.size(); i != e; ++i)
484 if (isInteger(Other.TypeVec[i]) && Other.TypeVec[i] > LargestInt)
485 LargestInt = Other.TypeVec[i];
488 for (unsigned i = 0, e = Other.TypeVec.size(); i != e; ++i)
489 if (isFloatingPoint(Other.TypeVec[i])) {
490 LargestFP = Other.TypeVec[i];
493 for (unsigned i = 1, e = Other.TypeVec.size(); i != e; ++i)
494 if (isFloatingPoint(Other.TypeVec[i]) && Other.TypeVec[i] > LargestFP)
495 LargestFP = Other.TypeVec[i];
500 TypeVec.begin();
501 TVI != TypeVec.end();
506 TVI = TypeVec.erase(TVI);
515 TVI = TypeVec.erase(TVI);
566 for (unsigned i = 0; i != TypeVec.size(); ++i) {
567 assert(isVector(TypeVec[i]) && "EnforceVector didn't work");
568 if (EVT(TypeVec[i]).getVectorElementType().getSimpleVT().SimpleTy != VT) {
569 TypeVec.erase(TypeVec.begin()+i--);
574 if (TypeVec.empty()) { // FIXME: Really want an SMLoc here!