|
LLVM 24.0.0git
|
#include "llvm/CodeGen/MachineCombiner.h"#include "CodeGenOptions.h"#include "llvm/ADT/DenseMap.h"#include "llvm/ADT/Statistic.h"#include "llvm/Analysis/ProfileSummaryInfo.h"#include "llvm/CodeGen/LazyMachineBlockFrequencyInfo.h"#include "llvm/CodeGen/MachineBlockFrequencyInfo.h"#include "llvm/CodeGen/MachineCombinerPattern.h"#include "llvm/CodeGen/MachineDominators.h"#include "llvm/CodeGen/MachineFunction.h"#include "llvm/CodeGen/MachineFunctionAnalysis.h"#include "llvm/CodeGen/MachineFunctionPass.h"#include "llvm/CodeGen/MachineLoopInfo.h"#include "llvm/CodeGen/MachineRegisterInfo.h"#include "llvm/CodeGen/MachineSizeOpts.h"#include "llvm/CodeGen/MachineTraceMetrics.h"#include "llvm/CodeGen/RegisterClassInfo.h"#include "llvm/CodeGen/TargetInstrInfo.h"#include "llvm/CodeGen/TargetRegisterInfo.h"#include "llvm/CodeGen/TargetSchedule.h"#include "llvm/CodeGen/TargetSubtargetInfo.h"#include "llvm/InitializePasses.h"#include "llvm/Support/Debug.h"#include "llvm/Support/raw_ostream.h"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 |
| #define DEBUG_TYPE "machine-combiner" |
Definition at line 40 of file MachineCombiner.cpp.
| INITIALIZE_PASS_BEGIN | ( | MachineCombinerLegacy | , |
| DEBUG_TYPE | , | ||
| "Machine InstCombiner" | , | ||
| false | , | ||
| false | ) |
References DEBUG_TYPE, and INITIALIZE_PASS_DEPENDENCY.
|
static |
Inserts InsInstrs and deletes DelInstrs.
Incrementally updates instruction depths if requested.
| MBB | basic block to insert instructions in |
| MI | current machine instruction |
| InsInstrs | new instructions to insert in MBB |
| DelInstrs | instruction to delete from MBB |
| TraceEnsemble | is a pointer to the machine trace information |
| RegUnits | set of live registers, needed to compute instruction depths |
| TII | is target instruction info, used to call target hook |
| Pattern | is used to call target hook finalizeInsInstrs |
| IncrementalUpdate | if 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().
| DEBUG_TYPE |
Definition at line 120 of file MachineCombiner.cpp.
| Machine false |
Definition at line 121 of file MachineCombiner.cpp.
Definition at line 120 of file MachineCombiner.cpp.