mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-08-07 12:28:24 +00:00
[PM] Add a basic doxygen comment for this pass.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@226993 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -40,6 +40,12 @@ UnlikelyBranchWeight("unlikely-branch-weight", cl::Hidden, cl::init(4),
|
|||||||
cl::desc("Weight of the branch unlikely to be taken (default = 4)"));
|
cl::desc("Weight of the branch unlikely to be taken (default = 4)"));
|
||||||
|
|
||||||
namespace {
|
namespace {
|
||||||
|
/// \brief Legacy pass for lowering expect intrinsics out of the IR.
|
||||||
|
///
|
||||||
|
/// When this pass is run over a function it uses expect intrinsics which feed
|
||||||
|
/// branches and switches to provide branch weight metadata for those
|
||||||
|
/// terminators. It then removes the expect intrinsics from the IR so the rest
|
||||||
|
/// of the optimizer can ignore them.
|
||||||
class LowerExpectIntrinsic : public FunctionPass {
|
class LowerExpectIntrinsic : public FunctionPass {
|
||||||
|
|
||||||
bool HandleSwitchExpect(SwitchInst *SI);
|
bool HandleSwitchExpect(SwitchInst *SI);
|
||||||
|
Reference in New Issue
Block a user