LLVM 22.0.0git
Classes | Public Types | Public Member Functions | Public Attributes | List of all members
llvm::X86AddressMode Struct Reference

X86AddressMode - This struct holds a generalized full x86 address mode. More...

#include "Target/X86/X86InstrBuilder.h"

Classes

union  BaseUnion
 

Public Types

enum  { RegBase , FrameIndexBase }
 

Public Member Functions

void getFullAddress (SmallVectorImpl< MachineOperand > &MO)
 

Public Attributes

enum llvm::X86AddressMode:: { ... }  BaseType = RegBase
 
union llvm::X86AddressMode::BaseUnion Base
 
unsigned Scale = 1
 
Register IndexReg
 
int Disp = 0
 
const GlobalValueGV = nullptr
 
unsigned GVOpFlags = 0
 
bool CP = false
 

Detailed Description

X86AddressMode - This struct holds a generalized full x86 address mode.

The base register can be a frame index, which will eventually be replaced with BP or SP and Disp being offsetted accordingly. The displacement may also include the offset of a global value.

Definition at line 42 of file X86InstrBuilder.h.

Member Enumeration Documentation

◆ anonymous enum

anonymous enum
Enumerator
RegBase 
FrameIndexBase 

Definition at line 43 of file X86InstrBuilder.h.

Member Function Documentation

◆ getFullAddress()

void llvm::X86AddressMode::getFullAddress ( SmallVectorImpl< MachineOperand > &  MO)
inline

Member Data Documentation

◆ Base

union llvm::X86AddressMode::BaseUnion llvm::X86AddressMode::Base

◆ 

enum { ... } llvm::X86AddressMode::BaseType

◆ CP

bool llvm::X86AddressMode::CP = false

Definition at line 57 of file X86InstrBuilder.h.

Referenced by X86SelectAddress().

◆ Disp

int llvm::X86AddressMode::Disp = 0

◆ GV

const GlobalValue* llvm::X86AddressMode::GV = nullptr

◆ GVOpFlags

unsigned llvm::X86AddressMode::GVOpFlags = 0

Definition at line 56 of file X86InstrBuilder.h.

Referenced by llvm::addFullAddress(), getFullAddress(), and X86SelectAddress().

◆ IndexReg

Register llvm::X86AddressMode::IndexReg

◆ Scale

unsigned llvm::X86AddressMode::Scale = 1

The documentation for this struct was generated from the following file: