From 79af29af91fb9601886d539526a4ec87bca3d74c Mon Sep 17 00:00:00 2001 From: Yong He Date: Thu, 27 Oct 2022 13:08:30 -0700 Subject: Rename `[__custom_jvp]` -> `[ForwardDerivative]`. (#2473) * Rename `[__custom_jvp]` -> `[ForwardDerivative]`. * Rename the classes. * More renaming. Co-authored-by: Yong He --- source/slang/slang-check-modifier.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'source/slang/slang-check-modifier.cpp') diff --git a/source/slang/slang-check-modifier.cpp b/source/slang/slang-check-modifier.cpp index e189b9114..91f655a15 100644 --- a/source/slang/slang-check-modifier.cpp +++ b/source/slang/slang-check-modifier.cpp @@ -625,7 +625,7 @@ namespace Slang callablePayloadAttr->location = (int32_t)val->value; } - else if (auto customJVPAttr = as(attr)) + else if (auto forwardDerivativeAttr = as(attr)) { SLANG_ASSERT(attr->args.getCount() == 1); SLANG_ASSERT(as(attrTarget)); @@ -723,7 +723,7 @@ namespace Slang } // TODO: Can possibly just store a DeclRef (no need for DeclRefExpr) - customJVPAttr->funcDeclRef = as(ConstructDeclRefExpr(currentDiffDeclRef, nullptr, currentDiffDeclRefExpr->loc, diffExpr)); + forwardDerivativeAttr->funcDeclRef = as(ConstructDeclRefExpr(currentDiffDeclRef, nullptr, currentDiffDeclRefExpr->loc, diffExpr)); } else if (auto comInterfaceAttr = as(attr)) { -- cgit v1.2.3