source: icGREP/icgrep-devel/icgrep/re/re_nullable.h @ 5810

Last change on this file since 5810 was 5806, checked in by cameron, 14 months ago

Correction for nullable assertions; clean-up

File size: 509 bytes
Line 
1#ifndef RE_NULLABLE_H
2#define RE_NULLABLE_H
3
4#include <llvm/Support/Compiler.h>
5
6namespace re { class RE; }
7namespace re { class Vector; }
8
9namespace re {
10
11class RE_Nullable {
12public:
13    static RE * removeNullablePrefix(RE * re);
14    static RE * removeNullableSuffix(RE * re);
15    static bool isNullable(const RE * re);
16    static bool hasNullablePrefix(const RE * re);
17    static bool hasNullableSuffix(const RE * re);
18private:
19    static bool isNullable(const Vector * vec);
20};
21
22}
23
24#endif // RE_NULLABLE_H
Note: See TracBrowser for help on using the repository browser.