[all-commits] [llvm/llvm-project] 4c263e: [flang] Add TargetRewrite pass

Diana via All-commits all-commits at lists.llvm.org
Tue Nov 9 00:05:19 PST 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 4c263ede5471a7fe3b06e8208b3f1aba1b9dcef2
      https://github.com/llvm/llvm-project/commit/4c263ede5471a7fe3b06e8208b3f1aba1b9dcef2
  Author: Diana Picus <diana.picus at linaro.org>
  Date:   2021-11-09 (Tue, 09 Nov 2021)

  Changed paths:
    M flang/include/flang/Optimizer/CodeGen/CGPasses.td
    M flang/include/flang/Optimizer/CodeGen/CodeGen.h
    M flang/lib/Optimizer/CodeGen/CMakeLists.txt
    A flang/lib/Optimizer/CodeGen/Target.cpp
    A flang/lib/Optimizer/CodeGen/Target.h
    A flang/lib/Optimizer/CodeGen/TargetRewrite.cpp
    A flang/test/Fir/target-rewrite-triple.fir
    A flang/test/Fir/target.fir

  Log Message:
  -----------
  [flang] Add TargetRewrite pass

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 convertions will be included in
future patches.

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

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

Co-authored-by: Eric Schweitz <eschweitz at nvidia.com>
Co-authored-by: Jean Perier <jperier at nvidia.com>
Co-authored-by: Kiran Chandramohan <kiran.chandramohan at arm.com>
Co-authored-by: Tim Keith <tkeith at nvidia.com>




More information about the All-commits mailing list