asmjit::FormatOptions Class Reference

Formatting options used by Logger and Formatter.

Public Members

Public Types

Member Functions

Construction & Destruction
Accessors

Member Enumeration Documentation

FormatOptions::Flags : uint32_tenum

Flags can enable a logging feature.

ConstantDescription
kNoFlags 

No flags.

kFlagMachineCode 

Show also binary form of each logged instruction (Assembler).

kFlagExplainImms 

Show a text explanation of some immediate values.

kFlagHexImms 

Use hexadecimal notation of immediate values.

kFlagHexOffsets 

Use hexadecimal notation of address offsets.

kFlagRegCasts 

Show casts between virtual register types (Compiler).

kFlagPositions 

Show positions associated with nodes (Compiler).

kFlagAnnotations 

Annotate nodes that are lowered by passes.

kFlagDebugPasses 

Show an additional output from passes.

kFlagDebugRA 

Show an additional output from RA.

FormatOptions::IndentationType : uint32_tenum

Describes indentation type of code, label, or comment in logger output.

ConstantDescription
kIndentationCode 

Indentation used for instructions and directives.

kIndentationLabel 

Indentation used for labels and function nodes.

kIndentationComment 

Indentation used for comments (not inline comments).

Constructor & Destructor Documentation

FormatOptions::FormatOptions()constexprconstexprnoexcept

Creates a default-initialized FormatOptions.

Member Function Documentation

void FormatOptions::reset()noexcept

Resets FormatOptions to its default initialized state.

uint32_t FormatOptions::flags() constconstexprconstexprnoexcept

Returns format flags.

bool FormatOptions::hasFlag(uint32_t flag) constconstexprconstexprnoexcept

Tests whether the given flag is set in format flags.

void FormatOptions::setFlags(uint32_t flags)noexcept

Resets all format flags to flags.

void FormatOptions::addFlags(uint32_t flags)noexcept

Adds flags to format flags.

void FormatOptions::clearFlags(uint32_t flags)noexcept

Removes flags from format flags.

uint8_t FormatOptions::indentation(uint32_t type) constconstexprconstexprnoexcept

Returns indentation for the given type, see IndentationType.

void FormatOptions::setIndentation(uint32_t type, uint32_t n)noexcept

Sets indentation for the given type, see IndentationType.

void FormatOptions::resetIndentation(uint32_t type)noexcept

Resets indentation for the given type to zero.

Member Data Documentation

uint32_t FormatOptions::_flags

Format flags, see Flags.

uint8_t FormatOptions::_indentation[4]

Indentation by type, see IndentationType.