LLVM 22.0.0git
BasicBlockSections.cpp File Reference

Go to the source code of this file.

Functions

 INITIALIZE_PASS_BEGIN (BasicBlockSections, "bbsections-prepare", "Prepares for basic block sections, by splitting functions " "into clusters of basic blocks.", false, false) INITIALIZE_PASS_END(BasicBlockSections
bbsections Prepares for basic block by splitting functions into clusters of basic static false void updateBranches (MachineFunction &MF, const SmallVector< MachineBasicBlock * > &PreLayoutFallThroughs)
static void assignSections (MachineFunction &MF, const DenseMap< UniqueBBID, BBClusterInfo > &FuncClusterInfo)

Variables

static cl::opt< boolBBSectionsDetectSourceDrift ("bbsections-detect-source-drift", cl::desc("This checks if there is a fdo instr. profile hash " "mismatch for this function"), cl::init(true), cl::Hidden)
bbsections prepare
bbsections Prepares for basic block sections
bbsections Prepares for basic block by splitting functions into clusters of basic blocks
bbsections Prepares for basic block by splitting functions into clusters of basic false

Function Documentation

◆ assignSections()

◆ INITIALIZE_PASS_BEGIN()

INITIALIZE_PASS_BEGIN ( BasicBlockSections ,
"bbsections-prepare" ,
"Prepares for basic block sections,
by splitting functions " "into clusters of basic blocks." ,
false ,
false  )

◆ updateBranches()

bbsections Prepares for basic block by splitting functions into clusters of basic static false void updateBranches ( MachineFunction & MF,
const SmallVector< MachineBasicBlock * > & PreLayoutFallThroughs )
static

Definition at line 147 of file BasicBlockSections.cpp.

References Cond, const, MBB, TBB, TII, and updateBranches().

Referenced by llvm::sortBasicBlocksAndUpdateBranches(), and updateBranches().

Variable Documentation

◆ BBSectionsDetectSourceDrift

cl::opt< bool > BBSectionsDetectSourceDrift("bbsections-detect-source-drift", cl::desc("This checks if there is a fdo instr. profile hash " "mismatch for this function"), cl::init(true), cl::Hidden) ( "bbsections-detect-source-drift" ,
cl::desc("This checks if there is a fdo instr. profile hash " "mismatch for this function") ,
cl::init(true) ,
cl::Hidden  )
static

◆ blocks

◆ false

bbsections Prepares for basic block by splitting functions into clusters of basic false

Definition at line 142 of file BasicBlockSections.cpp.

◆ prepare

bbsections prepare

◆ sections