35 (*CommentStream) << Annot;
38 if (Annot.back() !=
'\n')
64 uint64_t digit = (Value >> 60) & 0xf;
66 return (digit >= 0xa);
73 return format(
"%" PRId64, Value);
80 return format(
"-0x%" PRIx64, -Value);
82 return format(
"0x%" PRIx64, Value);
86 return format(
"-0%" PRIx64
"h", -Value);
88 return format(
"-%" PRIx64
"h", -Value);
91 return format(
"0%" PRIx64
"h", Value);
93 return format(
"%" PRIx64
"h", Value);
102 return format(
"0x%" PRIx64, Value);
105 return format(
"0%" PRIx64
"h", Value);
107 return format(
"%" PRIx64
"h", Value);
HexStyle::Style PrintHexStyle
Which style to use for printing hexadecimal values.
static bool needsLeadingZero(uint64_t Value)
#define llvm_unreachable(msg)
format_object1< int64_t > formatDec(const int64_t Value) const
Utility functions to print decimal/hexadecimal values.
format_object1< T > format(const char *Fmt, const T &Val)
virtual void printRegName(raw_ostream &OS, unsigned RegNo) const
printRegName - Print the assembler register name.
StringRef markup(StringRef s) const
Utility functions to make adding mark ups simpler.
const char * getName(unsigned Opcode) const
getName - Returns the name for the instructions with the given opcode.
bool getUseMarkup() const
format_object1< int64_t > formatHex(const int64_t Value) const
StringRef getOpcodeName(unsigned Opcode) const
raw_ostream * CommentStream
LLVM Value Representation.
void printAnnotation(raw_ostream &OS, StringRef Annot)
Utility function for printing annotations.
const char * getCommentString() const
bool empty() const
empty - Check if the string is empty.