LLVM 22.0.0git
llvm::ExtAddrMode Struct Reference

Used to describe addressing mode similar to ExtAddrMode in CodeGenPrepare. More...

#include "llvm/CodeGen/TargetInstrInfo.h"

Public Types

enum class  Formula { Basic = 0 , SExtScaledReg = 1 , ZExtScaledReg = 2 }

Public Member Functions

 ExtAddrMode ()=default

Public Attributes

Register BaseReg
Register ScaledReg
int64_t Scale = 0
int64_t Displacement = 0
Formula Form = Formula::Basic

Detailed Description

Used to describe addressing mode similar to ExtAddrMode in CodeGenPrepare.

It holds the register values, the scale value and the displacement. It also holds a descriptor for the expression used to calculate the address from the operands.

Definition at line 95 of file TargetInstrInfo.h.

Member Enumeration Documentation

◆ Formula

enum class llvm::ExtAddrMode::Formula
strong
Enumerator
Basic 
SExtScaledReg 
ZExtScaledReg 

Definition at line 96 of file TargetInstrInfo.h.

Constructor & Destructor Documentation

◆ ExtAddrMode()

llvm::ExtAddrMode::ExtAddrMode ( )
default

Member Data Documentation

◆ BaseReg

◆ Displacement

◆ Form

◆ Scale

◆ ScaledReg


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