[llvm] [llc] Add a reusable LLVMLlcDriver library (PR #221896)

Anutosh Bhat via llvm-commits llvm-commits at lists.llvm.org
Thu Sep 10 12:50:05 PDT 2026


================
@@ -25,13 +25,26 @@ set(LLVM_LINK_COMPONENTS
   Vectorize
   )
 
+# Keep the command-line implementation in a separate library so other LLVM
+# tools can reuse the llc driver without compiling or rewriting llc.cpp.
+add_llvm_library(LLVMLlcDriver
+  STATIC
+  llcdriver.cpp
+  NewPMDriver.cpp
+
+  PARTIAL_SOURCES_INTENDED
----------------
anutosh491 wrote:

Shall take care of this in the next subsequent PR.

https://github.com/llvm/llvm-project/pull/221896


More information about the llvm-commits mailing list