[TableGen] Allow TokenTy in intrinsic signatures
[oota-llvm.git] / include / llvm / CodeGen / MachineValueType.h
index a728df3546778a8e1461df2e82a4e7a13e2486a3..4211aa7a369dffe30561aea637a24217fe041356 100644 (file)
@@ -128,6 +128,9 @@ class MVT {
       // This value must be a multiple of 32.
       MAX_ALLOWED_VALUETYPE = 64,
 
+      // Token - A value of type llvm::TokenTy
+      token          = 249,
+
       // Metadata - This is MDNode or MDString.
       Metadata       = 250,
 
@@ -390,6 +393,9 @@ class MVT {
       case vAny:
       case Any:
         llvm_unreachable("Value type is overloaded.");
+      case token:
+        llvm_unreachable("Token type is a sentinel that cannot be used "
+                         "in codegen and has no size");
       case Metadata:
         llvm_unreachable("Value type is metadata.");
       case i1  :  return 1;