[all-commits] [llvm/llvm-project] 486a2c: Add tensor.bitcast op to Tensor dialect

Trevor Morris via All-commits all-commits at lists.llvm.org
Tue May 2 13:28:09 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 486a2ca57a27451177c389b485ecb56f88100649
      https://github.com/llvm/llvm-project/commit/486a2ca57a27451177c389b485ecb56f88100649
  Author: Trevor Morris <tmorris at nvidia.com>
  Date:   2023-05-02 (Tue, 02 May 2023)

  Changed paths:
    M mlir/include/mlir/Dialect/Tensor/IR/TensorOps.td
    M mlir/lib/Dialect/Tensor/IR/TensorOps.cpp
    M mlir/test/Dialect/Tensor/canonicalize.mlir

  Log Message:
  -----------
  Add tensor.bitcast op to Tensor dialect

Add tensor.bitcast operator to bitcast between two tensors of compatible shape
and same bit width. This can be use to reinterpret an unsigned integer as a
signed integer or vice versa.

Reviewed By: rsuderman

Differential Revision: https://reviews.llvm.org/D149608




More information about the All-commits mailing list