LLVM 22.0.0git
MipsSERegisterInfo.cpp File Reference

Go to the source code of this file.

Macros

#define DEBUG_TYPE   "mips-reg-info"

Functions

static unsigned getLoadStoreOffsetSizeInBits (const unsigned Opcode, MachineOperand MO)
 Get the size of the offset supported by the given load/store/inline asm.
static unsigned getLoadStoreOffsetAlign (const unsigned Opcode)
 Get the scale factor applied to the immediate in the given load/store.

Macro Definition Documentation

◆ DEBUG_TYPE

#define DEBUG_TYPE   "mips-reg-info"

Definition at line 35 of file MipsSERegisterInfo.cpp.

Function Documentation

◆ getLoadStoreOffsetAlign()

unsigned getLoadStoreOffsetAlign ( const unsigned Opcode)
inlinestatic

Get the scale factor applied to the immediate in the given load/store.

Definition at line 126 of file MipsSERegisterInfo.cpp.

◆ getLoadStoreOffsetSizeInBits()

unsigned getLoadStoreOffsetSizeInBits ( const unsigned Opcode,
MachineOperand MO )
inlinestatic

Get the size of the offset supported by the given load/store/inline asm.

The result includes the effects of any scale factors applied to the instruction immediate.

Definition at line 62 of file MipsSERegisterInfo.cpp.

References F, llvm::MachineOperand::getImm(), llvm::MachineBasicBlock::getParent(), llvm::MachineInstr::getParent(), llvm::MachineOperand::getParent(), llvm::MachineFunction::getSubtarget(), llvm::MipsSubtarget::hasMips32r6(), llvm::MipsSubtarget::inMicroMipsMode(), and llvm::InlineAsm::ZC.