summaryrefslogtreecommitdiffstats
path: root/source/slang/slang-mangle.cpp
diff options
context:
space:
mode:
authorYong He <yonghe@outlook.com>2022-11-23 09:39:08 -0800
committerGitHub <noreply@github.com>2022-11-23 09:39:08 -0800
commit97cb4851eed7a43f10196971b08d3d311386ce9f (patch)
tree99ba81368068b3345fa23b749108265aa753ed2b /source/slang/slang-mangle.cpp
parent6178cb601368e977c4aa82e0ae25b8eb1e875d84 (diff)
Autodiff through simple dynamic dispatch. (#2527)
* Autodiff through simple dynamic dispatch. * Revert changes. * Fix. Co-authored-by: Yong He <yhe@nvidia.com>
Diffstat (limited to 'source/slang/slang-mangle.cpp')
-rw-r--r--source/slang/slang-mangle.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/source/slang/slang-mangle.cpp b/source/slang/slang-mangle.cpp
index bdb5465e9..6ea9ea01e 100644
--- a/source/slang/slang-mangle.cpp
+++ b/source/slang/slang-mangle.cpp
@@ -517,6 +517,10 @@ namespace Slang
emitQualifiedName(context, innerDecl);
return;
}
+ else if (as<ForwardDerivativeRequirementDecl>(decl))
+ emitRaw(context, "FwdReq_");
+ else if (as<BackwardDerivativeRequirementDecl>(decl))
+ emitRaw(context, "BwdReq_");
else
{
// TODO: handle other cases