llvm::FastISel::fastEmit_ri_

This method is a wrapper of fastEmit_ri.

Synopsis

Declared in <llvm/CodeGen/FastISel.h>

Register
fastEmit_ri_(
    MVT VT,
    unsigned int Opcode,
    Register Op0,
    uint64_t Imm,
    MVT ImmType);

Description

It first tries to emit an instruction with an immediate operand using fastEmit_ri. If that fails, it materializes the immediate into a register and try fastEmit_rr instead.

Return Value

Result register of the emitted instruction, or an empty register.

Parameters

NameDescription
VTValue type of the operation and result.
OpcodeISD opcode to emit.
Op0Register operand.
ImmImmediate operand.
ImmTypeValue type of Imm when materializing it.