[llvm] [llvm-lto2] Added llvm-lto2 -unified-lto descriptions (PR #148309)
Faith Rivera via llvm-commits
llvm-commits at lists.llvm.org
Mon Jul 14 10:47:20 PDT 2025
https://github.com/fnriv updated https://github.com/llvm/llvm-project/pull/148309
>From 44efd4d8a8cc5aa8c260b7103f36fa55000989bf Mon Sep 17 00:00:00 2001
From: Faith Rivera <103224896+fnriv at users.noreply.github.com>
Date: Thu, 10 Jul 2025 13:45:57 -0700
Subject: [PATCH] Add -unified-lto flag mode descriptions
---
llvm/tools/llvm-lto2/llvm-lto2.cpp | 10 +++++++---
1 file changed, 7 insertions(+), 3 deletions(-)
diff --git a/llvm/tools/llvm-lto2/llvm-lto2.cpp b/llvm/tools/llvm-lto2/llvm-lto2.cpp
index fbde66666a596..1f61dfec918b5 100644
--- a/llvm/tools/llvm-lto2/llvm-lto2.cpp
+++ b/llvm/tools/llvm-lto2/llvm-lto2.cpp
@@ -198,9 +198,13 @@ static cl::list<std::string>
PassPlugins("load-pass-plugin",
cl::desc("Load passes from plugin library"));
-static cl::opt<std::string> UnifiedLTOMode("unified-lto", cl::Optional,
- cl::desc("Set LTO mode"),
- cl::value_desc("mode"));
+static cl::opt<std::string> UnifiedLTOMode(
+ "unified-lto", cl::Optional,
+ cl::desc("Set LTO mode with the following options:\n"
+ " thin ThinLTO, with Unified LTO enabled.\n"
+ " full Regular LTO, with Unified LTO enabled.\n"
+ " default Any LTO mode without Unified LTO. The default mode."),
+ cl::value_desc("mode"));
static cl::opt<bool> EnableFreestanding(
"lto-freestanding",
More information about the llvm-commits
mailing list