[all-commits] [llvm/llvm-project] 520e5d: [flang][driver] Add print function name Plugin exa...

Andrzej WarzyƄski via All-commits all-commits at lists.llvm.org
Thu Aug 19 01:26:10 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 520e5db26a4a9fcb418d9ef2da813155038caade
      https://github.com/llvm/llvm-project/commit/520e5db26a4a9fcb418d9ef2da813155038caade
  Author: Stuart Ellis <stuart.ellis at arm.com>
  Date:   2021-08-19 (Thu, 19 Aug 2021)

  Changed paths:
    M flang/examples/CMakeLists.txt
    R flang/examples/HelloWorld/CMakeLists.txt
    R flang/examples/HelloWorld/HelloWorldPlugin.cpp
    A flang/examples/PrintFlangFunctionNames/CMakeLists.txt
    A flang/examples/PrintFlangFunctionNames/PrintFlangFunctionNames.cpp
    M flang/include/flang/Frontend/FrontendActions.h
    M flang/test/CMakeLists.txt
    R flang/test/Driver/plugin-example.f90
    A flang/test/Driver/plugin-invalid-name.f90
    A flang/test/Examples/print-fns-calls.f90
    A flang/test/Examples/print-fns-definitions.f90
    A flang/test/Examples/print-fns-interfaces.f90

  Log Message:
  -----------
  [flang][driver] Add print function name Plugin example

Replacing Hello World example Plugin with one that counts and prints the names of
functions and subroutines.
This involves changing the `PluginParseTreeAction` Plugin base class to
inherit from `PrescanAndSemaAction` class to get access to the Parse Tree
so that the Plugin can walk it.
Additionally, there are tests of this new Plugin to check it prints the correct
things in different circumstances.

Depends on: D106137

Reviewed By: awarzynski

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




More information about the All-commits mailing list