[cfe-commits] patch: preserve address space
Chris Lattner
clattner at apple.com
Thu Jan 22 16:15:52 PST 2009
On Jan 21, 2009, at 11:30 PM, Mon Ping Wang wrote:
> Hi Chris,
>
> The spec seems to imply that "p1->arr" should be type [int3] which
> means that
> int* ptr = p1->arr;
>
> is legal as the type are compatible though it is changing address
> spaces.
>
> From an implementation, it looks like today the LValue for the
> address has the correct address qualified type. The Expression type
> for "p1->arr" would be have a different address space for its type.
> CodeGen should be aware of this and not generate a bit cast to
> change the address space between the two types and make sure that in
> the LLVM IR we generate, the address space is passed correctly in
> the types.
Hi Mon Ping,
Does this mean that you agree with my interpretation? Are you asking
a question? :)
-Chris
More information about the cfe-commits
mailing list