[all-commits] [llvm/llvm-project] 84fe39: [mlir][emitc] Add a cast op

Marius Brehler via All-commits all-commits at lists.llvm.org
Thu Apr 28 08:51:46 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 84fe39a45b7340d468378f58836c8559fda3959b
      https://github.com/llvm/llvm-project/commit/84fe39a45b7340d468378f58836c8559fda3959b
  Author: Marius Brehler <marius.brehler at iml.fraunhofer.de>
  Date:   2022-04-28 (Thu, 28 Apr 2022)

  Changed paths:
    M mlir/include/mlir/Dialect/EmitC/IR/EmitC.td
    M mlir/lib/Dialect/EmitC/IR/CMakeLists.txt
    M mlir/lib/Dialect/EmitC/IR/EmitC.cpp
    M mlir/lib/Target/Cpp/TranslateToCpp.cpp
    M mlir/test/Dialect/EmitC/invalid_ops.mlir
    M mlir/test/Dialect/EmitC/ops.mlir
    A mlir/test/Target/Cpp/cast.mlir

  Log Message:
  -----------
  [mlir][emitc] Add a cast op

This adds a cast operation that allows to perform an explicit type
conversion. The cast op is emitted as a C-style cast. It can be applied
to integer, float, index and EmitC types.

Reviewed By: jpienaar

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




More information about the All-commits mailing list