52 #ifndef LLVM_SUPPORT_SPECIALCASELIST_H 53 #define LLVM_SUPPORT_SPECIALCASELIST_H 71 static std::unique_ptr<SpecialCaseList>
72 create(
const std::vector<std::string> &Paths, std::string &
Error);
79 static std::unique_ptr<SpecialCaseList>
120 bool insert(std::string Regexp,
unsigned LineNumber, std::string &REError);
128 std::vector<std::pair<std::unique_ptr<Regex>,
unsigned>> RegExes;
134 Section(std::unique_ptr<Matcher> M) : SectionMatcher(
std::move(M)){};
154 #endif // LLVM_SUPPORT_SPECIALCASELIST_H
unsigned inSectionBlame(StringRef Section, StringRef Prefix, StringRef Query, StringRef Category=StringRef()) const
Returns the line number corresponding to the special case list entry if the special case list contain...
This class represents lattice values for constants.
bool createInternal(const std::vector< std::string > &Paths, std::string &Error)
bool inSection(StringRef Section, StringRef Prefix, StringRef Query, StringRef Category=StringRef()) const
Returns true, if special case list contains a line.
static std::unique_ptr< SpecialCaseList > createOrDie(const std::vector< std::string > &Paths)
Parses the special case list entries from files.
std::unique_ptr< Matcher > SectionMatcher
unsigned match(StringRef Query) const
bool parse(const MemoryBuffer *MB, StringMap< size_t > &SectionsMap, std::string &Error)
Parses just-constructed SpecialCaseList entries from a memory buffer.
SpecialCaseList()=default
SpecialCaseList & operator=(SpecialCaseList const &)=delete
std::vector< Section > Sections
This interface provides simple read-only access to a block of memory, and provides simple methods for...
Represents a set of regular expressions.
static void Query(const MachineInstr &MI, AliasAnalysis &AA, bool &Read, bool &Write, bool &Effects, bool &StackPointer)
bool insert(std::string Regexp, unsigned LineNumber, std::string &REError)
static std::unique_ptr< SpecialCaseList > create(const std::vector< std::string > &Paths, std::string &Error)
Parses the special case list entries from files.
Lightweight error class with error context and mandatory checking.
StringRef - Represent a constant reference to a string, i.e.