llvm-project/flang/tools/flang-driver
Stuart Ellis f52fc591fa [flang][driver] Add support for Frontend Plugins
Introducing a plugin API and a simple HelloWorld Plugin example.
This patch adds the `-load` and `-plugin` flags to frontend driver and
the code around using custom frontend actions from within a plugin
shared library object.

It also adds to the Driver-help test to check the help option with the
updated driver flags.

Additionally, the patch creates a plugin-example test to check the
HelloWorld plugin example runs correctly. As part of this, a new CMake
flag (`FLANG_BUILD_EXAMPLES`) is added to allow the example to be built
and for the test to run.

This Plugin API has only been tested on Linux.

Reviewed By: awarzynski

Differential Revision: https://reviews.llvm.org/D106137
2021-08-12 11:42:16 +01:00
..
CMakeLists.txt [flang][driver] Add support for Frontend Plugins 2021-08-12 11:42:16 +01:00
driver.cpp [clang][flang] Improve the consistency of the code-base 2021-02-25 21:25:43 +08:00
fc1_main.cpp [flang][driver] Rename the accessors/mutators (NFC) 2020-11-02 10:55:13 +00:00