[LLVMdev] addrspace attribute and intrisics
Benedict Gaster
Benedict.Gaster at amd.com
Thu Jul 3 07:58:02 PDT 2008
I am slightly unclear about the semantics of the addrspace attribute
and there use with intrinsics. For example, is the following code valid:
%ptr = malloc i32 addrspace(11)
%result = call i32 @llvm.atomic.load.add.i32( i32 addrspace(11)* %ptr,
i32 4);
If this is valid it means that a certain amount of type information is
lost at the LLVM IL level and if it is not valid, then it is
impossible to use any of the built-in functions for anything other
than the default address space.
Ben
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20080703/cc61090a/attachment.html>
More information about the llvm-dev
mailing list