[all-commits] [llvm/llvm-project] 80c27a: [fir] Add affine demotion pass

rajan via All-commits all-commits at lists.llvm.org
Fri Oct 8 05:03:43 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 80c27abb2f74aa439ba381148186407ebae1793e
      https://github.com/llvm/llvm-project/commit/80c27abb2f74aa439ba381148186407ebae1793e
  Author: Rajan Walia <walrajan at gmail.com>
  Date:   2021-10-08 (Fri, 08 Oct 2021)

  Changed paths:
    M flang/include/flang/Optimizer/Transforms/Passes.h
    M flang/include/flang/Optimizer/Transforms/Passes.td
    A flang/lib/Optimizer/Transforms/AffineDemotion.cpp
    M flang/lib/Optimizer/Transforms/CMakeLists.txt
    A flang/test/Fir/affine-demotion.fir

  Log Message:
  -----------
  [fir] Add affine demotion pass

Add affine demotion pass.
Affine dialect's default lowering for loads and stores is different from
fir as it uses the `memref` type. The `memref` type is not compatible with
the Fortran runtime. Therefore, conversion of memory operations back to
`fir.load` and `fir.store` with `!fir.ref<?>` types is required.

This patch is part of the upstreaming effort from fir-dev branch.

Co-authored-by: Jean Perier <jperier at nvidia.com>
Co-authored-by: V Donaldson <vdonaldson at nvidia.com>
Co-authored-by: Rajan Walia <walrajan at gmail.com>
Co-authored-by: Sourabh Singh Tomar <SourabhSingh.Tomar at amd.com>
Co-authored-by: Valentin Clement <clementval at gmail.com>

Reviewed By: schweitz

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




More information about the All-commits mailing list