This method is a wrapper of fastEmit_ri.
Declared in <llvm/CodeGen/FastISel.h>
Register
fastEmit_ri_(
MVT VT,
unsigned int Opcode,
Register Op0,
uint64_t Imm,
MVT ImmType);
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.
Result register of the emitted instruction, or an empty register.
| Name | Description |
|---|---|
| VT | Value type of the operation and result. |
| Opcode | ISD opcode to emit. |
| Op0 | Register operand. |
| Imm | Immediate operand. |
| ImmType | Value type of Imm when materializing it. |