Print a machine operand immediate with a target‐specific mnemonic.

Synopsis

Declared in <llvm/CodeGen/MIRFormatter.h>

virtual
void
printImm(
    raw_ostream& OS,
    MachineInstr const& MI,
    std::optional<unsigned int> OpIdx,
    int64_t Imm) const;

Description

Implement target specific printing for machine operand immediate value, so that we can have more meaningful mnemonic than a 64‐bit integer. Passing std::nullopt to OpIdx means the index is unknown.

Parameters

Name

Description

OS

Output stream that receives the printed immediate.

MI

Machine instruction that owns the immediate operand.

OpIdx

Optional index of the operand within MI; std::nullopt when the index is unknown.

Imm

Immediate value to print.

Created with MrDocs