LLVM 24.0.0git
RISCVExpandPseudoPostRA.cpp File Reference

Go to the source code of this file.

Macros

#define RISCV_EXPAND_PSEUDO_POST_RA_NAME    "RISC-V Pseudo Instruction Expansion - Post-RA"

Functions

static void transferImpOps (const MachineInstr &OldMI, MachineInstrBuilder &MI)
 Transfer implicit operands on the pseudo instruction to the instructions created from the expansion.
 INITIALIZE_PASS (RISCVExpandPseudoPostRALegacy, "riscv-expand-pseudo-post-ra", RISCV_EXPAND_PSEUDO_POST_RA_NAME, false, false) FunctionPass *llvm

Macro Definition Documentation

◆ RISCV_EXPAND_PSEUDO_POST_RA_NAME

#define RISCV_EXPAND_PSEUDO_POST_RA_NAME    "RISC-V Pseudo Instruction Expansion - Post-RA"

Definition at line 24 of file RISCVExpandPseudoPostRA.cpp.

Referenced by INITIALIZE_PASS().

Function Documentation

◆ INITIALIZE_PASS()

INITIALIZE_PASS ( RISCVExpandPseudoPostRALegacy ,
"riscv-expand-pseudo-post-ra" ,
RISCV_EXPAND_PSEUDO_POST_RA_NAME ,
false ,
false  )

◆ transferImpOps()

void transferImpOps ( const MachineInstr & OldMI,
MachineInstrBuilder & MI )
static

Transfer implicit operands on the pseudo instruction to the instructions created from the expansion.

Definition at line 148 of file RISCVExpandPseudoPostRA.cpp.

References assert(), llvm::drop_begin(), llvm::MachineInstr::getDesc(), MI, and llvm::MachineInstr::operands().