summaryrefslogtreecommitdiffstats
path: root/source/slang/slang-check-overload.cpp
diff options
context:
space:
mode:
authorYong He <yonghe@outlook.com>2022-10-27 12:19:30 -0700
committerGitHub <noreply@github.com>2022-10-27 12:19:30 -0700
commit0cbef6fd6d7924d37ef3ea5ec7c848c80947d13f (patch)
tree173fa18c39638e7d41ae092b9012554cb867a31b /source/slang/slang-check-overload.cpp
parent351e78f3abc54f114237d4af64f8199476ebf176 (diff)
Rename `__jvp`-->`__fwd_diff`. (#2471)
Co-authored-by: Yong He <yhe@nvidia.com>
Diffstat (limited to 'source/slang/slang-check-overload.cpp')
-rw-r--r--source/slang/slang-check-overload.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/source/slang/slang-check-overload.cpp b/source/slang/slang-check-overload.cpp
index eadf2f63d..ef067c06c 100644
--- a/source/slang/slang-check-overload.cpp
+++ b/source/slang/slang-check-overload.cpp
@@ -1548,11 +1548,11 @@ namespace Slang
// Lookup the higher order function and process types accordingly. In the future,
// if there are enough varieties, we can have dispatch logic instead of an
// if-else ladder.
- if (auto jvpExpr = as<JVPDifferentiateExpr>(funcExpr))
+ if (auto jvpExpr = as<ForwardDifferentiateExpr>(funcExpr))
{
if (auto origFuncType = as<FuncType>(jvpExpr->baseFunction->type))
{
- // Case: __jvp(name-resolved-to-decl-ref)
+ // Case: __fwd_diff(name-resolved-to-decl-ref)
auto baseFuncDeclRef = as<DeclRefExpr>(jvpExpr->baseFunction)->declRef.as<CallableDecl>();
SLANG_ASSERT(baseFuncDeclRef);
@@ -1567,7 +1567,7 @@ namespace Slang
}
else if (auto origOverloadedType = as<OverloadGroupType>(jvpExpr->baseFunction->type))
{
- // Case: __jvp(name-resolved-to-multiple-decl-ref)
+ // Case: __fwd_diff(name-resolved-to-multiple-decl-ref)
if (auto overloadExpr = as<OverloadedExpr>(jvpExpr->baseFunction))
{
@@ -1595,7 +1595,7 @@ namespace Slang
}
else if (auto baseFuncGenericDeclRef = as<DeclRefExpr>(jvpExpr->baseFunction)->declRef.as<GenericDecl>())
{
- // Case: __jvp(name-resolved-to-generic-decl)
+ // Case: __fwd_diff(name-resolved-to-generic-decl)
// Get inner function
DeclRef<Decl> unspecializedInnerRef = DeclRef<Decl>(