[all-commits] [llvm/llvm-project] afb34c: [flang] Hanlde disptach op in abstract result pass

Valentin Clement (バレンタイン クレメン) via All-commits all-commits at lists.llvm.org
Mon Nov 28 07:50:06 PST 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: afb34cf3077a38007fcebe17dc384532207283fa
      https://github.com/llvm/llvm-project/commit/afb34cf3077a38007fcebe17dc384532207283fa
  Author: Valentin Clement <clementval at gmail.com>
  Date:   2022-11-28 (Mon, 28 Nov 2022)

  Changed paths:
    M flang/lib/Optimizer/Dialect/FIRType.cpp
    M flang/lib/Optimizer/Transforms/AbstractResult.cpp
    M flang/test/Fir/abstract-results.fir

  Log Message:
  -----------
  [flang] Hanlde disptach op in abstract result pass

Update the call conversion pattern to support fir.dispatch
operation as well. The first operand of fir.dispatch op is always the
polymoprhic object. The pass_arg_pos attribute needs to be shifted when
the result is added as argument.

Reviewed By: jeanPerier

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




More information about the All-commits mailing list