================ @@ -4414,6 +4414,23 @@ builtin, the mangler emits their usual pattern without any special treatment. constexpr const char * __builtin_sycl_unique_stable_name( type-id ); ``` +### `__builtin_sycl_dynamic_local_memory` ---------------- tahonermann wrote:
If I'm understanding the code correctly, it looks like this builtin should work as expected for CUDA and HIP too as is; it isn't actually specific to SYCL. HLSL doesn't seem to support any form of dynamic shared memory at present. OpenMP appears to via the `dyn_groupprivate` clause. Perhaps we should make the builtin generally available for offload languages and name it `__builtin_offload_dynamic_shared_memory`. We can still restrict actual use to SYCL (and maybe CUDA and HIP) for now. If we do that, then we should also add documentation at https://clang.llvm.org/docs/OffloadingDesign.html. https://github.com/llvm/llvm-project/pull/244373 _______________________________________________ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
