source: icGREP/icgrep-devel/icgrep/pablo/passes/flattenif.hpp @ 5124

Last change on this file since 5124 was 5032, checked in by xuedongx, 3 years ago

Add a Pablo option to flatten all the Ifs in the Pablo AST.

File size: 439 bytes
Line 
1#ifndef FLATTENIF_H
2#define FLATTENIF_H
3#include <pablo/codegenstate.h>
4
5namespace pablo {
6
7class PabloFunction;
8class PabloBlock;
9class Statement;
10class PabloAST;
11
12class FlattenIf {
13    friend class DistributivePass;
14    friend class FactorizeDFG;
15public:
16    static void transform(PabloFunction & function);
17protected:
18    FlattenIf() = default;
19private:
20    static void flattenIf(PabloBlock * const block);
21};
22
23}
24
25#endif // FLATTENIF_H
Note: See TracBrowser for help on using the repository browser.