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

Last change on this file since 5781 was 5732, checked in by cameron, 19 months ago

More changes in preparation for LLVM 3.9, 4.0

File size: 982 bytes
RevLine 
[4984]1/*
[5030]2 *  Copyright (c) 2016 International Characters.
[4984]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
[5646]9#include <llvm/Support/Compiler.h>
[5267]10namespace llvm { namespace cl { class OptionCategory; } }
[5646]11namespace pablo { class PabloKernel; class PabloAST; }
[5267]12namespace re { class RE; }
[4984]13
[5030]14namespace re {
[4984]15
[5030]16enum RE_PrintFlags {
[5295]17    ShowREs, ShowAllREs, ShowStrippedREs, ShowSimplifiedREs
[5030]18};
19   
20enum RE_AlgorithmFlags {
21    DisableLog2BoundedRepetition, DisableIfHierarchy, DisableMatchStar, DisableUnicodeMatchStar, 
[5473]22    DisableUnicodeLineBreak, UsePregeneratedUnicode
[5030]23};
24   
25bool AlgorithmOptionIsSet(RE_AlgorithmFlags flag);
26   
27extern int IfInsertionGap;
[4984]28
[5217]29const llvm::cl::OptionCategory * re_toolchain_flags();
[5030]30
[5732]31RE * regular_expression_passes(RE * re_ast);
[5030]32
[5732]33pablo::PabloAST * re2pablo_compiler(pablo::PabloKernel * kernel, RE * re_ast);
[5030]34   
35}
[4984]36#endif
Note: See TracBrowser for help on using the repository browser.