[clang] [CUDA][HIP] Exclude external variables from constant promotion. (PR #73549)
Artem Belevich via cfe-commits
cfe-commits at lists.llvm.org
Tue Dec 5 10:18:28 PST 2023
================
@@ -104,3 +106,14 @@ void fun() {
(void) b<double>;
(void) var_host_only;
}
+
+extern __global__ void external_func();
+extern void* const external_dep[] = {
+ (void*)(external_func)
+};
+extern void* const external_arr[] = {};
+
+void* host_fun() {
+ (void) external_dep;
+ (void) external_arr;
+}
----------------
Artem-B wrote:
There are no CHECK lines here.
https://github.com/llvm/llvm-project/pull/73549
More information about the cfe-commits
mailing list