Return true if the given base and offset form a legal indexed addressing mode for this instruction.
Declared in <llvm/CodeGen/TargetLowering.h>
virtual
bool
isIndexingLegal(
MachineInstr& MI,
Register Base,
Register Offset,
bool IsPre,
MachineRegisterInfo& MRI) const;
Returns true if the specified base+offset is a legal indexed addressing mode for this target. MI is the load or store instruction that is being considered for transformation.
True if the given base and offset form a legal indexed addressing mode for this instruction.
| Name | Description |
|---|---|
| MI | Machine instruction being queried or modified. |
| Base | Filled with the base pointer. |
| Offset | Filled with the offset. |
| IsPre | True for pre-indexed mode. |
| MRI | Machine register info. |