[LLVMdev] Question about PTXFrameLowering
Justin Holewinski
justin.holewinski at gmail.com
Mon Apr 16 07:39:41 PDT 2012
On Mon, Apr 16, 2012 at 3:48 AM, Lei Mou <lei.mou.uu at gmail.com> wrote:
> Hi all,
>
> I'm learning the PTX backend and confused by the following problem. In the
> constructor of PTXFrameLowering, StackAlignment and LocalAreaOffset are
> assigned 2 and -2, respectively. Since PTX has neither stack frame nor
> stack pointer, why StackAlignment and LocalAreaOffset are needed and where
> does 2 and -2 come from? Any explanation is appreciated. Thank you in
> advance!
>
There's really no good reason for that. Stack frames may be set up to
store .local variables, but that functionality is not 100% right now and
needs work. The best I could say is, "don't worry about it." :)
>
> Yours Sincerely,
> Lei Mou
>
>
>
> _______________________________________________
> LLVM Developers mailing list
> LLVMdev at cs.uiuc.edu http://llvm.cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev
>
>
--
Thanks,
Justin Holewinski
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20120416/e549b348/attachment.html>
More information about the llvm-dev
mailing list