source: icGREP/icgrep-devel/icgrep/re/re_toolchain.h @ 5137

Last change on this file since 5137 was 5137, checked in by cameron, 3 years ago

Some clean ups of encoding info for ccc restructuring.

File size: 944 bytes
Line 
1/*
2 *  Copyright (c) 2016 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 RE_TOOLCHAIN_H
8#define RE_TOOLCHAIN_H
9
10#include <re/re_re.h>
11#include <pablo/function.h>
12#include <llvm/Support/CommandLine.h>
13
14namespace re {
15
16enum RE_PrintFlags {
17    PrintAllREs, PrintParsedREs, PrintStrippedREs, PrintSimplifiedREs
18};
19   
20enum RE_AlgorithmFlags {
21    DisableLog2BoundedRepetition, DisableIfHierarchy, DisableMatchStar, DisableUnicodeMatchStar, 
22    DisableUnicodeLineBreak, InvertMatches, UsePregeneratedUnicode
23};
24   
25bool AlgorithmOptionIsSet(RE_AlgorithmFlags flag);
26   
27extern int IfInsertionGap;
28
29const cl::OptionCategory * re_toolchain_flags();
30
31RE * regular_expression_passes(RE * re_ast);
32
33pablo::PabloFunction * re2pablo_compiler(const unsigned encodingBits, RE * re_ast, bool CountOnly = false);
34   
35}
36#endif
Note: See TracBrowser for help on using the repository browser.