LLVM  5.0.0
Macros | Enumerations | Functions | Variables
MachineCombiner.cpp File Reference
#include "llvm/ADT/DenseMap.h"
#include "llvm/ADT/Statistic.h"
#include "llvm/CodeGen/MachineDominators.h"
#include "llvm/CodeGen/MachineFunction.h"
#include "llvm/CodeGen/MachineFunctionPass.h"
#include "llvm/CodeGen/MachineInstrBuilder.h"
#include "llvm/CodeGen/MachineLoopInfo.h"
#include "llvm/CodeGen/MachineRegisterInfo.h"
#include "llvm/CodeGen/MachineTraceMetrics.h"
#include "llvm/CodeGen/Passes.h"
#include "llvm/CodeGen/TargetSchedule.h"
#include "llvm/Support/Debug.h"
#include "llvm/Support/raw_ostream.h"
#include "llvm/Target/TargetInstrInfo.h"
#include "llvm/Target/TargetRegisterInfo.h"
#include "llvm/Target/TargetSubtargetInfo.h"
Include dependency graph for MachineCombiner.cpp:

Go to the source code of this file.

Macros

#define DEBUG_TYPE   "machine-combiner"
 

Enumerations

enum  CombinerObjective { CombinerObjective::MustReduceDepth, CombinerObjective::Default }
 The combiner's goal may differ based on which pattern it is attempting to optimize. More...
 

Functions

 STATISTIC (NumInstCombined,"Number of machineinst combined")
 
 INITIALIZE_PASS_BEGIN (MachineCombiner, DEBUG_TYPE,"Machine InstCombiner", false, false) INITIALIZE_PASS_END(MachineCombiner
 
static CombinerObjective getCombinerObjective (MachineCombinerPattern P)
 
static void insertDeleteInstructions (MachineBasicBlock *MBB, MachineInstr &MI, SmallVector< MachineInstr *, 16 > InsInstrs, SmallVector< MachineInstr *, 16 > DelInstrs, MachineTraceMetrics *Traces)
 

Variables

 DEBUG_TYPE
 
Machine InstCombiner
 
Machine false
 

Macro Definition Documentation

#define DEBUG_TYPE   "machine-combiner"

Definition at line 33 of file MachineCombiner.cpp.

Enumeration Type Documentation

enum CombinerObjective
strong

The combiner's goal may differ based on which pattern it is attempting to optimize.

Enumerator
MustReduceDepth 
Default 

Definition at line 220 of file MachineCombiner.cpp.

Function Documentation

static CombinerObjective getCombinerObjective ( MachineCombinerPattern  P)
static
INITIALIZE_PASS_BEGIN ( MachineCombiner  ,
DEBUG_TYPE  ,
"Machine InstCombiner"  ,
false  ,
false   
)
static void insertDeleteInstructions ( MachineBasicBlock *  MBB,
MachineInstr &  MI,
SmallVector< MachineInstr *, 16 >  InsInstrs,
SmallVector< MachineInstr *, 16 >  DelInstrs,
MachineTraceMetrics *  Traces 
)
static
STATISTIC ( NumInstCombined  ,
"Number of machineinst combined"   
)

Variable Documentation

DEBUG_TYPE

Definition at line 93 of file MachineCombiner.cpp.

Machine false

Definition at line 93 of file MachineCombiner.cpp.

Definition at line 93 of file MachineCombiner.cpp.