14 #ifndef LLVM_TABLEGEN_STRINGMATCHER_H
15 #define LLVM_TABLEGEN_STRINGMATCHER_H
36 const std::vector<StringPair> &Matches;
41 const std::vector<StringPair> &matches,
raw_ostream &os)
42 : StrVariableName(strVariableName), Matches(matches), OS(os) {}
44 void Emit(
unsigned Indent = 0)
const;
48 bool EmitStringMatcherForChar(
const std::vector<const StringPair*> &Matches,
49 unsigned CharNo,
unsigned IndentCount)
const;
std::pair< std::string, std::string > StringPair
StringMatcher(StringRef strVariableName, const std::vector< StringPair > &matches, raw_ostream &os)
void Emit(unsigned Indent=0) const