LLVM 24.0.0git
SystemZLDCleanup.cpp File Reference

Go to the source code of this file.

Functions

 INITIALIZE_PASS (SystemZLDCleanupLegacy, "systemz-ld-cleanup", "SystemZ Local Dynamic TLS Access Clean-up", false, false) FunctionPass *llvm
static MachineInstr * replaceTLSCall (MachineInstr *I, unsigned TLSBaseAddrReg, const TargetInstrInfo *TII)
static MachineInstr * setRegister (MachineFunction &MF, MachineInstr *I, unsigned *TLSBaseAddrReg, const TargetInstrInfo *TII)
static bool visitNode (MachineFunction &MF, MachineDomTreeNode *Node, unsigned TLSBaseAddrReg, const TargetInstrInfo *TII)
static bool runLDCleanupOnMF (MachineFunction &MF, function_ref< MachineDominatorTree *()> GetMDT)

Function Documentation

◆ INITIALIZE_PASS()

INITIALIZE_PASS ( SystemZLDCleanupLegacy ,
"systemz-ld-cleanup" ,
"SystemZ Local Dynamic TLS Access Clean-up" ,
false ,
false  )

Definition at line 45 of file SystemZLDCleanup.cpp.

References llvm::createSystemZLDCleanupLegacyPass().

◆ replaceTLSCall()

MachineInstr * replaceTLSCall ( MachineInstr * I,
unsigned TLSBaseAddrReg,
const TargetInstrInfo * TII )
static

Definition at line 60 of file SystemZLDCleanup.cpp.

References llvm::MachineInstrBuilder::addReg(), llvm::BuildMI(), I, and TII.

Referenced by visitNode().

◆ runLDCleanupOnMF()

◆ setRegister()

MachineInstr * setRegister ( MachineFunction & MF,
MachineInstr * I,
unsigned * TLSBaseAddrReg,
const TargetInstrInfo * TII )
static

◆ visitNode()