[Linalg] Add a simple buffer type with alloc/dealloc ops
authorNicolas Vasilache <ntv@google.com>
Thu, 18 Apr 2019 20:56:18 +0000 (13:56 -0700)
committerMehdi Amini <joker.eph@gmail.com>
Wed, 24 Apr 2019 05:00:36 +0000 (22:00 -0700)
commit75be1fe82b124b2679ff4c34f16e79ea58ee2d01
tree9fcb8c783e7022a09cdc122e84e2ecbce90722c5
parent8370cc74921f6fc84f5aaaf3f91bdf12890ed1f9
[Linalg] Add a simple buffer type with alloc/dealloc ops

    This CL adds a linalg.buffer<f32> type and buffer_alloc / buffer_dealloc ops with the proper roundtripping test.

--

PiperOrigin-RevId: 244252306
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