This is an instance of a target assembly language printer that converts an MCInst to valid target assembly syntax.
Synopsis
Declared in <llvm/MC/MCInstPrinter.h>
class MCInstPrinter;
Types
Name |
Description |
RAII helper that wraps streamed output in markup and optional color. |
Enums
Name |
Description |
Markup categories for colored or annotated assembly operands. |
Member Functions
Name |
Description |
|
Construct an instruction printer for the given target descriptions. |
|
Destroy the instruction printer. |
|
Customize the printer according to a command line option. |
Utility functions to print decimal/hexadecimal values. |
|
|
|
Utility function to print immediates in decimal or hex. |
|
|
Returns a pair containing the mnemonic for |
Return the name of the specified opcode enum (e.g. "MOV32ri") or empty if we can't resolve it. |
|
Return whether immediates are printed in hexadecimal. |
|
Return whether ANSI color is enabled for printed assembly. |
|
Return whether markup is enabled for printed assembly. |
|
Begin a markup region of category |
|
|
Print the specified MCInst to the specified raw_ostream. |
|
Print the assembler register name. |
Specify a stream to emit comments to. |
|
Set the optional instruction analysis helper used when printing. |
|
Enable or disable printing branch immediates as addresses. |
|
Set the hexadecimal printing style. |
|
Enable or disable printing immediates as hexadecimal. |
|
Enable or disable symbolizing branch and memory operands. |
|
Enable or disable ANSI color in printed assembly. |
|
Enable or disable markup in printed assembly. |
Protected Member Functions
Name |
Description |
Helper for matching MCInsts to alias patterns when printing instructions. |
|
Utility function for printing annotations. |
Protected Data Members
Name |
Description |
Stack of active markup colors for nested colored output regions. |
|
A stream that comments can be emitted to if desired. Each comment must end with a newline. This will be null if verbose assembly emission is disabled. |
|
Target assembly information used when printing instructions. |
|
Optional instruction analysis helper used when symbolizing operands. |
|
Target instruction information used when printing instructions. |
|
Target register information used when printing register names. |
|
True if we prefer aliases (e.g. nop) to raw mnemonics. |
|
If true, a branch immediate (e.g. bl 4) will be printed as a hexadecimal address (e.g. bl 0x20004). This is useful for a stream disassembler (llvm‐objdump ‐d). |
|
Which style to use for printing hexadecimal values. |
|
True if we are printing immediates as hex. |
|
If true, symbolize branch target and memory reference operands. |
|
True if we are printing colored assembly. |
|
True if we are printing marked up assembly. |
Created with MrDocs