LLVM 20.0.0git
Macros | Functions
MachineLateInstrsCleanup.cpp File Reference
#include "llvm/ADT/BitVector.h"
#include "llvm/ADT/PostOrderIterator.h"
#include "llvm/ADT/Statistic.h"
#include "llvm/CodeGen/MachineBasicBlock.h"
#include "llvm/CodeGen/MachineFunction.h"
#include "llvm/CodeGen/MachineFunctionPass.h"
#include "llvm/CodeGen/MachineInstr.h"
#include "llvm/CodeGen/MachineOperand.h"
#include "llvm/CodeGen/TargetInstrInfo.h"
#include "llvm/CodeGen/TargetRegisterInfo.h"
#include "llvm/CodeGen/TargetSubtargetInfo.h"
#include "llvm/InitializePasses.h"
#include "llvm/Pass.h"
#include "llvm/Support/Debug.h"

Go to the source code of this file.

Macros

#define DEBUG_TYPE   "machine-latecleanup"
 

Functions

 STATISTIC (NumRemoved, "Number of redundant instructions removed.")
 
 INITIALIZE_PASS (MachineLateInstrsCleanup, DEBUG_TYPE, "Machine Late Instructions Cleanup Pass", false, false) bool MachineLateInstrsCleanup
 
static bool isCandidate (const MachineInstr *MI, Register &DefedReg, Register FrameReg)
 

Macro Definition Documentation

◆ DEBUG_TYPE

#define DEBUG_TYPE   "machine-latecleanup"

Definition at line 33 of file MachineLateInstrsCleanup.cpp.

Function Documentation

◆ INITIALIZE_PASS()

INITIALIZE_PASS ( MachineLateInstrsCleanup  ,
DEBUG_TYPE  ,
"Machine Late Instructions Cleanup Pass"  ,
false  ,
false   
)

Definition at line 88 of file MachineLateInstrsCleanup.cpp.

References MBB, TII, and TRI.

◆ isCandidate()

static bool isCandidate ( const MachineInstr MI,
Register DefedReg,
Register  FrameReg 
)
static

◆ STATISTIC()

STATISTIC ( NumRemoved  ,
"Number of redundant instructions removed."   
)

References TII, and TRI.