2007/6/20, Peltier, Mikael <m-peltier at ti.com>:>
>
>
> Hello,
>
Hi,
I want to find information/documentation on how reorganize stack frame
(add> other information, etc.) & how add new calling convention into ARM
backend?
>
>
>
> I think it is needed to modify lowering of CALL, RET & FORMAL_ARGUMENT
> instruction, and also to modify emitPrologue & emitEpilogue functions.
>
>
>
> What are the others things to modify in order to realize my
> experimentation? Is it the best way to do it?
>
You can specify different calling conventions on the specific arch file
<ARCH>CallingConv.td (see X86/PowerPC/Mips for examples).
They must be handled on the lowering of CALL, RET and FORMAL_ARGUMENTS!
Take a look at the following functions called in <ARCH>ISelLowering.cpp :
CCInfo.AnalyzeCallOperands
CCInfo.AnalyzeCallResult
CCInfo.AnalyzeFormalArguments
CCInfo.AnalyzeReturn
Thanks in advance.>
>
>
> Mikaël.
>
Cheers,
_______________________________________________> LLVM Developers mailing list
> LLVMdev at cs.uiuc.edu http://llvm.cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev
>
>
--
Bruno Cardoso Lopes
http://www.brunocardoso.org
"The Man in Black fled across the desert and the gunslinger followed"
- Childe Roland to the Dark Tower Came
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
<http://lists.llvm.org/pipermail/llvm-dev/attachments/20070620/9dc47188/attachment.html>