[PATCH] D98814: [CUDA][HIP] Mark device var used by host only
Yaxun Liu via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Sat Apr 17 07:47:25 PDT 2021
yaxunl marked 2 inline comments as done.
yaxunl added inline comments.
================
Comment at: clang/test/CodeGenCUDA/host-used-device-var.cu:31-33
+// Check device-used static device var is not in llvm.compiler.used.
+// CHECK-DAG: @_ZL2u4
+static __device__ int u4;
----------------
tra wrote:
> I'd rephrase it as 'but is not in llvm.compiler.used'
>
will do
================
Comment at: clang/test/CodeGenCUDA/host-used-device-var.cu:46
+}
+// CHECK: @llvm.compiler.used = {{[^@]*}} @_ZL2u3 {{[^@]*}} @u1 {{[^@]*}} @u2 {{[^@]*}} @u5
----------------
tra wrote:
> I'd add a comment that we're effectively matching the exact list of the variables here and that ensures that `@_ZL2u4` is not among them.
>
will do
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D98814/new/
https://reviews.llvm.org/D98814
More information about the cfe-commits
mailing list