Teach TableGen about the new vector types.
authorChristopher Lamb <christopher.lamb@gmail.com>
Thu, 26 Jul 2007 06:41:18 +0000 (06:41 +0000)
committerChristopher Lamb <christopher.lamb@gmail.com>
Thu, 26 Jul 2007 06:41:18 +0000 (06:41 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@40513 91177308-0d34-0410-b5e6-96231b3b80d8

utils/TableGen/CodeGenTarget.cpp

index c2e736968ef0a6adcd9b7a37c3abac9215044fe8..7952ca79aa8a6dac3b8c6f2bbd7bdffe42a8b69c 100644 (file)
@@ -61,6 +61,8 @@ std::string llvm::getName(MVT::ValueType T) {
   case MVT::v2f32: return "MVT::v2f32";
   case MVT::v4f32: return "MVT::v4f32";
   case MVT::v2f64: return "MVT::v2f64";
+  case MVT::v3i32: return "MVT::v3i32";
+  case MVT::v3f32: return "MVT::v3f32";
   case MVT::iPTR:  return "TLI.getPointerTy()";
   default: assert(0 && "ILLEGAL VALUE TYPE!"); return "";
   }
@@ -93,6 +95,8 @@ std::string llvm::getEnumName(MVT::ValueType T) {
   case MVT::v2f32: return "MVT::v2f32";
   case MVT::v4f32: return "MVT::v4f32";
   case MVT::v2f64: return "MVT::v2f64";
+  case MVT::v3i32: return "MVT::v3i32";
+  case MVT::v3f32: return "MVT::v3f32";
   case MVT::iPTR:  return "TLI.getPointerTy()";
   default: assert(0 && "ILLEGAL VALUE TYPE!"); return "";
   }