[PATCH] D120999: [flang] Update the plugin API

Andrzej Warzynski via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Mar 4 08:23:28 PST 2022


awarzynski created this revision.
awarzynski added reviewers: DavidSpickett, kiranchandramohan.
Herald added a reviewer: sscalpone.
Herald added projects: Flang, All.
awarzynski requested review of this revision.
Herald added a reviewer: jdoerfert.
Herald added subscribers: llvm-commits, sstefan1, jdoerfert.
Herald added a project: LLVM.

This patch adds a new member method in the `PluginParseTreeAction`
frontend action base class: `getParsing`. As plugins are meant as a
convenient interface for analysing the parse tree, this method is key.
With this new method, plugins no longer need to include
`CompilerInstance.h` to retrieve e.g. parse trees. As a result, the
plugins are more independent of the driver's implementation's details
(e.g.  `CompilerInstance`).


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D120999

Files:
  flang/docs/FlangDriver.md
  flang/examples/FlangOmpReport/FlangOmpReport.cpp
  flang/examples/FlangOmpReport/yaml_summarizer.py
  flang/examples/PrintFlangFunctionNames/PrintFlangFunctionNames.cpp
  flang/include/flang/Frontend/FrontendActions.h
  flang/lib/Frontend/FrontendActions.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D120999.413020.patch
Type: text/x-patch
Size: 7199 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220304/76c312f3/attachment.bin>


More information about the llvm-commits mailing list