summaryrefslogtreecommitdiff
path: root/source/slang/slang-ast-support-types.cpp
diff options
context:
space:
mode:
authorYong He <yonghe@outlook.com>2023-05-12 16:15:36 -0700
committerGitHub <noreply@github.com>2023-05-12 16:15:36 -0700
commitcd6064201eb8443918054588002a442459113ed4 (patch)
tree9dc5e60abe2aa8bca810c631fdd62758093992f5 /source/slang/slang-ast-support-types.cpp
parent65103bc9a0c72117d3c9410e361947cdd568ae55 (diff)
Add finalized keywords for autodiff. (#2882)
Co-authored-by: Yong He <yhe@nvidia.com>
Diffstat (limited to 'source/slang/slang-ast-support-types.cpp')
-rw-r--r--source/slang/slang-ast-support-types.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/source/slang/slang-ast-support-types.cpp b/source/slang/slang-ast-support-types.cpp
index 6e3c326fb..b446221ff 100644
--- a/source/slang/slang-ast-support-types.cpp
+++ b/source/slang/slang-ast-support-types.cpp
@@ -62,9 +62,9 @@ Expr* getInnerMostExprFromHigherOrderExpr(Expr* expr, FunctionDifferentiableLeve
UnownedStringSlice getHigherOrderOperatorName(HigherOrderInvokeExpr* expr)
{
if (as<ForwardDifferentiateExpr>(expr))
- return UnownedStringSlice("__fwd_diff");
+ return UnownedStringSlice("fwd_diff");
else if (as<BackwardDifferentiateExpr>(expr))
- return UnownedStringSlice("__bwd_diff");
+ return UnownedStringSlice("bwd_diff");
return UnownedStringSlice();
}
}