10 #ifndef LLVM_MC_MCINSTPRINTER_H
11 #define LLVM_MC_MCINSTPRINTER_H
13 #include "llvm/Support/DataTypes.h"
bool PrintImmHex
True if we are printing immediates as hex.
HexStyle::Style PrintHexStyle
Which style to use for printing hexadecimal values.
HexStyle::Style getPrintHexStyleHex() const
void setPrintImmHex(bool Value)
virtual void printInst(const MCInst *MI, raw_ostream &OS, StringRef Annot)=0
format_object1< int64_t > formatImm(const int64_t Value) const
Utility function to print immediates in decimal or hex.
uint64_t AvailableFeatures
The current set of available features.
format_object1< int64_t > formatDec(const int64_t Value) const
Utility functions to print decimal/hexadecimal values.
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.
bool getUseMarkup() const
void setCommentStream(raw_ostream &OS)
setCommentStream - Specify a stream to emit comments to.
format_object1< int64_t > formatHex(const int64_t Value) const
StringRef getOpcodeName(unsigned Opcode) const
raw_ostream * CommentStream
void setUseMarkup(bool Value)
bool UseMarkup
True if we are printing marked up assembly.
LLVM Value Representation.
void printAnnotation(raw_ostream &OS, StringRef Annot)
Utility function for printing annotations.
void setAvailableFeatures(uint64_t Value)
bool getPrintImmHex() const
uint64_t getAvailableFeatures() const
MCInstPrinter(const MCAsmInfo &mai, const MCInstrInfo &mii, const MCRegisterInfo &mri)
void setPrintImmHex(HexStyle::Style Value)
const MCRegisterInfo & MRI