aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/CodeGen/CodeGen.cpp
diff options
context:
space:
mode:
authorSriraman Tallam <tmsriram@google.com>2020-03-16 15:56:02 -0700
committerSriraman Tallam <tmsriram@google.com>2020-03-16 16:06:54 -0700
commitdf082ac45aa034b8b5194123035554a93ed6d38e (patch)
treec48dfbcf08328371ef2bbb7c822305fb39d754f3 /llvm/lib/CodeGen/CodeGen.cpp
parent30dc342f084d5ca9cd4ba9f8a7de37a783c8687e (diff)
downloadllvm-df082ac45aa034b8b5194123035554a93ed6d38e.zip
llvm-df082ac45aa034b8b5194123035554a93ed6d38e.tar.gz
llvm-df082ac45aa034b8b5194123035554a93ed6d38e.tar.bz2
Basic Block Sections support in LLVM.
This is the second patch in a series of patches to enable basic block sections support. This patch adds support for: * Creating direct jumps at the end of basic blocks that have fall through instructions. * New pass, bbsections-prepare, that analyzes placement of basic blocks in sections. * Actual placing of a basic block in a unique section with special handling of exception handling blocks. * Supports placing a subset of basic blocks in a unique section. * Support for MIR serialization and deserialization with basic block sections. Parent patch : D68063 Differential Revision: https://reviews.llvm.org/D73674
Diffstat (limited to 'llvm/lib/CodeGen/CodeGen.cpp')
-rw-r--r--llvm/lib/CodeGen/CodeGen.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/llvm/lib/CodeGen/CodeGen.cpp b/llvm/lib/CodeGen/CodeGen.cpp
index c74ba71..eefb328 100644
--- a/llvm/lib/CodeGen/CodeGen.cpp
+++ b/llvm/lib/CodeGen/CodeGen.cpp
@@ -20,6 +20,7 @@ using namespace llvm;
/// initializeCodeGen - Initialize all passes linked into the CodeGen library.
void llvm::initializeCodeGen(PassRegistry &Registry) {
initializeAtomicExpandPass(Registry);
+ initializeBBSectionsPreparePass(Registry);
initializeBranchFolderPassPass(Registry);
initializeBranchRelaxationPass(Registry);
initializeCFGuardLongjmpPass(Registry);