LLVM 24.0.0git
RISCVPostRAExpandPseudoInsts.cpp File Reference

Go to the source code of this file.

Macros

#define RISCV_POST_RA_EXPAND_PSEUDO_NAME    "RISC-V post-regalloc pseudo instruction expansion pass"

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 (RISCVPostRAExpandPseudoLegacy, "riscv-post-ra-expand-pseudo", RISCV_POST_RA_EXPAND_PSEUDO_NAME, false, false) FunctionPass *llvm

Macro Definition Documentation

◆ RISCV_POST_RA_EXPAND_PSEUDO_NAME

#define RISCV_POST_RA_EXPAND_PSEUDO_NAME    "RISC-V post-regalloc pseudo instruction expansion pass"

Definition at line 24 of file RISCVPostRAExpandPseudoInsts.cpp.

Referenced by INITIALIZE_PASS().

Function Documentation

◆ INITIALIZE_PASS()

INITIALIZE_PASS ( RISCVPostRAExpandPseudoLegacy ,
"riscv-post-ra-expand-pseudo" ,
RISCV_POST_RA_EXPAND_PSEUDO_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 RISCVPostRAExpandPseudoInsts.cpp.

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