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-ir-diff-call.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'source/slang/slang-ir-diff-call.cpp') diff --git a/source/slang/slang-ir-diff-call.cpp b/source/slang/slang-ir-diff-call.cpp index 3f2c6c789..34e7e3de0 100644 --- a/source/slang/slang-ir-diff-call.cpp +++ b/source/slang/slang-ir-diff-call.cpp @@ -34,8 +34,8 @@ struct DerivativeCallProcessContext do { auto nextChild = child->getNextInst(); - // Look for IRJVPDifferentiate - if (auto derivOf = as(child)) + // Look for IRForwardDifferentiate + if (auto derivOf = as(child)) { processDifferentiate(derivOf); } @@ -50,14 +50,14 @@ struct DerivativeCallProcessContext // Perform forward-mode automatic differentiation on // the intstructions. - void processDifferentiate(IRJVPDifferentiate* derivOfInst) + void processDifferentiate(IRForwardDifferentiate* derivOfInst) { IRInst* jvpCallable = nullptr; // First get base function auto origCallable = derivOfInst->getBaseFn(); - // Resolve the derivative function for IRJVPDifferentiate(IRSpecialize(IRFunc)) + // Resolve the derivative function for IRForwardDifferentiate(IRSpecialize(IRFunc)) // Check the specialize inst for a reference to the derivative fn. // if (auto origSpecialize = as(origCallable)) @@ -68,7 +68,7 @@ struct DerivativeCallProcessContext } } - // Resolve the derivative function for an IRJVPDifferentiate(IRFunc) + // Resolve the derivative function for an IRForwardDifferentiate(IRFunc) // // Check for the 'JVPDerivativeReference' decorator on the // base function. -- cgit v1.2.3