Lines Matching refs:plugin
2 The LLVM gold plugin
13 The LLVM gold plugin implements the gold plugin interface on top of
14 :ref:`libLTO`. The same plugin can also be used by other tools such as
19 .. _`gold plugin interface`: http://gcc.gnu.org/wiki/whopr/driver
26 You need to have gold with plugin support and build the LLVMgold plugin.
28 gold" or else "GNU ld" if not. If you have gold, check for plugin support
29 by running ``/usr/bin/ld -plugin``. If it complains "missing argument" then
30 you have plugin support. If not, such as an "unknown option" error then you
31 will either need to build gold or install a version with plugin support.
33 * Download, configure and build gold with plugin support:
44 the ``-plugin`` option. Running ``make`` will additionally build
47 * Build the LLVMgold plugin. Run CMake with
49 path will contain the file ``plugin-api.h``.
54 The linker takes a ``-plugin`` option that points to the path of
55 the plugin ``.so`` file. To find out what link command ``gcc``
58 ``ld-new -plugin /path/to/LLVMgold.so`` to test it out. Once you're
63 ``-flto``. This flag will also cause ``clang`` to look for the gold plugin in
64 the ``lib`` directory under its prefix and pass the ``-plugin`` option to
68 ``ar`` and ``nm`` also accept the ``-plugin`` option and it's possible to
77 The following example shows a worked example of the gold plugin mixing LLVM
119 $ clang -flto a.a b.o -o main # <-- link with LLVMgold plugin
121 Gold informs the plugin that foo3 is never referenced outside the IR,
170 ``plugin-api.h`` from gold which means that the resulting ``LLVMgold.so``
172 just as much as gold could without the plugin.