[all-commits] [llvm/llvm-project] 2c8d33: [flang] Enable target rewrite for int args/rets of...

Slava Zakharin via All-commits all-commits at lists.llvm.org
Tue Mar 7 19:10:47 PST 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 2c8d33897d90a6651842120805e28364c84c11a1
      https://github.com/llvm/llvm-project/commit/2c8d33897d90a6651842120805e28364c84c11a1
  Author: Slava Zakharin <szakharin at nvidia.com>
  Date:   2023-03-07 (Tue, 07 Mar 2023)

  Changed paths:
    M flang/lib/Optimizer/Builder/IntrinsicCall.cpp
    M flang/lib/Optimizer/CodeGen/TargetRewrite.cpp
    M flang/test/Fir/target-rewrite-integer.fir
    M flang/test/Lower/math-lowering.f90

  Log Message:
  -----------
  [flang] Enable target rewrite for int args/rets of bind(c) functions.

BIND(C) subprograms must use the same target ABI as the C processor,
so 1/2-byte int args/rets must be rewritten to use signext attribute.
This change-set also sets fir.bindc_name for the math functions used
during lowering so that they can be fixed up as well (though, currently
none of them needs to be affected).

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




More information about the All-commits mailing list