<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div>I am slightly unclear about the semantics of the addrspace attribute and there use with intrinsics. For example, is the following code valid:</div><div><br></div><div>%ptr      = malloc i32 addrspace(11)</div><div>%result = call i32 @llvm.atomic.load.add.i32( i32 addrspace(11)* %ptr, i32 4);</div><div><br></div><div>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. </div><div><br></div><div>Ben</div><div><span class="Apple-style-span" style="font-family: Times; font-size: 16px; "></span></div></body></html>