There are a lot of load/store instructions for accessing variable in stack
slot. The following message is use "llc -march=ppc32" command and dump
from
MachineFunction.
%reg16384<def> = LWZ 0, <fi#6>; mem:LD4[%b] GPRC:%reg16384
%reg16385<def> = LWZ 0, <fi#5>; mem:LD4[%c] GPRC:%reg16385
%reg16386<def> = ADD4 %reg16384<kill>,
%reg16385<kill>;
GPRC:%reg16386,16384,16385
STW %reg16386<kill>, 0, <fi#7>; mem:ST4[%a] GPRC:%reg16386
I am interesting in this method because it seems smart and different from
the compiler textbook. For understanding how it generated the LWZ and STW
machine instruction, I search whole the LLVM2.8 and find somewhere about
LWZ/STW in Target/PowerPC/ ,but there is nothing through here. Is there any
other special way to generate those MachineInstr ?
Thanks & Regards,
Don
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
<http://lists.llvm.org/pipermail/llvm-dev/attachments/20110614/8c7b935c/attachment.html>