[LLVMdev] Newbie: Target Lowering info.

Sanjiv Gupta llvmdev at gmail.com
Thu Nov 29 12:48:12 PST 2007


thanks Evan,
I have just started writing td files.

Any ideas how do I describe instructions for an accumulator based machine.
The other pecularity is that we do not want to have any software stack.
So the instructions like load and store have no meanings.

In that case,   how do I lower instructions that operate on stack frame?

TIA,
Sanjiv

On 11/26/07, Evan Cheng <evan.cheng at apple.com> wrote:
>
>
> On Nov 24, 2007, at 7:28 PM, Sanjiv Gupta wrote:
>
> > Could anybody guide me what information do I need to know about my
> > target in order to provide the target lowering info to the llvm DAG
> > generator? We do not have any fixed registers for argument passing.
> > Everything including the formal and actual arguments will take part in
> > a global interprocedural regalloc.
>
> You don't have to formally specify calling convention. For example,
> ARM backend does not have a ARMCallingConv.td file, all the argument
> passing info are implicitly defined in the lowering code.
>
> To start, you should specify legal register files, legal operations,
> etc. See XXXISelLowering.cpp for examples.
>
> Evan
>
> >
> >
> > Any pointers to learn about this will be a great help.
> > Sanjiv
> > _______________________________________________
> > LLVM Developers mailing list
> > LLVMdev at cs.uiuc.edu         http://llvm.cs.uiuc.edu
> > http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev
>
> _______________________________________________
> LLVM Developers mailing list
> LLVMdev at cs.uiuc.edu         http://llvm.cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20071129/cde05449/attachment.html>


More information about the llvm-dev mailing list