Mips assembler: Improve set register alias handling
[oota-llvm.git] / lib / Target / Mips / MipsSEISelDAGToDAG.h
index 11bf0660f6b1b739a5c2b1490d892c69665a758e..03ed1f97cf7a9b6491175e0c2f8f09c44b353e0d 100644 (file)
@@ -24,11 +24,20 @@ public:
   explicit MipsSEDAGToDAGISel(MipsTargetMachine &TM) : MipsDAGToDAGISel(TM) {}
 
 private:
-  bool ReplaceUsesWithZeroReg(MachineRegisterInfo *MRI, const MachineInstr&);
 
-  std::pair<SDNode*, SDNode*> SelectMULT(SDNode *N, unsigned Opc, DebugLoc dl,
+  virtual bool runOnMachineFunction(MachineFunction &MF);
+
+  void addDSPCtrlRegOperands(bool IsDef, MachineInstr &MI,
+                             MachineFunction &MF);
+
+  bool replaceUsesWithZeroReg(MachineRegisterInfo *MRI, const MachineInstr&);
+
+  std::pair<SDNode*, SDNode*> selectMULT(SDNode *N, unsigned Opc, SDLoc dl,
                                          EVT Ty, bool HasLo, bool HasHi);
 
+  SDNode *selectAddESubE(unsigned MOp, SDValue InFlag, SDValue CmpLHS,
+                         SDLoc DL, SDNode *Node) const;
+
   virtual bool selectAddrRegImm(SDValue Addr, SDValue &Base,
                                 SDValue &Offset) const;
 
@@ -38,13 +47,13 @@ private:
   virtual bool selectIntAddr(SDValue Addr, SDValue &Base,
                              SDValue &Offset) const;
 
-  virtual std::pair<bool, SDNode*> SelectNode(SDNode *Node);
+  virtual std::pair<bool, SDNode*> selectNode(SDNode *Node);
 
-  virtual void ProcessFunctionAfterISel(MachineFunction &MF);
+  virtual void processFunctionAfterISel(MachineFunction &MF);
 
   // Insert instructions to initialize the global base register in the
   // first MBB of the function.
-  void InitGlobalBaseReg(MachineFunction &MF);
+  void initGlobalBaseReg(MachineFunction &MF);
 };
 
 FunctionPass *createMipsSEISelDag(MipsTargetMachine &TM);