Skip to content

Commit

Permalink
Simplify the Jacobian visitors. NFC
Browse files Browse the repository at this point in the history
  • Loading branch information
vgvassilev committed Jun 11, 2024
1 parent 6efcd08 commit 340ad91
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 94 deletions.
44 changes: 0 additions & 44 deletions include/clad/Differentiator/JacobianModeVisitor.h

This file was deleted.

1 change: 0 additions & 1 deletion lib/Differentiator/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@ llvm_add_library(cladDifferentiator
ErrorEstimator.cpp
EstimationModel.cpp
HessianModeVisitor.cpp
JacobianModeVisitor.cpp
MultiplexExternalRMVSource.cpp
PushForwardModeVisitor.cpp
ReverseModeForwPassVisitor.cpp
Expand Down
5 changes: 2 additions & 3 deletions lib/Differentiator/DerivativeBuilder.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@
#include "clad/Differentiator/DiffPlanner.h"
#include "clad/Differentiator/ErrorEstimator.h"
#include "clad/Differentiator/HessianModeVisitor.h"
#include "clad/Differentiator/JacobianModeVisitor.h"
#include "clad/Differentiator/PushForwardModeVisitor.h"
#include "clad/Differentiator/ReverseModeForwPassVisitor.h"
#include "clad/Differentiator/ReverseModeVisitor.h"
Expand Down Expand Up @@ -371,8 +370,8 @@ static void registerDerivative(FunctionDecl* derivedFD, Sema& semaRef) {
HessianModeVisitor H(*this);
result = H.Derive(FD, request);
} else if (request.Mode == DiffMode::jacobian) {
JacobianModeVisitor J(*this);
result = J.Derive(FD, request);
ReverseModeVisitor R(*this);
result = R.Derive(FD, request);
} else if (request.Mode == DiffMode::error_estimation) {
ReverseModeVisitor R(*this);
InitErrorEstimation(m_ErrorEstHandler, m_EstModel, *this);
Expand Down
46 changes: 0 additions & 46 deletions lib/Differentiator/JacobianModeVisitor.cpp

This file was deleted.

0 comments on commit 340ad91

Please sign in to comment.