[PATCH] D31042: Allow DataLayout to specify addrspace for allocas.
Matt Arsenault via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Mar 27 15:21:36 PDT 2017
arsenm added a comment.
In https://reviews.llvm.org/D31042#711661, @rjmccall wrote:
> In https://reviews.llvm.org/D31042#711648, @arsenm wrote:
>
> > LLVM treats 0 as the "generic" address space. This is how the LangRef refers to it.
>
>
> You're revising LangRef here one way or the other. I'm suggesting that a better revision would be to stop saying that address space 0 is the "generic" address space (because there is no such thing), and instead say that it is the address space of the stack. Is there anything actually preventing you from doing that?
Yes. The pointer size of the stack smaller than the pointer size for code or most other memory. 0 is a valid, dereferencable pointer for the stack address space
https://reviews.llvm.org/D31042
More information about the llvm-commits
mailing list