[PATCH] Initial support for __sptr and __uptr

Aaron Ballman aaron at aaronballman.com
Mon May 13 17:37:54 PDT 2013


__sptr and __uptr are pointer type qualifiers that relate to __ptr32
and __ptr64.  Specifically, they specify how pointers are supposed to
be converted (sign extended or zero extended).  For more information,
see MSDN: http://msdn.microsoft.com/en-us/library/aa983399.aspx

This patch brings in parsing support, some semantic warnings and test
cases for code which uses __sptr and __uptr in conjunction with
__ptr32 and __ptr64.  A future patch will have to be made to hook into
the codegen machinery to support __ptr32 and __ptr64 more fully.

This patch is modeled after the existing __ptr32 and __ptr64 support.

~Aaron
-------------- next part --------------
A non-text attachment was scrubbed...
Name: sptr_uptr.patch
Type: application/octet-stream
Size: 8621 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20130513/eb1b55a7/attachment.obj>


More information about the cfe-commits mailing list