LLVM 24.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 MipsSubtarget &Subtarget, const unsigned Opcode, const 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 123 of file MipsSERegisterInfo.cpp.

◆ getLoadStoreOffsetSizeInBits()

unsigned getLoadStoreOffsetSizeInBits ( const MipsSubtarget & Subtarget,
const unsigned Opcode,
const 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 63 of file MipsSERegisterInfo.cpp.

References F, llvm::MachineOperand::getImm(), llvm::MipsSubtarget::hasMips32r6(), llvm::MipsSubtarget::inMicroMipsMode(), and llvm::InlineAsm::ZC.