Allow linalg.view to change the underlying elemental type.
authorNicolas Vasilache <ntv@google.com>
Fri, 9 Aug 2019 14:28:51 +0000 (07:28 -0700)
committerA. Unique TensorFlower <gardener@tensorflow.org>
Fri, 9 Aug 2019 14:29:21 +0000 (07:29 -0700)
commit20f2d3b5981fd9a50c7e54a66fa88e6fac957a81
tree1aa5b29369b715cf46ebf8943d2361e2754cd2fb
parentd2aba89f2e88d529ec203a7d9121c8451893e66b
Allow linalg.view to change the underlying elemental type.

This CL adds the ability for linalg.view to act as a bitcast operation.
This will be used when promoting views into faster memory and casting to vector types.

In the process, linalg.view is moved to ODS.

PiperOrigin-RevId: 262556246
mlir/include/mlir/Linalg/IR/LinalgOps.h
mlir/include/mlir/Linalg/IR/LinalgOps.td
mlir/lib/Linalg/Analysis/DependenceAnalysis.cpp
mlir/lib/Linalg/IR/LinalgOps.cpp
mlir/lib/Linalg/IR/LinalgTypes.cpp
mlir/lib/Linalg/Transforms/LowerToLLVMDialect.cpp
mlir/test/Linalg/roundtrip.mlir