8 #ifndef LLVM_TESTING_SUPPORT_ANNOTATIONS_H 9 #define LLVM_TESTING_SUPPORT_ANNOTATIONS_H llvm::StringRef code() const
The input text with all annotations stripped.
This class represents lattice values for constants.
size_t point(llvm::StringRef Name="") const
Returns the position of the point marked by ^ (or $name^) in the text.
amdgpu Simplify well known AMD library false FunctionCallee Value const Twine & Name
friend bool operator==(const Range &L, const Range &R)
Range range(llvm::StringRef Name="") const
Returns the location of the range marked by [[ ]] (or $name[[ ]]).
std::vector< size_t > points(llvm::StringRef Name="") const
Returns the position of all points marked by ^ (or $name^) in the text.
std::vector< Range > ranges(llvm::StringRef Name="") const
Returns the location of all ranges marked by [[ ]] (or $name[[ ]]).
Annotations(llvm::StringRef Text)
Parses the annotations from Text. Crashes if it's malformed.
friend bool operator!=(const Range &L, const Range &R)
StringMap - This is an unconventional map that is specialized for handling keys that are "strings"...
raw_ostream & operator<<(raw_ostream &OS, const APInt &I)
Two offsets pointing to a continuous substring.
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.
Annotations lets you mark points and ranges inside source code, for tests: