[PATCH] D107089: [flang][driver] Add print function name Plugin example

Stuart Ellis via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Jul 29 10:33:09 PDT 2021


stuartellis created this revision.
Herald added a subscriber: mgorny.
Herald added a reviewer: sscalpone.
Herald added a reviewer: awarzynski.
stuartellis requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.

Adding another small example Plugin that counts and prints the names of
functions and subroutines.
This involves changing the `PluginParseTreeAction` Plugin base class to
inherit from PrescanAndSemaAction to get access to the Parse Tree so
that the Plugin can walk it.

Depends on: D106137 <https://reviews.llvm.org/D106137>


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D107089

Files:
  flang/examples/CMakeLists.txt
  flang/examples/PrintFlangFunctionNames/CMakeLists.txt
  flang/examples/PrintFlangFunctionNames/PrintFlangFunctionNames.cpp
  flang/include/flang/Frontend/FrontendActions.h
  flang/test/CMakeLists.txt
  flang/test/Driver/plugin-print-fns.f90

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D107089.362820.patch
Type: text/x-patch
Size: 5382 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210729/86c026dd/attachment.bin>


More information about the llvm-commits mailing list