LLVM 22.0.0git
SystemZLongBranch.cpp File Reference

Go to the source code of this file.

Macros

#define DEBUG_TYPE   "systemz-long-branch"

Functions

 STATISTIC (LongBranches, "Number of long branches.")
 INITIALIZE_PASS (SystemZLongBranch, DEBUG_TYPE, "SystemZ Long Branch", false, false) void SystemZLongBranch
static unsigned getInstSizeInBytes (const MachineInstr &MI, const SystemZInstrInfo *TII)

Macro Definition Documentation

◆ DEBUG_TYPE

#define DEBUG_TYPE   "systemz-long-branch"

Definition at line 73 of file SystemZLongBranch.cpp.

Function Documentation

◆ getInstSizeInBytes()

unsigned getInstSizeInBytes ( const MachineInstr & MI,
const SystemZInstrInfo * TII )
static

Definition at line 211 of file SystemZLongBranch.cpp.

References assert(), MI, Size, and TII.

Referenced by llvm::TargetInstrInfo::predictBranchSizeForIfCvt().

◆ INITIALIZE_PASS()

INITIALIZE_PASS ( SystemZLongBranch ,
DEBUG_TYPE ,
"SystemZ Long Branch" ,
false ,
false  )

Definition at line 173 of file SystemZLongBranch.cpp.

References llvm::alignTo(), llvm::Block, DEBUG_TYPE, and llvm::Log2().

◆ STATISTIC()

STATISTIC ( LongBranches ,
"Number of long branches."  )

References Size.