[PATCH] Add a note to LangRef about static allocas.

Reid Kleckner rnk at google.com
Tue Jul 1 17:31:16 PDT 2014


Sounds good to me, go for it.  I'd wordsmith it a bit.  I don't think "is
basically free" is important.  The important thing is that the stack
adjustment is folded into the function prologue.

On Tue, Jul 1, 2014 at 3:03 PM, Sean Silva <chisophugis at gmail.com> wrote:

> Hi all, the distinction between static and non-static (or "dynamic")
> allocas seems to be something that people reading the alloca section of
> LangRef would be interested in.
>
> This terminology (which stems from the name of AllocaInst::isStaticAlloca
> AFAICT) has percolated into the documentation (docs/InAlloca.rst) and is a
> distinction whose precise conditions are worth calling out explicitly to
> people looking up the alloca instruction.
>
> I wrote up a small note describing this, largely modeled after the doxygen
> on AllocaInst::isStaticAlloca.
>
> Does this seem worthwhile? Any other ideas of where to put mention of it?
>
> -- Sean Silva
>
> _______________________________________________
> llvm-commits mailing list
> llvm-commits at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20140701/34e04b9c/attachment.html>


More information about the llvm-commits mailing list