[Linalg] Add a view type with base_view op
authorNicolas Vasilache <ntv@google.com>
Fri, 19 Apr 2019 16:56:11 +0000 (09:56 -0700)
committerMehdi Amini <joker.eph@gmail.com>
Wed, 24 Apr 2019 05:01:02 +0000 (22:01 -0700)
commit1d5dc840e7678af1f64b772f4d838e44fa10bef7
tree2273069924cf3d4be25ec30b31810d380baca15f
parente8d551e2bda03928307460cb0ff151b9b5b312a0
[Linalg] Add a view type with base_view op

    This CL adds a linalg.view<?x?xf32> type and base_view op with the proper roundtripping test. The parser will be improved in a subsequent CL once portions of the mlir::Parser are exposed.

    For now this only supports dynamic views, static views will be introduced at a later time when they are needed.

--

PiperOrigin-RevId: 244374180
mlir/include/mlir/Linalg/LinalgOps.h
mlir/include/mlir/Linalg/LinalgTypes.h
mlir/lib/Linalg/LinalgOps.cpp
mlir/lib/Linalg/LinalgTypes.cpp
mlir/test/Linalg/roundtrip.mlir