[llvm] e411619 - tools: Restore PluginLoader to llc (#182455)
via llvm-commits
llvm-commits at lists.llvm.org
Fri Feb 20 01:21:54 PST 2026
Author: Matt Arsenault
Date: 2026-02-20T09:21:48Z
New Revision: e411619dd232a5464f5b0fae24a88678fc6e50a4
URL: https://github.com/llvm/llvm-project/commit/e411619dd232a5464f5b0fae24a88678fc6e50a4
DIFF: https://github.com/llvm/llvm-project/commit/e411619dd232a5464f5b0fae24a88678fc6e50a4.diff
LOG: tools: Restore PluginLoader to llc (#182455)
This half reverts commit 6fdbcf68ba214725444103ff99668d78240562ea.
This is actually tested.
Added:
Modified:
llvm/docs/CommandGuide/llc.rst
llvm/tools/llc/llc.cpp
Removed:
################################################################################
diff --git a/llvm/docs/CommandGuide/llc.rst b/llvm/docs/CommandGuide/llc.rst
index f26896783b124..ffcccfbaefffb 100644
--- a/llvm/docs/CommandGuide/llc.rst
+++ b/llvm/docs/CommandGuide/llc.rst
@@ -140,6 +140,12 @@ End-user Options
Record the amount of time needed for each pass and print a report to standard
error.
+.. option:: --load=<dso_path>
+
+ Dynamically load ``dso_path`` (a path to a dynamically shared object) that
+ implements an LLVM target. This will permit the target name to be used with
+ the :option:`-march` option so that code can be generated for that target.
+
.. option:: -meabi=[default|gnu|4|5]
Specify which EABI version should conform to. Valid EABI versions are *gnu*,
diff --git a/llvm/tools/llc/llc.cpp b/llvm/tools/llc/llc.cpp
index 3174ed5a33bab..34ce2bc0622a6 100644
--- a/llvm/tools/llc/llc.cpp
+++ b/llvm/tools/llc/llc.cpp
@@ -49,6 +49,7 @@
#include "llvm/Support/InitLLVM.h"
#include "llvm/Support/PGOOptions.h"
#include "llvm/Support/Path.h"
+#include "llvm/Support/PluginLoader.h"
#include "llvm/Support/SourceMgr.h"
#include "llvm/Support/TargetSelect.h"
#include "llvm/Support/TimeProfiler.h"
More information about the llvm-commits
mailing list