[mlir][vector] Add vector.bitcast operation
authorThomas Raoux <thomasraoux@google.com>
Wed, 26 Aug 2020 21:13:52 +0000 (14:13 -0700)
committerThomas Raoux <thomasraoux@google.com>
Wed, 26 Aug 2020 21:13:52 +0000 (14:13 -0700)
commit5fbfe2ec4f8baf6a4729f9dc2e4fe16f269921eb
tree4ebb29595c6466df80cf5bcf971c47a8e5c83a03
parent5d989fb37d7cfb4f7766a45d4efc82b5add3811f
[mlir][vector] Add vector.bitcast operation

Based on the RFC discussed here:
https://llvm.discourse.group/t/rfc-vector-standard-add-bitcast-operation/1628/

Adding a vector.bitcast operation that allows casting to a vector of different
element type. The most minor dimension bitwidth must stay unchanged.

Differential Revision: https://reviews.llvm.org/D86580
mlir/include/mlir/Dialect/Vector/VectorOps.td
mlir/lib/Dialect/Vector/VectorOps.cpp
mlir/test/Dialect/Vector/canonicalize.mlir
mlir/test/Dialect/Vector/invalid.mlir
mlir/test/Dialect/Vector/ops.mlir