LLVM 22.0.0git
BranchRelaxation.cpp File Reference

Go to the source code of this file.

Macros

#define DEBUG_TYPE   "branch-relaxation"
#define BRANCH_RELAX_NAME   "Branch relaxation pass"

Functions

 STATISTIC (NumSplit, "Number of basic blocks split")
 STATISTIC (NumConditionalRelaxed, "Number of conditional branches relaxed")
 STATISTIC (NumUnconditionalRelaxed, "Number of unconditional branches relaxed")
 INITIALIZE_PASS (BranchRelaxationLegacy, DEBUG_TYPE, BRANCH_RELAX_NAME, false, false) void BranchRelaxation
 verify - check BBOffsets, BBSizes, alignment of islands

Macro Definition Documentation

◆ BRANCH_RELAX_NAME

#define BRANCH_RELAX_NAME   "Branch relaxation pass"

Definition at line 44 of file BranchRelaxation.cpp.

Referenced by INITIALIZE_PASS().

◆ DEBUG_TYPE

#define DEBUG_TYPE   "branch-relaxation"

Definition at line 38 of file BranchRelaxation.cpp.

Function Documentation

◆ INITIALIZE_PASS()

INITIALIZE_PASS ( BranchRelaxationLegacy ,
DEBUG_TYPE ,
BRANCH_RELAX_NAME ,
false ,
false  )

verify - check BBOffsets, BBSizes, alignment of islands

Definition at line 142 of file BranchRelaxation.cpp.

References assert(), BRANCH_RELAX_NAME, DEBUG_TYPE, MBB, MI, llvm::Offset, Size, TII, and verify.

◆ STATISTIC() [1/3]

STATISTIC ( NumConditionalRelaxed ,
"Number of conditional branches relaxed"  )

◆ STATISTIC() [2/3]

STATISTIC ( NumSplit ,
"Number of basic blocks split"  )

◆ STATISTIC() [3/3]

STATISTIC ( NumUnconditionalRelaxed ,
"Number of unconditional branches relaxed"  )