LLVM 24.0.0git
MachineCombiner.cpp File Reference

Go to the source code of this file.

Macros

#define DEBUG_TYPE   "machine-combiner"

Functions

 STATISTIC (NumInstCombined, "Number of machineinst combined")
 INITIALIZE_PASS_BEGIN (MachineCombinerLegacy, DEBUG_TYPE, "Machine InstCombiner", false, false) INITIALIZE_PASS_END(MachineCombinerLegacy
static void insertDeleteInstructions (MachineBasicBlock *MBB, MachineInstr &MI, SmallVectorImpl< MachineInstr * > &InsInstrs, SmallVectorImpl< MachineInstr * > &DelInstrs, MachineTraceMetrics::Ensemble *TraceEnsemble, LiveRegUnitSet &RegUnits, const TargetInstrInfo *TII, unsigned Pattern, bool IncrementalUpdate)
 Inserts InsInstrs and deletes DelInstrs.

Variables

 DEBUG_TYPE
Machine InstCombiner
Machine false

Macro Definition Documentation

◆ DEBUG_TYPE

#define DEBUG_TYPE   "machine-combiner"

Definition at line 40 of file MachineCombiner.cpp.

Function Documentation

◆ INITIALIZE_PASS_BEGIN()

INITIALIZE_PASS_BEGIN ( MachineCombinerLegacy ,
DEBUG_TYPE ,
"Machine InstCombiner" ,
false ,
false  )

◆ insertDeleteInstructions()

void insertDeleteInstructions ( MachineBasicBlock * MBB,
MachineInstr & MI,
SmallVectorImpl< MachineInstr * > & InsInstrs,
SmallVectorImpl< MachineInstr * > & DelInstrs,
MachineTraceMetrics::Ensemble * TraceEnsemble,
LiveRegUnitSet & RegUnits,
const TargetInstrInfo * TII,
unsigned Pattern,
bool IncrementalUpdate )
static

Inserts InsInstrs and deletes DelInstrs.

Incrementally updates instruction depths if requested.

Parameters
MBBbasic block to insert instructions in
MIcurrent machine instruction
InsInstrsnew instructions to insert in MBB
DelInstrsinstruction to delete from MBB
TraceEnsembleis a pointer to the machine trace information
RegUnitsset of live registers, needed to compute instruction depths
TIIis target instruction info, used to call target hook
Patternis used to call target hook finalizeInsInstrs
IncrementalUpdateif true, compute instruction depths incrementally, otherwise invalidate the trace

Definition at line 466 of file MachineCombiner.cpp.

References llvm::SparseSet< ValueT, KeyT, KeyFunctorT, SparseT >::begin(), llvm::SparseSet< ValueT, KeyT, KeyFunctorT, SparseT >::end(), llvm::SparseSet< ValueT, KeyT, KeyFunctorT, SparseT >::erase(), I, llvm::MachineTraceMetrics::Ensemble::invalidate(), MBB, MI, TII, and llvm::MachineTraceMetrics::Ensemble::updateDepth().

◆ STATISTIC()

STATISTIC ( NumInstCombined ,
"Number of machineinst combined"  )

References MRI, TII, and TRI.

Variable Documentation

◆ DEBUG_TYPE

DEBUG_TYPE

Definition at line 120 of file MachineCombiner.cpp.

◆ false

Machine false

Definition at line 121 of file MachineCombiner.cpp.

◆ InstCombiner

Definition at line 120 of file MachineCombiner.cpp.