diff options
| author | Nicolas Vasilache <ntv@google.com> | 2019-11-13 12:09:40 -0800 |
|---|---|---|
| committer | A. Unique TensorFlower <gardener@tensorflow.org> | 2019-11-13 12:10:09 -0800 |
| commit | 0bd6390b541e8a95ee4d2fc8abcdcaf1d7c580cb (patch) | |
| tree | d0a77f2a05fdc0c1cc11f88161120a6e10f7474e /mlir/lib/IR | |
| parent | 40f0c76ee27f4dee3952c8b76678cd10122ebc1b (diff) | |
| download | bcm5719-llvm-0bd6390b541e8a95ee4d2fc8abcdcaf1d7c580cb.tar.gz bcm5719-llvm-0bd6390b541e8a95ee4d2fc8abcdcaf1d7c580cb.zip | |
Deprecate linalg.subview in favor of std.subview
This CL uses the now standard std.subview in linalg.
Two shortcuts are currently taken to allow this port:
1. the type resulting from a view is currently degraded to fully dynamic to pass the SubViewOp verifier.
2. indexing into SubViewOp may access out of bounds since lowering to LLVM does not currently enforce it by construction.
These will be fixed in subsequent commits after discussions.
PiperOrigin-RevId: 280250129
Diffstat (limited to 'mlir/lib/IR')
| -rw-r--r-- | mlir/lib/IR/StandardTypes.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/mlir/lib/IR/StandardTypes.cpp b/mlir/lib/IR/StandardTypes.cpp index 54f39a39ce7..3f3677cc05d 100644 --- a/mlir/lib/IR/StandardTypes.cpp +++ b/mlir/lib/IR/StandardTypes.cpp @@ -123,6 +123,8 @@ unsigned Type::getIntOrFloatBitWidth() { //===----------------------------------------------------------------------===// // ShapedType //===----------------------------------------------------------------------===// +constexpr int64_t ShapedType::kDynamicSize; +constexpr int64_t ShapedType::kDynamicStrideOrOffset; Type ShapedType::getElementType() const { return static_cast<ImplType *>(impl)->elementType; |

