LLVM 24.0.0git
LoongArchExpandPseudoInsts.cpp File Reference

Go to the source code of this file.

Namespaces

namespace  llvm
 This is an optimization pass for GlobalISel generic memory operations.

Macros

#define LOONGARCH_PRERA_EXPAND_PSEUDO_NAME    "LoongArch Pre-RA pseudo instruction expansion pass"
#define LOONGARCH_EXPAND_PSEUDO_NAME    "LoongArch pseudo instruction expansion pass"

Functions

static bool expandCopyCFR (MachineBasicBlock &MBB, MachineBasicBlock::iterator MBBI, MachineBasicBlock::iterator &NextMBBI, const LoongArchInstrInfo *TII)
static bool expandFunctionCALL (MachineBasicBlock &MBB, MachineBasicBlock::iterator MBBI, MachineBasicBlock::iterator &NextMBBI, bool IsTailCall, const LoongArchInstrInfo *TII)
static bool expandAddUpperImm (MachineBasicBlock &MBB, MachineBasicBlock::iterator MBBI, const LoongArchInstrInfo *TII)
static bool expandMI (MachineBasicBlock &MBB, MachineBasicBlock::iterator MBBI, MachineBasicBlock::iterator &NextMBBI, const LoongArchInstrInfo *TII)
static bool expandMBB (MachineBasicBlock &MBB, const LoongArchInstrInfo *TII)
static bool expandPseudo (MachineFunction &MF)
 INITIALIZE_PASS (LoongArchPreRAExpandPseudoLegacy, "loongarch-pre-ra-expand-pseudo", LOONGARCH_PRERA_EXPAND_PSEUDO_NAME, false, false) INITIALIZE_PASS(LoongArchExpandPseudoLegacy
FunctionPass * llvm::createLoongArchPreRAExpandPseudoLegacyPass ()
FunctionPass * llvm::createLoongArchExpandPseudoLegacyPass ()

Variables

cl::opt< bool > LArchAnnotateTableJump
loongarch expand pseudo
loongarch expand LOONGARCH_EXPAND_PSEUDO_NAME
loongarch expand false

Macro Definition Documentation

◆ LOONGARCH_EXPAND_PSEUDO_NAME

#define LOONGARCH_EXPAND_PSEUDO_NAME    "LoongArch pseudo instruction expansion pass"

Definition at line 36 of file LoongArchExpandPseudoInsts.cpp.

◆ LOONGARCH_PRERA_EXPAND_PSEUDO_NAME

#define LOONGARCH_PRERA_EXPAND_PSEUDO_NAME    "LoongArch Pre-RA pseudo instruction expansion pass"

Definition at line 34 of file LoongArchExpandPseudoInsts.cpp.

Referenced by INITIALIZE_PASS().

Function Documentation

◆ expandAddUpperImm()

◆ expandCopyCFR()

◆ expandFunctionCALL()

◆ expandMBB()

bool expandMBB ( MachineBasicBlock & MBB,
const LoongArchInstrInfo * TII )
static

Definition at line 914 of file LoongArchExpandPseudoInsts.cpp.

References E(), expandMI(), MBB, MBBI, Modified, and TII.

◆ expandMI()

◆ expandPseudo()

bool expandPseudo ( MachineFunction & MF)
static

◆ INITIALIZE_PASS()

INITIALIZE_PASS ( LoongArchPreRAExpandPseudoLegacy ,
"loongarch-pre-ra-expand-pseudo" ,
LOONGARCH_PRERA_EXPAND_PSEUDO_NAME ,
false ,
false  )

Variable Documentation

◆ false

loongarch expand false

Definition at line 962 of file LoongArchExpandPseudoInsts.cpp.

◆ LArchAnnotateTableJump

cl::opt<bool> LArchAnnotateTableJump
extern

◆ LOONGARCH_EXPAND_PSEUDO_NAME

loongarch expand LOONGARCH_EXPAND_PSEUDO_NAME

Definition at line 962 of file LoongArchExpandPseudoInsts.cpp.

◆ pseudo

loongarch expand pseudo

Definition at line 961 of file LoongArchExpandPseudoInsts.cpp.