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);
NodeTy * getNextNode()
Get the next node, or nullptr for the list tail.
This class represents lattice values for constants.
const DebugLoc & getDebugLoc() const
Returns the debug location id of this MachineInstr.
AnalysisUsage & addRequired()
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.
virtual const TargetInstrInfo * getInstrInfo() const
MachineInstrBuilder BuildMI(MachineFunction &MF, const DebugLoc &DL, const MCInstrDesc &MCID)
Builder interface. Specify how to create the initial instruction itself.
const TargetSubtargetInfo & getSubtarget() const
getSubtarget - Return the subtarget for which this machine code is being compiled.
void getAnalysisUsage(AnalysisUsage &AU) const override
getAnalysisUsage - Subclasses that override getAnalysisUsage must call this.
static GCRegistry::Add< CoreCLRGC > E("coreclr", "CoreCLR-compatible GC")
unsigned getNumLocalDynamicTLSAccesses() const
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.
MachineDomTreeNode * getRootNode() const
void setPreservesCFG()
This function should be called by the pass, iff they do not:
const Function & getFunction() const
Return the LLVM function that this machine code represents.
const MachineBasicBlock * getParent() const
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)
StringRef - Represent a constant reference to a string, i.e.
DominatorTree Class - Concrete subclass of DominatorTreeBase that is used to compute a normal dominat...
unsigned createVirtualRegister(const TargetRegisterClass *RegClass, StringRef Name="")
createVirtualRegister - Create and return a new virtual register in the function with the specified r...