Skip to content

Commit 2ad1ed0

Browse files
committed
Add forwardADSignalTransform pass.
1 parent e7cfce0 commit 2ad1ed0

File tree

3 files changed

+530
-2
lines changed

3 files changed

+530
-2
lines changed

compiler/propagate/propagate.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@
2424
#include "aterm.hh"
2525
#include "exception.hh"
2626
#include "floats.hh"
27+
#include "forwardADSignalTransform.hh"
2728
#include "global.hh"
2829
#include "labels.hh"
2930
#include "names.hh"
@@ -558,8 +559,7 @@ static siglist realPropagate(Tree slotenv, Tree path, Tree box, const siglist& l
558559
throw faustexception(error.str());
559560
}
560561
} else if (Tree t1; isBoxForwardAD(box, t1)) {
561-
// TODO
562-
return propagate(slotenv, path, t1, lsig);
562+
return generateADSignals(propagate(slotenv, path, t1, lsig));
563563

564564
} else if (Tree t1; isBoxReverseAD(box, t1)) {
565565
// TODO

0 commit comments

Comments
 (0)