[llvm-commits] Intrinsic address space patch

Mon P Wang monping at apple.com
Fri Jul 25 15:51:47 PDT 2008


Here is an updated patch for intrinsic address space.  The effects are  
the same.  The main difference between this patch and the other one is  
that instead of assuming a pointer may or may not be overloaded, I  
have introduced a new type iPTRAny which indicates that the  pointer  
can be overloaded based on an address spaces.  This would allow us to  
overload intrinsics based only on a pointer.  The iPTRAny should only  
be used in TableGen (and part of the Verifier)  and has the same  
semantics of iPTR except for the overloading.  Please let me know if  
you have any comments.

   -- Mon Ping

On Thu, July 17, 2008 3:56 pm, Mon P Wang wrote:
> Here is a patch to enable intrinsic to have pointers to different
> address spaces.  This changes overloaded intrinsics with pointer
> arguments to pass also an address space as part of their name.
>    For example,  atomic.load.add.i32 => atomic.load.add.i32.p0i32
> The above syntax indicates that the result is i32 with a pointer
> argument to address space 0 (generic address space) whose domain type
> is i32.  The patch here doesn't include the documentation change but
> that will be included as part of the checkin.  Let me know if you have
> any comments.
> -- Mon Ping

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20080725/65746512/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: addrspace4.patch
Type: application/octet-stream
Size: 39291 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20080725/65746512/attachment.obj>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20080725/65746512/attachment-0001.html>

More information about the llvm-commits mailing list