|
LLVM 24.0.0git
|
#include "SystemZ.h"#include "SystemZMachineFunctionInfo.h"#include "SystemZTargetMachine.h"#include "llvm/CodeGen/MachineDominators.h"#include "llvm/CodeGen/MachineFunctionAnalysisManager.h"#include "llvm/CodeGen/MachineFunctionPass.h"#include "llvm/CodeGen/MachineInstrBuilder.h"#include "llvm/CodeGen/MachinePassManager.h"#include "llvm/CodeGen/MachineRegisterInfo.h"#include "llvm/CodeGen/TargetInstrInfo.h"#include "llvm/CodeGen/TargetRegisterInfo.h"#include "llvm/IR/Analysis.h"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) |
| 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().
|
static |
Definition at line 60 of file SystemZLDCleanup.cpp.
References llvm::MachineInstrBuilder::addReg(), llvm::BuildMI(), I, and TII.
Referenced by visitNode().
|
static |
Definition at line 123 of file SystemZLDCleanup.cpp.
References llvm::MachineFunction::getInfo(), llvm::SystemZMachineFunctionInfo::getNumLocalDynamicTLSAccesses(), llvm::DominatorTreeBase< NodeT, IsPostDom >::getRootNode(), llvm::MachineFunction::getSubtarget(), TII, and visitNode().
Referenced by llvm::SystemZLDCleanupPass::run().
|
static |
Definition at line 75 of file SystemZLDCleanup.cpp.
References llvm::MachineInstrBuilder::addReg(), llvm::BuildMI(), llvm::MachineFunction::getRegInfo(), I, llvm::Next, and TII.
Referenced by visitNode().
|
static |
Definition at line 96 of file SystemZLDCleanup.cpp.
References llvm::MachineBasicBlock::begin(), Changed, E(), llvm::MachineBasicBlock::end(), I, replaceTLSCall(), setRegister(), TII, and visitNode().