[all-commits] [llvm/llvm-project] 97d897: [flang][fir] Add the pre-code gen rewrite pass and...

Eric Schweitz via All-commits all-commits at lists.llvm.org
Wed Mar 24 19:27:35 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 97d8972c9cd1295fe838b0d0d1be4cefe2dd0b1c
      https://github.com/llvm/llvm-project/commit/97d8972c9cd1295fe838b0d0d1be4cefe2dd0b1c
  Author: Eric Schweitz <eschweitz at nvidia.com>
  Date:   2021-03-24 (Wed, 24 Mar 2021)

  Changed paths:
    A flang/include/flang/Optimizer/CodeGen/CGOps.td
    M flang/include/flang/Optimizer/CodeGen/CGPasses.td
    M flang/include/flang/Optimizer/CodeGen/CMakeLists.txt
    M flang/include/flang/Optimizer/Dialect/FIRDialect.h
    M flang/include/flang/Optimizer/Support/InitFIR.h
    M flang/lib/Optimizer/CMakeLists.txt
    A flang/lib/Optimizer/CodeGen/CGOps.cpp
    A flang/lib/Optimizer/CodeGen/CGOps.h
    A flang/lib/Optimizer/CodeGen/PassDetail.h
    A flang/lib/Optimizer/CodeGen/PreCGRewrite.cpp
    A flang/test/Fir/cg-ops.fir
    M flang/tools/fir-opt/fir-opt.cpp
    M flang/tools/tco/tco.cpp

  Log Message:
  -----------
  [flang][fir] Add the pre-code gen rewrite pass and codegen ops.

Before the conversion to LLVM-IR dialect and ultimately LLVM IR, FIR is
partially rewritten into a codegen form.  This patch adds that pass, the
fircg dialect, and the small set of Ops in the fircg (sub) dialect.
Fircg is not part of the FIR dialect and should never be used outside of
the (closed) conversion to LLVM IR.

Authors: Eric Schweitz, Jean Perier, Rajan Walia, et.al.

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




More information about the All-commits mailing list