LLVM
8.0.1
|
Given a list of strings and code to execute when they match, output a simple switch tree to classify the input string. More...
#include "llvm/TableGen/StringMatcher.h"
Public Types | |
using | StringPair = std::pair< std::string, std::string > |
Public Member Functions | |
StringMatcher (StringRef strVariableName, const std::vector< StringPair > &matches, raw_ostream &os) | |
void | Emit (unsigned Indent=0, bool IgnoreDuplicates=false) const |
Emit - Top level entry point. More... | |
Given a list of strings and code to execute when they match, output a simple switch tree to classify the input string.
If a match is found, the code in Matches[i].second is executed; control must not exit this code fragment. If nothing matches, execution falls through.
Definition at line 31 of file StringMatcher.h.
using llvm::StringMatcher::StringPair = std::pair<std::string, std::string> |
Definition at line 33 of file StringMatcher.h.
|
inline |
Definition at line 41 of file StringMatcher.h.
Emit - Top level entry point.
Definition at line 132 of file StringMatcher.cpp.
References E, first, and llvm::raw_ostream::indent().
Referenced by StringMatcher().