36 #define TLSCLEANUP_PASS_NAME "AArch64 Local Dynamic TLS Access Clean-up"
71 switch (
I->getOpcode()) {
74 if (!
I->getOperand(0).isSymbol() ||
75 strcmp(
I->getOperand(0).getSymbolName(),
"_TLS_MODULE_BASE_"))
79 I = replaceTLSBaseAddrCall(*
I, TLSBaseAddrReg);
81 I = setRegister(*
I, &TLSBaseAddrReg);
91 Changed |= VisitNode(
N, TLSBaseAddrReg);
100 unsigned TLSBaseAddrReg) {
107 TII->
get(TargetOpcode::COPY), AArch64::X0)
108 .addReg(TLSBaseAddrReg);
129 TII->
get(TargetOpcode::COPY), *TLSBaseAddrReg)
130 .addReg(AArch64::X0);
148 char LDTLSCleanup::
ID = 0;
150 return new LDTLSCleanup();
const MachineFunction * getParent() const
Return the MachineFunction containing this basic block.
static PassRegistry * getPassRegistry()
getPassRegistry - Access the global registry object, which is automatically initialized at applicatio...
AArch64FunctionInfo - This class is derived from MachineFunctionInfo and contains private AArch64-spe...
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
Maximum length of the test input libFuzzer tries to guess a good value based on the corpus and reports it always prefer smaller inputs during the corpus shuffle When libFuzzer itself reports a bug this exit code will be used If indicates the maximal total time in seconds to run the fuzzer minimizes the provided crash input Use with strcmp
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 initializeLDTLSCleanupPass(PassRegistry &)
void eraseFromParent()
Unlink 'this' from the containing basic block and delete it.
FunctionPass * createAArch64CleanupLocalDynamicTLSPass()
Base class for the actual dominator tree node.
static GCRegistry::Add< CoreCLRGC > E("coreclr","CoreCLR-compatible GC")
const MachineBasicBlock * getParent() const
TargetInstrInfo - Interface to description of machine instruction set.
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.
self_iterator getIterator()
const MCInstrDesc & get(unsigned Opcode) const
Return the machine instruction descriptor that corresponds to the specified instruction opcode...
#define INITIALIZE_PASS(passName, arg, name, cfg, analysis)
unsigned getNumLocalDynamicTLSAccesses() const
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.
#define TLSCLEANUP_PASS_NAME
MachineRegisterInfo & getRegInfo()
getRegInfo - Return information about the registers currently in use.
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...