10 #ifndef LLVM_MC_MCINSTPRINTER_H 11 #define LLVM_MC_MCINSTPRINTER_H 22 class MCSubtargetInfo;
27 void dumpBytes(ArrayRef<uint8_t> Bytes, raw_ostream &OS);
51 bool UseMarkup =
false;
54 bool PrintImmHex =
false;
77 StringRef getOpcodeName(
unsigned Opcode)
const;
80 virtual void printRegName(
raw_ostream &OS,
unsigned RegNo)
const;
97 return PrintImmHex ? formatHex(Value) : formatDec(Value);
108 #endif // LLVM_MC_MCINSTPRINTER_H This class represents lattice values for constants.
void setPrintHexStyle(HexStyle::Style Value)
void setPrintImmHex(bool Value)
format_object< int64_t > formatImm(int64_t Value) const
Utility function to print immediates in decimal or hex.
Instances of this class represent a single low-level machine instruction.
MCRegisterInfo base class - We assume that the target defines a static array of MCRegisterDesc object...
This class is intended to be used as a base class for asm properties and features specific to the tar...
bool getPrintImmHex() const
void setCommentStream(raw_ostream &OS)
Specify a stream to emit comments to.
HexStyle::Style getPrintHexStyle() const
Interface to description of machine instruction set.
void setUseMarkup(bool Value)
bool getUseMarkup() const
This is an instance of a target assembly language printer that converts an MCInst to valid target ass...
Generic base class for all target subtargets.
void dumpBytes(ArrayRef< uint8_t > Bytes, raw_ostream &OS)
Convert `Bytes' to a hex string and output to `OS'.
LLVM Value Representation.
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.
MCInstPrinter(const MCAsmInfo &mai, const MCInstrInfo &mii, const MCRegisterInfo &mri)
const MCRegisterInfo & MRI