Add tensor type.

PiperOrigin-RevId: 201830793
diff --git a/lib/Parser/Parser.cpp b/lib/Parser/Parser.cpp
index 11d289f..d5cc707 100644
--- a/lib/Parser/Parser.cpp
+++ b/lib/Parser/Parser.cpp
@@ -345,8 +345,9 @@
   if (!consumeIf(Token::greater))
     return (emitError("expected '>' in tensor type"), nullptr);
 
-  // FIXME: Add an IR representation for tensor types.
-  return Type::getI1(context);
+  if (isUnranked)
+    return UnrankedTensorType::get(elementType);
+  return RankedTensorType::get(dimensions, elementType);
 }
 
 /// Parse a memref type.
@@ -527,7 +528,7 @@
     return block;
   }
 private:
-  CFGFunction *function;  
+  CFGFunction *function;
   llvm::StringMap<BasicBlock*> blocksByName;
 };
 } // end anonymous namespace