83 #define DEBUG_TYPE "ppc-toc-reg-deps" 111 bool Changed =
false;
115 const unsigned TOCReg = isPPC64 ? PPC::X2 :
PPC::R2;
117 for (
auto &MI : MBB) {
118 if (!hasTOCLoReloc(MI))
132 bool Changed =
false;
150 "PowerPC TOC Register Dependencies",
false,
false)
void initializePPCTOCRegDepsPass(PassRegistry &)
static PassRegistry * getPassRegistry()
getPassRegistry - Access the global registry object, which is automatically initialized at applicatio...
This class represents lattice values for constants.
iterator_range< mop_iterator > operands()
FunctionPass * createPPCTOCRegDepsPass()
MachineFunctionPass - This class adapts the FunctionPass interface to allow convenient creation of pa...
unsigned getOpcode() const
Returns the opcode of this MachineInstr.
static GCRegistry::Add< OcamlGC > B("ocaml", "ocaml 3.10-compatible GC")
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.
Represent the analysis usage information of a pass.
FunctionPass class - This class is used to implement most global optimizations.
static MachineOperand CreateReg(Register Reg, bool isDef, bool isImp=false, bool isKill=false, bool isDead=false, bool isUndef=false, bool isEarlyClobber=false, unsigned SubReg=0, bool isDebug=false, bool isInternalRead=false, bool isRenamable=false)
#define INITIALIZE_PASS(passName, arg, name, cfg, analysis)
The next are not flags but distinct values.
Iterator for intrusive lists based on ilist_node.
void addOperand(MachineFunction &MF, const MachineOperand &Op)
Add the specified operand to the instruction.
MachineOperand class - Representation of each machine instruction operand.
Representation of each machine instruction.
const MachineFunction * getParent() const
Return the MachineFunction containing this basic block.