Add support for statically shaped and typed tensors
authorGeoffrey Martin-Noble <gcmn@google.com>
Thu, 11 Apr 2019 00:16:19 +0000 (17:16 -0700)
committerMehdi Amini <joker.eph@gmail.com>
Thu, 11 Apr 2019 17:53:09 +0000 (10:53 -0700)
--

PiperOrigin-RevId: 242972594

mlir/include/mlir/IR/OpBase.td

index 52a4a1e..8fd2e00 100644 (file)
@@ -315,6 +315,10 @@ class TypedTensor<Type t>
                     "{0}.cast<TensorType>().getElementType()",
                     "tensor">;
 
+class TypedStaticShapeTensor<Type t>
+    : Type<AllOf<[ TypedTensor<t>.predicate, IsStaticShapeTensorTypePred ]>,
+           "statically shaped tensor">;
+
 def I1Tensor  : TypedTensor<I1>;
 def I8Tensor  : TypedTensor<I8>;
 def I16Tensor : TypedTensor<I16>;