14 #ifndef LLVM_TABLEGEN_STRINGMATCHER_H 15 #define LLVM_TABLEGEN_STRINGMATCHER_H 37 const std::vector<StringPair> &Matches;
42 const std::vector<StringPair> &matches,
raw_ostream &os)
43 : StrVariableName(strVariableName), Matches(matches), OS(os) {}
45 void Emit(
unsigned Indent = 0,
bool IgnoreDuplicates =
false)
const;
48 bool EmitStringMatcherForChar(
const std::vector<const StringPair *> &Matches,
49 unsigned CharNo,
unsigned IndentCount,
50 bool IgnoreDuplicates)
const;
55 #endif // LLVM_TABLEGEN_STRINGMATCHER_H This class represents lattice values for constants.
StringMatcher(StringRef strVariableName, const std::vector< StringPair > &matches, raw_ostream &os)
std::pair< std::string, std::string > StringPair
Given a list of strings and code to execute when they match, output a simple switch tree to classify ...
void Emit(unsigned Indent=0, bool IgnoreDuplicates=false) const
Emit - Top level entry point.
This class implements an extremely fast bulk output stream that can only output to a stream...
StringRef - Represent a constant reference to a string, i.e.