llvm::TargetLowering::isIndexingLegal

Return true if the given base and offset form a legal indexed addressing mode for this instruction.

Synopsis

Declared in <llvm/CodeGen/TargetLowering.h>

virtual
bool
isIndexingLegal(
    MachineInstr& MI,
    Register Base,
    Register Offset,
    bool IsPre,
    MachineRegisterInfo& MRI) const;

Description

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.

Return Value

True if the given base and offset form a legal indexed addressing mode for this instruction.

Parameters

NameDescription
MIMachine instruction being queried or modified.
BaseFilled with the base pointer.
OffsetFilled with the offset.
IsPreTrue for pre-indexed mode.
MRIMachine register info.