StringRef getString() const
Get the string for the current token, this includes all characters (for example, the quotes on string...
void dump(raw_ostream &OS) const
SMRange getLocRange() const
SMLoc getLoc() const
Get the current source location.
Represents a location in source code.
static SMLoc getFromPointer(const char *Ptr)
Represents a range in source code.
StringRef - Represent a constant reference to a string, i.e.
constexpr size_t size() const
size - Get the string size.
constexpr const char * data() const
data - Get a pointer to the start of the string (which may not be null terminated).
This class implements an extremely fast bulk output stream that can only output to a stream.
raw_ostream & write_escaped(StringRef Str, bool UseHexEscapes=false)
Output Str, turning '\', '\t', ' ', '"', and anything that doesn't satisfy llvm::isPrint into an esca...
This is an optimization pass for GlobalISel generic memory operations.