[llvm] r175325 - [mips] Remove SDNPWantParent from the list of SDNodeProperties.

Akira Hatanaka ahatanaka at mips.com
Fri Feb 15 16:14:38 PST 2013


Author: ahatanak
Date: Fri Feb 15 18:14:37 2013
New Revision: 175325

URL: http://llvm.org/viewvc/llvm-project?rev=175325&view=rev
Log:
[mips] Remove SDNPWantParent from the list of SDNodeProperties.

No functionality change intended.

Modified:
    llvm/trunk/lib/Target/Mips/MipsISelDAGToDAG.cpp
    llvm/trunk/lib/Target/Mips/MipsInstrInfo.td

Modified: llvm/trunk/lib/Target/Mips/MipsISelDAGToDAG.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/Mips/MipsISelDAGToDAG.cpp?rev=175325&r1=175324&r2=175325&view=diff
==============================================================================
--- llvm/trunk/lib/Target/Mips/MipsISelDAGToDAG.cpp (original)
+++ llvm/trunk/lib/Target/Mips/MipsISelDAGToDAG.cpp Fri Feb 15 18:14:37 2013
@@ -97,16 +97,13 @@ private:
 
   // Complex Pattern.
   /// (reg + imm).
-  bool selectAddrRegImm(SDNode *Parent, SDValue Addr, SDValue &Base,
-                        SDValue &Offset) const;
+  bool selectAddrRegImm(SDValue Addr, SDValue &Base, SDValue &Offset) const;
 
   /// Fall back on this function if all else fails.
-  bool selectAddrDefault(SDNode *Parent, SDValue Addr, SDValue &Base,
-                         SDValue &Offset) const;
+  bool selectAddrDefault(SDValue Addr, SDValue &Base, SDValue &Offset) const;
 
   /// Match integer address pattern.
-  bool selectIntAddr(SDNode *Parent, SDValue Addr, SDValue &Base,
-                     SDValue &Offset) const;
+  bool selectIntAddr(SDValue Addr, SDValue &Base, SDValue &Offset) const;
 
   bool SelectAddr16(SDNode *Parent, SDValue N, SDValue &Base, SDValue &Offset,
        SDValue &Alias);
@@ -333,8 +330,8 @@ SDValue MipsDAGToDAGISel::getMips16SPAli
 
 /// ComplexPattern used on MipsInstrInfo
 /// Used on Mips Load/Store instructions
-bool MipsDAGToDAGISel::selectAddrRegImm(SDNode *Parent, SDValue Addr,
-                                        SDValue &Base, SDValue &Offset) const {
+bool MipsDAGToDAGISel::selectAddrRegImm(SDValue Addr, SDValue &Base,
+                                        SDValue &Offset) const {
   EVT ValTy = Addr.getValueType();
 
   // if Address is FI, get the TargetFrameIndex.
@@ -399,17 +396,17 @@ bool MipsDAGToDAGISel::selectAddrRegImm(
   return false;
 }
 
-bool MipsDAGToDAGISel::selectAddrDefault(SDNode *Parent, SDValue Addr,
-                                         SDValue &Base, SDValue &Offset) const {
+bool MipsDAGToDAGISel::selectAddrDefault(SDValue Addr, SDValue &Base,
+                                         SDValue &Offset) const {
   Base = Addr;
   Offset = CurDAG->getTargetConstant(0, Addr.getValueType());
   return true;
 }
 
-bool MipsDAGToDAGISel::selectIntAddr(SDNode *Parent, SDValue Addr,
-                                     SDValue &Base, SDValue &Offset) const {
-  return selectAddrRegImm(Parent, Addr, Base, Offset) ||
-    selectAddrDefault(Parent, Addr, Base, Offset);
+bool MipsDAGToDAGISel::selectIntAddr(SDValue Addr, SDValue &Base,
+                                     SDValue &Offset) const {
+  return selectAddrRegImm(Addr, Base, Offset) ||
+    selectAddrDefault(Addr, Base, Offset);
 }
 
 void MipsDAGToDAGISel::getMips16SPRefReg(SDNode *Parent, SDValue &AliasReg) {

Modified: llvm/trunk/lib/Target/Mips/MipsInstrInfo.td
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/Mips/MipsInstrInfo.td?rev=175325&r1=175324&r2=175325&view=diff
==============================================================================
--- llvm/trunk/lib/Target/Mips/MipsInstrInfo.td (original)
+++ llvm/trunk/lib/Target/Mips/MipsInstrInfo.td Fri Feb 15 18:14:37 2013
@@ -334,13 +334,13 @@ def immZExt5 : ImmLeaf<i32, [{return Imm
 // Mips Address Mode! SDNode frameindex could possibily be a match
 // since load and store instructions from stack used it.
 def addr :
-  ComplexPattern<iPTR, 2, "selectIntAddr", [frameindex], [SDNPWantParent]>;
+  ComplexPattern<iPTR, 2, "selectIntAddr", [frameindex]>;
 
 def addrRegImm :
-  ComplexPattern<iPTR, 2, "selectAddrRegImm", [frameindex], [SDNPWantParent]>;
+  ComplexPattern<iPTR, 2, "selectAddrRegImm", [frameindex]>;
 
 def addrDefault :
-  ComplexPattern<iPTR, 2, "selectAddrDefault", [frameindex], [SDNPWantParent]>;
+  ComplexPattern<iPTR, 2, "selectAddrDefault", [frameindex]>;
 
 //===----------------------------------------------------------------------===//
 // Instructions specific format





More information about the llvm-commits mailing list