From 0cbef6fd6d7924d37ef3ea5ec7c848c80947d13f Mon Sep 17 00:00:00 2001 From: Yong He Date: Thu, 27 Oct 2022 12:19:30 -0700 Subject: Rename `__jvp`-->`__fwd_diff`. (#2471) Co-authored-by: Yong He --- source/slang/slang-check-overload.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'source/slang/slang-check-overload.cpp') 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(funcExpr)) + if (auto jvpExpr = as(funcExpr)) { if (auto origFuncType = as(jvpExpr->baseFunction->type)) { - // Case: __jvp(name-resolved-to-decl-ref) + // Case: __fwd_diff(name-resolved-to-decl-ref) auto baseFuncDeclRef = as(jvpExpr->baseFunction)->declRef.as(); SLANG_ASSERT(baseFuncDeclRef); @@ -1567,7 +1567,7 @@ namespace Slang } else if (auto origOverloadedType = as(jvpExpr->baseFunction->type)) { - // Case: __jvp(name-resolved-to-multiple-decl-ref) + // Case: __fwd_diff(name-resolved-to-multiple-decl-ref) if (auto overloadExpr = as(jvpExpr->baseFunction)) { @@ -1595,7 +1595,7 @@ namespace Slang } else if (auto baseFuncGenericDeclRef = as(jvpExpr->baseFunction)->declRef.as()) { - // Case: __jvp(name-resolved-to-generic-decl) + // Case: __fwd_diff(name-resolved-to-generic-decl) // Get inner function DeclRef unspecializedInnerRef = DeclRef( -- cgit v1.2.3