source: icGREP/icgrep-devel/icgrep/cc_compiler_helper.h @ 4197

Last change on this file since 4197 was 4197, checked in by nmedfort, 5 years ago

More refactoring of the RE system; moved the original re/RE_Compiler to compiler.cpp and the PBIX_Compiler to the re/RE_Compiler.

File size: 726 bytes
Line 
1/*
2 *  Copyright (c) 2014 International Characters.
3 *  This software is licensed to the public under the Open Software License 3.0.
4 *  icgrep is a trademark of International Characters.
5 */
6
7#ifndef COMPILER_HELPER_H
8#define COMPILER_HELPER_H
9
10class PabloE;
11
12class CC_Compiler_Helper
13{
14public:
15    static PabloE* make_not(PabloE* expr);
16    static PabloE* make_and(PabloE* expr1, PabloE* expr2);
17    static PabloE* make_or(PabloE* expr1, PabloE* expr2);
18    static PabloE* make_sel(PabloE* if_expr, PabloE* t_expr, PabloE* f_expr);
19    static PabloE* make_xor(PabloE* expr1, PabloE* expr2);
20    static bool equals(const PabloE *expr1, const PabloE *expr2);
21private:
22    CC_Compiler_Helper();
23};
24
25#endif // COMPILER_HELPER_H
Note: See TracBrowser for help on using the repository browser.