[LLVMdev] Question about PTXFrameLowering

Lei Mou lei.mou.uu at gmail.com
Mon Apr 16 03:48:47 PDT 2012


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!

Yours Sincerely,
Lei Mou
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20120416/6322db21/attachment.html>


More information about the llvm-dev mailing list