[all-commits] [llvm/llvm-project] 8fa2e6: [mlir][complex] complex.arg op to calculate the an...

Kai Sasaki via All-commits all-commits at lists.llvm.org
Mon Jun 27 09:35:25 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 8fa2e67979e56db3cc511ff1af920b4fa02fb473
      https://github.com/llvm/llvm-project/commit/8fa2e67979e56db3cc511ff1af920b4fa02fb473
  Author: Lewuathe <lewuathe at me.com>
  Date:   2022-06-27 (Mon, 27 Jun 2022)

  Changed paths:
    M mlir/include/mlir/Dialect/Complex/IR/ComplexOps.td
    M mlir/lib/Conversion/ComplexToStandard/ComplexToStandard.cpp
    M mlir/test/Conversion/ComplexToStandard/convert-to-standard.mlir
    M mlir/test/Integration/Dialect/Complex/CPU/correctness.mlir

  Log Message:
  -----------
  [mlir][complex] complex.arg op to calculate the angle of complex number

Add complex.arg op which calculates the angle of complex number. The op name is inspired by the function carg in libm.

See: https://sourceware.org/newlib/libm.html#carg

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




More information about the All-commits mailing list