Return true if the described addressing mode is legal for type Ty.
Declared in <llvm/CodeGen/BasicTTIImpl.h>
bool
isLegalAddressingMode(
Type* Ty,
GlobalValue* BaseGV,
int64_t BaseOffset,
bool HasBaseReg,
int64_t Scale,
unsigned int AddrSpace,
Instruction* I = nullptr,
int64_t ScalableOffset = 0) const override;
Ty may be VoidTy to mean any legal memory type. ScalableOffset is a byte quantity multiplied by vscale.
True if the described addressing mode is legal for type Ty.
| Name | Description |
|---|---|
| Ty | Type of the load/store, or void for any legal type. |
| BaseGV | Optional global base. |
| BaseOffset | Fixed base offset in bytes. |
| HasBaseReg | Whether a base register is present. |
| Scale | Scaled-index multiplier. |
| AddrSpace | Address space of the pointer. |
| I | Optional context instruction for targets that need it. |
| ScalableOffset | Scalable (vscale-multiplied) offset in bytes. |