[all-commits] [llvm/llvm-project] a2426e: [mlir][emitc] Add div, mul and rem operators

Marius Brehler via All-commits all-commits at lists.llvm.org
Tue Jul 11 23:44:46 PDT 2023

  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: a2426eb603afaf6c04ddd14921b474d2caffa12b
  Author: Marius Brehler <marius.brehler at iml.fraunhofer.de>
  Date:   2023-07-12 (Wed, 12 Jul 2023)

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

  Log Message:
  [mlir][emitc] Add div, mul and rem operators

This adds operations for binary multiplicative arithmetic operators to
EmitC. The input and output arguments for the remainder operator are
restricted to index (emitted as size_t), integers and the EmitC opaque
types (as the operator can be overloaded for a custom type). The
multiplication and division operator further support floating point

Reviewed By: jpienaar

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

More information about the All-commits mailing list