LLVM 24.0.0git
MIRCanonicalizerPass.cpp File Reference

Go to the source code of this file.

Macros

#define DEBUG_TYPE   "mir-canonicalizer"

Functions

 INITIALIZE_PASS_BEGIN (MIRCanonicalizer, "mir-canonicalizer", "Rename Register Operands Canonically", false, false) INITIALIZE_PASS_END(MIRCanonicalizer
mir Rename Register Operands static false std::vector< MachineBasicBlock * > GetRPOList (MachineFunction &MF)
static bool rescheduleLexographically (std::vector< MachineInstr * > instructions, MachineBasicBlock *MBB, std::function< MachineBasicBlock::iterator()> getPos)
static bool rescheduleCanonically (unsigned &PseudoIdempotentInstCount, MachineBasicBlock *MBB)
static bool propagateLocalCopies (MachineBasicBlock *MBB)
static bool doDefKillClear (MachineBasicBlock *MBB)
static bool runOnBasicBlock (MachineBasicBlock *MBB, unsigned BasicBlockNum, VRegRenamer &Renamer)

Variables

mir canonicalizer
mir Rename Register Operands Canonically
mir Rename Register Operands false

Macro Definition Documentation

◆ DEBUG_TYPE

#define DEBUG_TYPE   "mir-canonicalizer"

Definition at line 39 of file MIRCanonicalizerPass.cpp.

Function Documentation

◆ doDefKillClear()

bool doDefKillClear ( MachineBasicBlock * MBB)
static

Definition at line 332 of file MIRCanonicalizerPass.cpp.

References Changed, MBB, and MI.

Referenced by runOnBasicBlock().

◆ GetRPOList()

mir Rename Register Operands static false std::vector< MachineBasicBlock * > GetRPOList ( MachineFunction & MF)
static

Definition at line 72 of file MIRCanonicalizerPass.cpp.

References llvm::append_range(), and GetRPOList().

Referenced by GetRPOList().

◆ INITIALIZE_PASS_BEGIN()

INITIALIZE_PASS_BEGIN ( MIRCanonicalizer ,
"mir-canonicalizer" ,
"Rename Register Operands Canonically" ,
false ,
false  )

◆ propagateLocalCopies()

bool propagateLocalCopies ( MachineBasicBlock * MBB)
static

Definition at line 285 of file MIRCanonicalizerPass.cpp.

References Changed, Copies, MBB, MI, MRI, and Uses.

Referenced by runOnBasicBlock().

◆ rescheduleCanonically()

◆ rescheduleLexographically()

bool rescheduleLexographically ( std::vector< MachineInstr * > instructions,
MachineBasicBlock * MBB,
std::function< MachineBasicBlock::iterator()> getPos )
static

Definition at line 83 of file MIRCanonicalizerPass.cpp.

References Changed, llvm::dbgs(), II, instructions, LLVM_DEBUG, MBB, and llvm::sort().

Referenced by rescheduleCanonically().

◆ runOnBasicBlock()

bool runOnBasicBlock ( MachineBasicBlock * MBB,
unsigned BasicBlockNum,
VRegRenamer & Renamer )
static

Variable Documentation

◆ canonicalizer

mir canonicalizer

Definition at line 69 of file MIRCanonicalizerPass.cpp.

◆ Canonically

mir Rename Register Operands Canonically

Definition at line 70 of file MIRCanonicalizerPass.cpp.

◆ false

mir Rename Register Operands false

Definition at line 70 of file MIRCanonicalizerPass.cpp.