[PATCH] D47154: Try to make builtin address space declarations not useless

Yaxun Liu via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Fri Jul 27 09:18:03 PDT 2018


yaxunl requested changes to this revision.
yaxunl added inline comments.
This revision now requires changes to proceed.


================
Comment at: lib/Basic/Targets/AMDGPU.h:398
+
+  LangAS getCUDABuiltinAddressSpace(unsigned AS) const override {
+    return LangAS::Default;
----------------
I am wondering how this would work for CUDA/HIP.

Let's say a builtin is supposed to return a pointer to addrspace 4.

Now in HIP this builtin is returning a pointer to addrspace 0.

How would that work? 


https://reviews.llvm.org/D47154





More information about the cfe-commits mailing list