[LLVMdev] Newbie: Target Lowering info.
llvmdev at gmail.com
Thu Nov 29 12:48:12 PST 2007
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?
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.
> > 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
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the llvm-dev