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

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

Initial introduction of a PabloFunction? type.

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