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

Last change on this file was 5835, checked in by nmedfort, 6 weeks ago

Revised RE_Minimizer to use alphabets + minor optimizations to RE functions

File size: 1019 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#include <llvm/Support/Compiler.h>
10namespace llvm { namespace cl { class OptionCategory; } }
11namespace pablo { class PabloKernel; class PabloAST; }
12namespace re { class RE; class CC;}
13
14namespace re {
15
16enum RE_PrintFlags {
17    ShowREs, ShowAllREs, ShowStrippedREs, ShowSimplifiedREs
18};
19   
20enum RE_AlgorithmFlags {
21    DisableLog2BoundedRepetition, DisableIfHierarchy, DisableMatchStar, DisableUnicodeMatchStar, 
22    DisableUnicodeLineBreak, UsePregeneratedUnicode
23};
24   
25bool LLVM_READONLY AlgorithmOptionIsSet(RE_AlgorithmFlags flag);
26   
27extern int IfInsertionGap;
28
29const llvm::cl::OptionCategory * LLVM_READONLY re_toolchain_flags();
30
31RE * resolveModesAndExternalSymbols(RE * r);
32
33RE * excludeUnicodeLineBreak(RE * r);
34
35RE * regular_expression_passes(RE * r);
36   
37}
38#endif
Note: See TracBrowser for help on using the repository browser.