================
@@ -65,3 +65,7 @@ __device__ int get_oc(__attribute__((opencl_constant)) int
*p) { return *p; }
// Function aliases point into the program address space 4.
extern "C" __device__ int alias_target() { return 1; }
[[gnu::alias("alias_target")]] __device__ int alias();
+
+// Host-only aliases are skipped on the device.
+extern "C" int host_target() { return 2; }
+[[gnu::alias("host_target")]] int host_alias();
----------------
aobolensk wrote:
Yes, it fails without the patch itself. I double checked what test in the
classic codegen and it is like that there as well
https://github.com/llvm/llvm-project/pull/234627
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits