projects
/
platform
/
upstream
/
llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d468eac
)
Add support for statically shaped and typed tensors
author
Geoffrey Martin-Noble
<gcmn@google.com>
Thu, 11 Apr 2019 00:16:19 +0000
(17:16 -0700)
committer
Mehdi 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
patch
|
blob
|
history
diff --git
a/mlir/include/mlir/IR/OpBase.td
b/mlir/include/mlir/IR/OpBase.td
index
52a4a1e
..
8fd2e00
100644
(file)
--- a/
mlir/include/mlir/IR/OpBase.td
+++ b/
mlir/include/mlir/IR/OpBase.td
@@
-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>;