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. If building with autotools, run configure with
51 path will contain the file ``plugin-api.h``.
56 The linker takes a ``-plugin`` option that points to the path of
57 the plugin ``.so`` file. To find out what link command ``gcc``
60 ``ld-new -plugin /path/to/LLVMgold.so`` to test it out. Once you're
65 ``-flto``. This flag will also cause ``clang`` to look for the gold plugin in
66 the ``lib`` directory under its prefix and pass the ``-plugin`` option to
70 ``ar`` and ``nm`` also accept the ``-plugin`` option and it's possible to
79 The following example shows a worked example of the gold plugin mixing LLVM
121 $ clang -flto a.a b.o -o main # <-- link with LLVMgold plugin
123 Gold informs the plugin that foo3 is never referenced outside the IR,
172 ``plugin-api.h`` from gold which means that the resulting ``LLVMgold.so``
174 just as much as gold could without the plugin.