[all-commits] [llvm/llvm-project] 5dbeb2: [flang] Shift argument attributes when result oper...

Valentin Clement (バレンタイン クレメン) via All-commits all-commits at lists.llvm.org
Thu Aug 18 23:40:44 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 5dbeb2ce2a8c73016a7e1a5f0e049469239e74c7
      https://github.com/llvm/llvm-project/commit/5dbeb2ce2a8c73016a7e1a5f0e049469239e74c7
  Author: Valentin Clement <clementval at gmail.com>
  Date:   2022-08-19 (Fri, 19 Aug 2022)

  Changed paths:
    M flang/lib/Optimizer/CodeGen/TargetRewrite.cpp
    M flang/test/Fir/target-rewrite-arg-position.fir

  Log Message:
  -----------
  [flang] Shift argument attributes when result operand is inserted

The TargetRewrite pass convert the signature of the function.
In some cases it adds operands to the function to hanlde the result of it.
This patch makes sure the argument attributes present before the conversion
are replaced with the correct arguments after the conversion is performed.

Depends D132113

Reviewed By: vdonaldson

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




More information about the All-commits mailing list