13 #ifndef LLVM_SUPPORT_FILECHECK_H 14 #define LLVM_SUPPORT_FILECHECK_H 142 std::unique_ptr<FileCheckPatternContext> PatternContext;
144 std::unique_ptr<std::vector<FileCheckString>> CheckStrings;
155 Regex buildCheckPrefixRegex();
164 bool ValidateCheckPrefixes();
177 std::vector<FileCheckDiag> *Diags =
nullptr);
static bool Check(DecodeStatus &Out, DecodeStatus In)
Represents a range in source code.
Indicates a good match for an expected pattern.
Indicates no match for an excluded pattern.
This class represents lattice values for constants.
std::vector< std::string > ImplicitCheckNot
Indicates a discarded match for an expected pattern.
Marks when parsing found a -NOT check combined with another CHECK suffix.
FileCheckType(FileCheckKind Kind=CheckNone)
bool AllowDeprecatedDagOverlap
static LLVM_ATTRIBUTE_ALWAYS_INLINE bool CheckSame(const unsigned char *MatcherTable, unsigned &MatcherIndex, SDValue N, const SmallVectorImpl< std::pair< SDValue, SDNode *>> &RecordedNodes)
CheckSame - Implements OP_CheckSame.
bool NoCanonicalizeWhiteSpace
Class holding the Pattern global state, shared by all patterns: tables holding values of variables an...
Check::FileCheckType CheckTy
What is the FileCheck directive for this diagnostic?
Indicates a match for an expected pattern, but the match is on the wrong line.
Marks when parsing found a -COUNT directive with invalid count value.
std::vector< std::string > CheckPrefixes
Contains info about various FileCheck options.
std::vector< std::string > GlobalDefines
static std::string getDescription(const CallGraphSCC &SCC)
A check that we found in the input file.
unsigned CheckLine
Where is the FileCheck directive for this diagnostic?
This owns the files read by a parser, handles include stacks, and handles diagnostic wrangling...
Indicates the pattern only matches the end of file.
Indicates a fuzzy match that serves as a suggestion for the next intended match for an expected patte...
Indicates no match for an expected pattern, but this might follow good matches when multiple matches ...
This interface provides simple read-only access to a block of memory, and provides simple methods for...
unsigned InputStartLine
The search range if MatchTy is MatchNoneAndExcluded or MatchNoneButExpected, or the match range other...
Indicates a match for an excluded pattern.
StringRef - Represent a constant reference to a string, i.e.
MatchType
What type of match result does this diagnostic describe?
Represents a location in source code.
FileCheck class takes the request and exposes various methods that use information from the request...