LLVM: llvm::ExtAddrMode Struct Reference (original) (raw)
Used to describe addressing mode similar to ExtAddrMode in CodeGenPrepare. More...
#include "[llvm/CodeGen/TargetInstrInfo.h](TargetInstrInfo%5F8h%5Fsource.html)"
| Public Types | |
|---|---|
| enum class | Formula { Basic = 0 , SExtScaledReg = 1 , ZExtScaledReg = 2 } |
| Public Member Functions |
|---|
| 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
Constructor & Destructor Documentation
| llvm::ExtAddrMode::ExtAddrMode ( ) | default |
|---|
Member Data Documentation
◆ BaseReg
◆ Displacement
int64_t llvm::ExtAddrMode::Displacement = 0
◆ Form
Formula llvm::ExtAddrMode::Form = Formula::Basic
◆ Scale
int64_t llvm::ExtAddrMode::Scale = 0
◆ ScaledReg
The documentation for this struct was generated from the following file:
- include/llvm/CodeGen/TargetInstrInfo.h