[LLVMdev] LSR pass
richard at xmos.com
Tue Dec 4 07:54:16 PST 2012
LSR queries TargetLowering::isLegalAddressingMode() to find out if a
particular addressing mode is legal:
/// isLegalAddressingMode - Return true if the addressing mode
/// AM is legal for this target, for a load/store of the specified type.
/// The type may be VoidTy, in which case only return true if the addressing
/// mode is legal for a load/store of any legal type.
You'll need to implement this hook in your target.
On 04/12/12 15:27, Jonas Paulsson wrote:
> The target supports indexing by register or immediate. Multiplications are not supported by any load / store instructions. Would it be possible to make LSR aware of this?
> Jonas Paulsson
Richard Osborne | XMOS
More information about the llvm-dev