LLVM 20.0.0git
Macros | Functions | Variables
MSP430BranchSelector.cpp File Reference
#include "MSP430.h"
#include "MSP430InstrInfo.h"
#include "MSP430Subtarget.h"
#include "llvm/ADT/Statistic.h"
#include "llvm/CodeGen/MachineFunctionPass.h"
#include "llvm/CodeGen/MachineInstrBuilder.h"
#include "llvm/Support/Debug.h"
#include "llvm/Support/MathExtras.h"
#include "llvm/Target/TargetMachine.h"

Go to the source code of this file.

Macros

#define DEBUG_TYPE   "msp430-branch-select"
 

Functions

 STATISTIC (NumSplit, "Number of machine basic blocks split")
 
 STATISTIC (NumExpanded, "Number of branches expanded to long format")
 
static bool isInRage (int DistanceInBytes)
 

Variables

static cl::opt< boolBranchSelectEnabled ("msp430-branch-select", cl::Hidden, cl::init(true), cl::desc("Expand out of range branches"))
 

Macro Definition Documentation

◆ DEBUG_TYPE

#define DEBUG_TYPE   "msp430-branch-select"

Definition at line 28 of file MSP430BranchSelector.cpp.

Function Documentation

◆ isInRage()

static bool isInRage ( int  DistanceInBytes)
static

Definition at line 65 of file MSP430BranchSelector.cpp.

References assert().

◆ STATISTIC() [1/2]

STATISTIC ( NumExpanded  ,
"Number of branches expanded to long format"   
)

◆ STATISTIC() [2/2]

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

Variable Documentation

◆ BranchSelectEnabled

cl::opt< bool > BranchSelectEnabled("msp430-branch-select", cl::Hidden, cl::init(true), cl::desc("Expand out of range branches")) ( "msp430-branch-select"  ,
cl::Hidden  ,
cl::init(true ,
cl::desc("Expand out of range branches")   
)
static