[PATCH] D88345: [CUDA] Allow local `static const {__constant__, __device__}` variables.

Yaxun Liu via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Sat Sep 26 04:38:10 PDT 2020


yaxunl added inline comments.


================
Comment at: clang/test/CodeGenCUDA/static-device-var-no-rdc.cu:84
+  const static __constant__ int local_static_constant = 42;
+  const static __device__ int local_static_device = 43;
   a[0] = x;
----------------
what happens to a const static device or constant var with non-trivial constructor? can we have a test for that?


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D88345/new/

https://reviews.llvm.org/D88345



More information about the cfe-commits mailing list