[MLIR][std] Introduce bitcast operation
authorGeoffrey Martin-Noble <gcmn@google.com>
Thu, 5 Aug 2021 22:45:35 +0000 (15:45 -0700)
committerGeoffrey Martin-Noble <gcmn@google.com>
Fri, 6 Aug 2021 15:47:51 +0000 (08:47 -0700)
commitca6baf1e1da2ef1dcfcae837242ef0024a75f400
treec98d9ec52f6d77d002883168284b4d4ed99d2f91
parent276be84d0abc1a730df956417a89f35b75afd59b
[MLIR][std] Introduce bitcast operation

This patch introduces a bitcast operation to the standard dialect.
RFC: https://llvm.discourse.group/t/rfc-introduce-a-bitcast-op/3774

Reviewed By: silvas

Differential Revision: https://reviews.llvm.org/D105376
mlir/include/mlir/Dialect/StandardOps/IR/Ops.td
mlir/lib/Dialect/StandardOps/IR/Ops.cpp
mlir/test/Dialect/Standard/canonicalize.mlir
mlir/test/Dialect/Standard/invalid.mlir
mlir/test/Dialect/Standard/ops.mlir