[flang-commits] [PATCH] D112910: [flang] Add TargetRewrite pass

Diana Picus via Phabricator via flang-commits flang-commits at lists.llvm.org
Mon Nov 1 02:00:59 PDT 2021


rovka created this revision.
rovka added reviewers: schweitz, jeanPerier, clementval, mehdi_amini, kiranchandramohan, sscalpone, pmccormick, PeteSteinfeld, AlexisPerry, jdoerfert.
rovka added a project: Flang.
Herald added a subscriber: mgorny.
Herald added a reviewer: awarzynski.
rovka requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.

This patch adds the basic infrastructure for the TargetRewrite pass,
which rewrites certain FIR dialect operations into target specific
forms. In particular, it converts boxchar function parameters, call
arguments and return values. Other rewritings will be included in
future patches.

This also adds support for targets to tco and includes a minor fix for
tco so that it dumps all the functions in the module (I didn't add a
separate test for that since pretty much any test using tco covers this).

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

Co-authored-by: Eric Schweitz <eschweitz at nvidia.com>
Co-authored-by: Jean Perier <jperier at nvidia.com>


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D112910

Files:
  flang/include/flang/Optimizer/CodeGen/CGPasses.td
  flang/include/flang/Optimizer/CodeGen/CodeGen.h
  flang/lib/Optimizer/CodeGen/CMakeLists.txt
  flang/lib/Optimizer/CodeGen/Target.cpp
  flang/lib/Optimizer/CodeGen/Target.h
  flang/lib/Optimizer/CodeGen/TargetRewrite.cpp
  flang/test/Fir/target.fir
  flang/tools/tco/tco.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D112910.383736.patch
Type: text/x-patch
Size: 34340 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/flang-commits/attachments/20211101/0b9d8556/attachment-0001.bin>


More information about the flang-commits mailing list