Implement target specific parsing of immediate mnemonics. The mnemonic is dot separated strings.

Synopsis

Declared in <llvm/CodeGen/MIRFormatter.h>

virtual
bool
parseImmMnemonic(
    unsigned int const OpCode,
    unsigned int const OpIdx,
    StringRef Src,
    int64_t& Imm,
    ErrorCallbackType ErrorCallback) const;

Return Value

true on success, false if parsing fails.

Parameters

Name

Description

OpCode

Opcode of the instruction that owns the immediate.

OpIdx

Index of the immediate operand within the instruction.

Src

Immediate mnemonic text to parse.

Imm

Filled with the parsed immediate value on success.

ErrorCallback

Invoked to report parse errors.

Created with MrDocs