[flang] [llvm] [flang][cuda] Lower set/get default stream (PR #181775)
Valentin Clement バレンタイン クレメン via llvm-commits
llvm-commits at lists.llvm.org
Tue Feb 17 09:14:51 PST 2026
================
@@ -388,11 +388,21 @@ static constexpr IntrinsicHandler cudaHandlers[]{
&CI::genCUDAGetDefaultStreamArg),
{{{"devptr", asAddr}}},
/*isElemental=*/false},
+ {"cudagetstreamdefaultnull",
+ static_cast<CUDAIntrinsicLibrary::ElementalGenerator>(
+ &CI::genCUDAGetDefaultStreamNull),
+ {},
+ /*isElemental=*/false},
{"cudasetstreamarray",
static_cast<CUDAIntrinsicLibrary::ExtendedGenerator>(
&CI::genCUDASetDefaultStreamArray),
{{{"devptr", asAddr}, {"stream", asValue}}},
/*isElemental=*/false},
+ {"cudasetstreamdefault",
+ static_cast<CUDAIntrinsicLibrary::ExtendedGenerator>(
+ &CI::genCUDASetDefaultStream),
----------------
clementval wrote:
I kept the name in the interface to be compatible with the reference compiler but the function itself doesn't need to be that.
https://github.com/llvm/llvm-project/pull/181775
More information about the llvm-commits
mailing list