source: icGREP/icgrep-devel/icgrep/pablo/optimizers/booleanreassociationpass.h @ 4748

Last change on this file since 4748 was 4748, checked in by nmedfort, 4 years ago

First (hopefully) working version of the boolean reassociation pass + some bug fixes.

File size: 454 bytes
RevLine 
[4736]1#ifndef BOOLEANREASSOCIATIONPASS_H
2#define BOOLEANREASSOCIATIONPASS_H
3
4#include <pablo/codegenstate.h>
5
6namespace pablo {
7
8class BooleanReassociationPass {   
9    using Terminals = std::vector<Statement *>;
10public:
11    static bool optimize(PabloFunction & function);
12protected:
13    BooleanReassociationPass();
14    void scan(PabloFunction & function);
15    void scan(PabloBlock & block, Terminals && terminals);
16};
17
18}
19
20#endif // BOOLEANREASSOCIATIONPASS_H
Note: See TracBrowser for help on using the repository browser.