source: icGREP/icgrep-devel/icgrep/pablo/optimizers/pablo_simplifier.hpp @ 4569

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

Some work on multiplexing.

File size: 525 bytes
Line 
1#ifndef PABLO_SIMPLIFIER_HPP
2#define PABLO_SIMPLIFIER_HPP
3
4#include <pablo/codegenstate.h>
5
6namespace pablo {
7
8struct ExpressionTable;
9
10class Simplifier {
11public:
12    static bool optimize(PabloBlock & block);
13protected:
14    Simplifier();
15private:
16    static void eliminateRedundantCode(PabloBlock & block, ExpressionTable * predecessor = nullptr);
17    static void deadCodeElimination(PabloBlock & block);
18    static void eliminateRedundantComplexStatements(PabloBlock & block);
19private:
20
21};
22
23}
24#endif // PABLO_SIMPLIFIER_HPP
Note: See TracBrowser for help on using the repository browser.