9 #ifndef LLVM_MC_MCINSTPRINTER_H 10 #define LLVM_MC_MCINSTPRINTER_H 22 class MCSubtargetInfo;
27 void dumpBytes(ArrayRef<uint8_t> Bytes, raw_ostream &OS);
53 bool UseMarkup =
false;
56 bool PrintImmHex =
false;
87 StringRef getOpcodeName(
unsigned Opcode)
const;
90 virtual void printRegName(
raw_ostream &OS,
unsigned RegNo)
const;
105 return PrintImmHex ? formatHex(Value) : formatDec(Value);
153 unsigned PredicateIndex);
158 #endif // LLVM_MC_MCINSTPRINTER_H
virtual bool applyTargetSpecificCLOption(StringRef Opt)
Customize the printer according to a command line option.
Data for each alias pattern.
This class represents lattice values for constants.
ArrayRef< AliasPattern > Patterns
void setPrintHexStyle(HexStyle::Style Value)
void setPrintImmHex(bool Value)
Map from opcode to pattern list by binary search.
format_object< int64_t > formatImm(int64_t Value) const
Utility function to print immediates in decimal or hex.
ArrayRef - Represent a constant reference to an array (0 or more elements consecutively in memory)...
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...
ArrayRef< PatternsForOpcode > OpToPatterns
bool getPrintImmHex() const
void setCommentStream(raw_ostream &OS)
Specify a stream to emit comments to.
Tablegenerated data structures needed to match alias patterns.
Interface to description of machine instruction set.
ArrayRef< AliasPatternCond > PatternConds
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)
Instances of this class represent operands of the MCInst class.
const MCRegisterInfo & MRI