LLVM 24.0.0git
MipsMulMulBugPass.cpp File Reference

Go to the source code of this file.

Macros

#define DEBUG_TYPE   "mips-mulmul-bug-fix"

Functions

static INITIALIZE_PASS(MipsMulMulBugFixLegacy, "mips-mulmul-bug-fix", "Mips VR4300 mulmul bugfix", false, false) char MipsMulMulBugFixLegacy bool isFirstMul (const MachineInstr &MI)
static bool isSecondMulOrBranch (const MachineInstr &MI)
static bool fixMulMulBB (MachineBasicBlock &MBB, const MipsInstrInfo &MipsII)
static bool fixMulMulBugInMF (MachineFunction &MF)

Macro Definition Documentation

◆ DEBUG_TYPE

#define DEBUG_TYPE   "mips-mulmul-bug-fix"

Definition at line 34 of file MipsMulMulBugPass.cpp.

Function Documentation

◆ fixMulMulBB()

◆ fixMulMulBugInMF()

bool fixMulMulBugInMF ( MachineFunction & MF)
static

◆ isFirstMul()

INITIALIZE_PASS(MipsMulMulBugFixLegacy, "mips-mulmul-bug-fix", "Mips VR4300 mulmul bugfix", false, false) char MipsMulMulBugFixLegacy bool isFirstMul ( const MachineInstr & MI)
static

Definition at line 67 of file MipsMulMulBugPass.cpp.

References const, isFirstMul(), and MI.

Referenced by fixMulMulBB(), and isFirstMul().

◆ isSecondMulOrBranch()

bool isSecondMulOrBranch ( const MachineInstr & MI)
static

Definition at line 79 of file MipsMulMulBugPass.cpp.

References MI.

Referenced by fixMulMulBB().