[PATCH] D61738: Provide basic LTO extension points
serge via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri May 31 00:50:46 PDT 2019
serge-sans-paille updated this revision to Diff 202377.
serge-sans-paille added a comment.
Diff updated with context
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D61738/new/
https://reviews.llvm.org/D61738
Files:
llvm/include/llvm/Transforms/IPO/PassManagerBuilder.h
llvm/lib/Transforms/IPO/PassManagerBuilder.cpp
Index: llvm/lib/Transforms/IPO/PassManagerBuilder.cpp
===================================================================
--- llvm/lib/Transforms/IPO/PassManagerBuilder.cpp
+++ llvm/lib/Transforms/IPO/PassManagerBuilder.cpp
@@ -1012,6 +1012,8 @@
if (VerifyInput)
PM.add(createVerifierPass());
+ addExtensionsToPM(EP_LinkTimeOptimizationEarly, PM);
+
if (OptLevel != 0)
addLTOOptimizationPasses(PM);
else {
@@ -1033,6 +1035,8 @@
if (OptLevel != 0)
addLateLTOOptimizationPasses(PM);
+ addExtensionsToPM(EP_LinkTimeOptimizationLast, PM);
+
if (VerifyOutput)
PM.add(createVerifierPass());
}
Index: llvm/include/llvm/Transforms/IPO/PassManagerBuilder.h
===================================================================
--- llvm/include/llvm/Transforms/IPO/PassManagerBuilder.h
+++ llvm/include/llvm/Transforms/IPO/PassManagerBuilder.h
@@ -112,6 +112,14 @@
/// passes at the end of the main CallGraphSCC passes and before any
/// function simplification passes run by CGPassManager.
EP_CGSCCOptimizerLate,
+
+ /// EP_LinkTimeOptimizationStart - This extensions point allow adding passes that
+ /// run at Link Time, before any Link Time Optimization.
+ EP_LinkTimeOptimizationEarly,
+
+ /// EP_LinkTimeOptimizationStart - This extensions point allow adding passes that
+ /// run at Link Time, after all Link Time Optimization.
+ EP_LinkTimeOptimizationLast,
};
/// The Optimization Level - Specify the basic optimization level.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D61738.202377.patch
Type: text/x-patch
Size: 1507 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20190531/96c82541/attachment.bin>
More information about the llvm-commits
mailing list