37 return "SystemZ Local Dynamic TLS Access Clean-up";
57 return new SystemZLDCleanup(TM);
60 void SystemZLDCleanup::getAnalysisUsage(
AnalysisUsage &AU)
const {
89 unsigned TLSBaseAddrReg) {
95 switch (
I->getOpcode()) {
98 I = ReplaceTLSCall(&*
I, TLSBaseAddrReg);
100 I = SetRegister(&*
I, &TLSBaseAddrReg);
110 Changed |= VisitNode(*
I, TLSBaseAddrReg);
118 unsigned TLSBaseAddrReg) {
121 TII->get(TargetOpcode::COPY), SystemZ::R2D)
122 .addReg(TLSBaseAddrReg);
133 unsigned *TLSBaseAddrReg) {
141 TII->get(TargetOpcode::COPY), *TLSBaseAddrReg)
142 .addReg(SystemZ::R2D);
unsigned getNumLocalDynamicTLSAccesses() const
NodeTy * getNextNode()
Get the next node, or nullptr for the list tail.
unsigned createVirtualRegister(const TargetRegisterClass *RegClass)
createVirtualRegister - Create and return a new virtual register in the function with the specified r...
MachineDomTreeNode * getRootNode() const
const Function * getFunction() const
getFunction - Return the LLVM function that this machine code represents
AnalysisUsage & addRequired()
const TargetSubtargetInfo & getSubtarget() const
getSubtarget - Return the subtarget for which this machine code is being compiled.
MachineFunctionPass - This class adapts the FunctionPass interface to allow convenient creation of pa...
const HexagonInstrInfo * TII
void eraseFromParent()
Unlink 'this' from the containing basic block and delete it.
Base class for the actual dominator tree node.
static GCRegistry::Add< CoreCLRGC > E("coreclr","CoreCLR-compatible GC")
const MachineBasicBlock * getParent() const
MachineInstrBuilder BuildMI(MachineFunction &MF, const DebugLoc &DL, const MCInstrDesc &MCID)
Builder interface. Specify how to create the initial instruction itself.
void getAnalysisUsage(AnalysisUsage &AU) const override
getAnalysisUsage - Subclasses that override getAnalysisUsage must call this.
Represent the analysis usage information of a pass.
Ty * getInfo()
getInfo - Keep track of various per-function pieces of information for backends that would like to do...
FunctionPass class - This class is used to implement most global optimizations.
void setPreservesCFG()
This function should be called by the pass, iff they do not:
const DebugLoc & getDebugLoc() const
Returns the debug location id of this MachineInstr.
MachineRegisterInfo - Keep track of information for virtual and physical registers, including vreg register classes, use/def chains for registers, etc.
Representation of each machine instruction.
FunctionPass * createSystemZLDCleanupPass(SystemZTargetMachine &TM)
virtual const TargetInstrInfo * getInstrInfo() const
StringRef - Represent a constant reference to a string, i.e.
DominatorTree Class - Concrete subclass of DominatorTreeBase that is used to compute a normal dominat...