summaryrefslogtreecommitdiffstats
path: root/source/slang/slang-emit.cpp
diff options
context:
space:
mode:
authorYong He <yonghe@outlook.com>2020-09-17 16:46:23 -0700
committerGitHub <noreply@github.com>2020-09-17 16:46:23 -0700
commit2ddca33686c08e1833c0d82a420fb2b27cde4e37 (patch)
treeeac30dde6995ed16afbf89bf00b1bf76e7ebfb1f /source/slang/slang-emit.cpp
parent017acb3b58df51ec8bf3bb7eb9f66e58b6713145 (diff)
Initial attempt to enable CUDA dynamic dispatch codegen (#1549)
* Front-load cuda module loading to fill in RTTI pointers. * Enable dynamic dispatch codegen for CUDA.
Diffstat (limited to 'source/slang/slang-emit.cpp')
-rw-r--r--source/slang/slang-emit.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/source/slang/slang-emit.cpp b/source/slang/slang-emit.cpp
index 09e5c9b2d..4b7b13e4f 100644
--- a/source/slang/slang-emit.cpp
+++ b/source/slang/slang-emit.cpp
@@ -310,6 +310,7 @@ Result linkAndOptimizeIR(
switch (target)
{
case CodeGenTarget::CPPSource:
+ case CodeGenTarget::CUDASource:
// For targets that supports dynamic dispatch, we need to lower the
// generics / interface types to ordinary functions and types using
// function pointers.
@@ -666,6 +667,7 @@ Result linkAndOptimizeIR(
switch (target)
{
case CodeGenTarget::CPPSource:
+ case CodeGenTarget::CUDASource:
break;
default:
// For all targets that don't support true dynamic dispatch through