[llvm-commits] [PATCH] update getPointerTo to handle multiple address spaces

Chandler Carruth chandlerc at google.com
Mon Oct 29 15:02:27 PDT 2012


First let me correct a simple misunderstanding...

On Mon, Oct 29, 2012 at 2:48 PM, Villmow, Micah <Micah.Villmow at amd.com> wrote:
>> 1) The type used to "base" a pointer type on must *always* be a
>> pointer. Please go back and implement my (and Duncan, and others')
>> suggestion to assert if the type is anything other than a pointer or
>> vector of pointers. This bit of code review has been neglected for
>> over a week as churn and chaos develop in the codebase. That is
>> unacceptable.
> This was not true about the code base before I started work, so why would it be different now?

I think you're reading this wrong (and frankly, it's just confusing to read...)

Given the code "Ty->getPointerTo(OtherTy)", I expect to get a pointer
to Ty, and use OtherTy to compute the address space. I think "OtherTy"
should *have* to be a pointer if used in this way. Clearly, "Ty" can
be anything, it simply ends up as the element type of the pointer.



More information about the llvm-commits mailing list