[LLVMdev] LSR pass
Richard Osborne
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
represented by
/// 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:
> Hi,
>
> 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?
>
> Thanks,
>
> Jonas Paulsson
--
Richard Osborne | XMOS
http://www.xmos.com
More information about the llvm-dev
mailing list