LLVM API Documentation
Public Member Functions | |
Entry () | |
Entry (Entry &&Other) | |
bool | match (StringRef Query) const |
Public Attributes | |
StringSet | Strings |
std::unique_ptr< Regex > | RegEx |
Represents a set of regular expressions. Regular expressions which are "literal" (i.e. no regex metacharacters) are stored in Strings, while all others are represented as a single pipe-separated regex in RegEx. The reason for doing so is efficiency; StringSet is much faster at matching literal strings than Regex.
Definition at line 36 of file SpecialCaseList.cpp.
llvm::SpecialCaseList::Entry::Entry | ( | ) | [inline] |
Definition at line 37 of file SpecialCaseList.cpp.
llvm::SpecialCaseList::Entry::Entry | ( | Entry && | Other | ) | [inline] |
Definition at line 38 of file SpecialCaseList.cpp.
bool llvm::SpecialCaseList::Entry::match | ( | StringRef | Query | ) | const [inline] |
Definition at line 44 of file SpecialCaseList.cpp.
References llvm::StringMap< ValueTy, AllocatorTy >::count(), RegEx, and Strings.
std::unique_ptr<Regex> llvm::SpecialCaseList::Entry::RegEx |
Definition at line 42 of file SpecialCaseList.cpp.
Referenced by match().
Definition at line 41 of file SpecialCaseList.cpp.
Referenced by match().