Yaxun (Sam) Liu
d7e1932f85
[HIP] Fix comdat of template kernel handle ( #66283 )
...
Currently, clang emits LLVM IR that fails verifier for the following
code:
```
template<typename T>
__global__ void foo(T x);
void bar() {
foo<<<1, 1>>>(0);
}
```
This is due to clang putting the kernel handle for foo into comdat,
which is not allowed, since the kernel handle is a declaration.
The siutation is similar to calling a declaration-only template
function. The callee will be a declaration in LLVM IR and won't be put
into comdat. This is in contrast to calling a template function with
body, which will be put into comdat.
Fixes: SWDEV-419769
2023-09-14 15:56:02 -04:00
..
2023-07-17 15:45:49 -04:00
2022-12-13 11:50:08 +01:00
2023-08-07 14:08:04 -05:00
2023-05-14 21:00:15 +03:00
2023-05-31 15:19:31 -04:00
2023-05-27 13:33:50 +08:00
2023-08-29 06:35:44 -05:00
2023-09-12 15:13:59 +05:30
2023-01-17 10:08:57 +01:00
2023-07-27 16:36:02 -04:00
2022-09-02 12:36:44 -07:00
2023-09-13 08:31:31 -05:00
2023-06-06 12:03:48 -04:00
2023-05-30 22:22:43 +01:00
2022-06-23 12:46:00 +02:00
2023-06-28 11:57:13 -07:00
2023-03-21 15:36:12 -07:00
2022-12-13 11:50:08 +01:00
2023-01-10 13:07:01 -05:00
2023-05-25 11:57:57 -07:00
2022-12-13 11:50:08 +01:00
2022-12-13 11:50:08 +01:00
2023-08-11 19:32:39 -04:00
2022-12-13 11:50:08 +01:00
2022-12-12 17:11:46 +01:00
2022-12-13 11:50:08 +01:00
2022-05-26 09:18:22 -04:00
2023-02-17 15:08:50 +01:00
2023-05-14 21:00:15 +03:00
2022-12-13 11:50:08 +01:00
2022-12-13 11:50:08 +01:00
2022-04-25 18:13:23 +01:00
2023-09-07 23:18:30 -04:00
2023-06-06 12:03:48 -04:00
2023-09-11 17:04:55 -04:00
2023-01-19 15:02:14 -08:00
2022-06-24 11:15:36 -04:00
2022-12-13 11:50:08 +01:00
2023-08-11 16:37:42 -07:00
2023-07-13 16:54:57 -07:00
2022-12-13 11:50:08 +01:00
2023-09-14 15:56:02 -04:00
2022-12-13 11:50:08 +01:00
2022-12-13 11:50:08 +01:00
2022-12-13 11:50:08 +01:00
2022-12-13 11:50:08 +01:00
2023-06-07 15:51:52 +02:00
2023-09-08 11:20:16 +02:00
2022-10-15 14:02:13 -07:00
2022-12-13 11:50:08 +01:00
2023-07-20 12:02:33 -04:00
2023-05-14 21:00:15 +03:00
2023-08-08 09:50:24 -04:00
2023-08-18 11:39:11 -07:00
2022-05-10 14:32:27 -04:00
2022-07-13 21:49:15 -04:00
2022-03-24 15:19:47 -04:00
2022-12-13 11:50:08 +01:00
2023-02-15 08:32:57 -04:00
2022-12-13 11:50:08 +01:00
2022-12-13 11:50:08 +01:00
2022-07-21 12:36:54 -05:00
2023-05-14 21:00:15 +03:00
2023-02-17 15:08:50 +01:00
2022-04-28 19:54:43 -04:00
2023-05-14 21:00:15 +03:00
2022-03-30 09:51:24 +02:00
2022-01-16 18:54:17 +09:00
2023-05-14 21:00:15 +03:00
2023-05-14 21:00:15 +03:00