LLVM 22.0.0git
X86InstrBuilder.h File Reference

Go to the source code of this file.

Classes

struct  llvm::X86AddressMode
 X86AddressMode - This struct holds a generalized full x86 address mode. More...
union  llvm::X86AddressMode::BaseUnion

Namespaces

namespace  llvm
 This is an optimization pass for GlobalISel generic memory operations.

Functions

static X86AddressMode llvm::getAddressFromInstr (const MachineInstr *MI, unsigned Operand)
 Compute the addressing mode from an machine instruction starting with the given operand.
static const MachineInstrBuilderllvm::addDirectMem (const MachineInstrBuilder &MIB, Register Reg)
 addDirectMem - This function is used to add a direct memory reference to the current instruction – that is, a dereference of an address in a register, with no scale, index or displacement.
static void llvm::setDirectAddressInInstr (MachineInstr *MI, unsigned Operand, Register Reg)
 Replace the address used in the instruction with the direct memory reference.
static const MachineInstrBuilderllvm::addOffset (const MachineInstrBuilder &MIB, int Offset)
static const MachineInstrBuilderllvm::addOffset (const MachineInstrBuilder &MIB, const MachineOperand &Offset)
static const MachineInstrBuilderllvm::addRegOffset (const MachineInstrBuilder &MIB, Register Reg, bool isKill, int Offset)
 addRegOffset - This function is used to add a memory reference of the form [Reg + Offset], i.e., one with no scale or index, but with a displacement.
static const MachineInstrBuilderllvm::addRegReg (const MachineInstrBuilder &MIB, Register Reg1, bool isKill1, unsigned SubReg1, Register Reg2, bool isKill2, unsigned SubReg2)
 addRegReg - This function is used to add a memory reference of the form: [Reg + Reg].
static const MachineInstrBuilderllvm::addFullAddress (const MachineInstrBuilder &MIB, const X86AddressMode &AM)
static const MachineInstrBuilderllvm::addFrameReference (const MachineInstrBuilder &MIB, int FI, int Offset=0)
 addFrameReference - This function is used to add a reference to the base of an abstract object on the stack frame of the current function.
static const MachineInstrBuilderllvm::addConstantPoolReference (const MachineInstrBuilder &MIB, unsigned CPI, Register GlobalBaseReg, unsigned char OpFlags)
 addConstantPoolReference - This function is used to add a reference to the base of a constant value spilled to the per-function constant pool.