LLVM: lib/Target/X86/X86FixupLEAs.cpp File Reference (original) (raw)
Go to the source code of this file.
| Macros | |
|---|---|
| #define | FIXUPLEA_DESC "X86 LEA Fixup" |
| #define | FIXUPLEA_NAME "x86-fixup-LEAs" |
| #define | DEBUG_TYPE FIXUPLEA_NAME |
| Functions | |
|---|---|
| STATISTIC (NumLEAs, "Number of LEA instructions created") | |
| static bool | isLEA (unsigned Opcode) |
| static bool | getPreviousInstr (MachineBasicBlock::iterator &I, MachineBasicBlock &MBB) |
| getPreviousInstr - Given a reference to an instruction in a basic block, return a reference to the previous instruction in the block, wrapping around to the last instruction of the block if the block branches to itself. | |
| static bool | isInefficientLEAReg (Register Reg) |
| static bool | hasInefficientLEABaseReg (const MachineOperand &Base, const MachineOperand &Index) |
| Returns true if this LEA uses base and index registers, and the base register is known to be inefficient for the subtarget. | |
| static bool | hasLEAOffset (const MachineOperand &Offset) |
| static unsigned | getADDrrFromLEA (unsigned LEAOpcode) |
| static unsigned | getSUBrrFromLEA (unsigned LEAOpcode) |
| static unsigned | getADDriFromLEA (unsigned LEAOpcode, const MachineOperand &Offset) |
| static unsigned | getINCDECFromLEA (unsigned LEAOpcode, bool IsINC) |
◆ DEBUG_TYPE
#define DEBUG_TYPE FIXUPLEA_NAME
◆ FIXUPLEA_DESC
#define FIXUPLEA_DESC "X86 LEA Fixup"
◆ FIXUPLEA_NAME
#define FIXUPLEA_NAME "x86-fixup-LEAs"
◆ getADDriFromLEA()
◆ getADDrrFromLEA()
◆ getINCDECFromLEA()
◆ getPreviousInstr()
getPreviousInstr - Given a reference to an instruction in a basic block, return a reference to the previous instruction in the block, wrapping around to the last instruction of the block if the block branches to itself.
Definition at line 290 of file X86FixupLEAs.cpp.
◆ getSUBrrFromLEA()
◆ hasInefficientLEABaseReg()
◆ hasLEAOffset()
◆ isInefficientLEAReg()
◆ isLEA()
◆ STATISTIC()
| STATISTIC | ( | NumLEAs | , |
|---|---|---|---|
| "Number of LEA instructions created" | ) |