aboutsummaryrefslogtreecommitdiff
path: root/bolt/lib/Utils/CommandLineOpts.cpp
diff options
context:
space:
mode:
authorVladislav Khmelevsky <och95@yandex.ru>2022-03-10 21:38:55 +0300
committerVladislav Khmelevsky <och95@yandex.ru>2022-03-15 22:12:17 +0300
commit8ab69baad51a3f50800cb2eea9985fe5f2702438 (patch)
treec1dee5c5286840a83b8f88f88fc4c7ff33bfe055 /bolt/lib/Utils/CommandLineOpts.cpp
parent78406ac8985bcefcf38d00c6fd112067cc773d96 (diff)
downloadllvm-8ab69baad51a3f50800cb2eea9985fe5f2702438.zip
llvm-8ab69baad51a3f50800cb2eea9985fe5f2702438.tar.gz
llvm-8ab69baad51a3f50800cb2eea9985fe5f2702438.tar.bz2
[BOLT] Set cold sections alignment explicitly
The cold text section alignment is set using the maximum alignment value passed to the emitCodeAlignment. In order to calculate tentetive layout right we will set the minimum alignment of such sections to the maximum possible function alignment explicitly. Differential Revision: https://reviews.llvm.org/D121392
Diffstat (limited to 'bolt/lib/Utils/CommandLineOpts.cpp')
-rw-r--r--bolt/lib/Utils/CommandLineOpts.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/bolt/lib/Utils/CommandLineOpts.cpp b/bolt/lib/Utils/CommandLineOpts.cpp
index e056746..9ea20ac0 100644
--- a/bolt/lib/Utils/CommandLineOpts.cpp
+++ b/bolt/lib/Utils/CommandLineOpts.cpp
@@ -42,6 +42,11 @@ AlignText("align-text",
cl::Hidden,
cl::cat(BoltCategory));
+cl::opt<unsigned> AlignFunctions(
+ "align-functions",
+ cl::desc("align functions at a given value (relocation mode)"),
+ cl::init(64), cl::ZeroOrMore, cl::cat(BoltOptCategory));
+
cl::opt<bool>
AggregateOnly("aggregate-only",
cl::desc("exit after writing aggregated data file"),