summaryrefslogtreecommitdiffstats
path: root/source/slang/slang-ir-diff-call.cpp
diff options
context:
space:
mode:
authorYong He <yonghe@outlook.com>2022-10-27 14:38:44 -0700
committerGitHub <noreply@github.com>2022-10-27 14:38:44 -0700
commitf9b1c565abbfc93bf2c8d4742f3db13e07db5e62 (patch)
tree4a4add20fd1db56df5984c20264389d4f23fc8f0 /source/slang/slang-ir-diff-call.cpp
parente6dc9a9eed58bdfd9c6f4016864acfe60381f927 (diff)
More renaming in jvp pass. (#2475)
Co-authored-by: Yong He <yhe@nvidia.com>
Diffstat (limited to 'source/slang/slang-ir-diff-call.cpp')
-rw-r--r--source/slang/slang-ir-diff-call.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/source/slang/slang-ir-diff-call.cpp b/source/slang/slang-ir-diff-call.cpp
index 34e7e3de0..a574d6b7e 100644
--- a/source/slang/slang-ir-diff-call.cpp
+++ b/source/slang/slang-ir-diff-call.cpp
@@ -62,9 +62,9 @@ struct DerivativeCallProcessContext
//
if (auto origSpecialize = as<IRSpecialize>(origCallable))
{
- if (auto jvpSpecRefDecorator = origSpecialize->findDecoration<IRJVPDerivativeReferenceDecoration>())
+ if (auto jvpSpecRefDecorator = origSpecialize->findDecoration<IRForwardDerivativeDecoration>())
{
- jvpCallable = jvpSpecRefDecorator->getJVPFunc();
+ jvpCallable = jvpSpecRefDecorator->getForwardDerivativeFunc();
}
}
@@ -73,9 +73,9 @@ struct DerivativeCallProcessContext
// Check for the 'JVPDerivativeReference' decorator on the
// base function.
//
- if (auto jvpRefDecorator = origCallable->findDecoration<IRJVPDerivativeReferenceDecoration>())
+ if (auto jvpRefDecorator = origCallable->findDecoration<IRForwardDerivativeDecoration>())
{
- jvpCallable = jvpRefDecorator->getJVPFunc();
+ jvpCallable = jvpRefDecorator->getForwardDerivativeFunc();
}
SLANG_ASSERT(jvpCallable);