From a35bc832a0d03d1960a4baf2956df652f66808ef Mon Sep 17 00:00:00 2001 From: Akira Hatanaka Date: Sat, 16 Feb 2013 00:14:37 +0000 Subject: [PATCH] [mips] Remove SDNPWantParent from the list of SDNodeProperties. No functionality change intended. llvm-svn: 175325 --- llvm/lib/Target/Mips/MipsISelDAGToDAG.cpp | 25 +++++++++++-------------- llvm/lib/Target/Mips/MipsInstrInfo.td | 6 +++--- 2 files changed, 14 insertions(+), 17 deletions(-) diff --git a/llvm/lib/Target/Mips/MipsISelDAGToDAG.cpp b/llvm/lib/Target/Mips/MipsISelDAGToDAG.cpp index 385ade5..78c74ef 100644 --- a/llvm/lib/Target/Mips/MipsISelDAGToDAG.cpp +++ b/llvm/lib/Target/Mips/MipsISelDAGToDAG.cpp @@ -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::getMips16SPAliasReg() { /// 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(SDNode *Parent, SDValue Addr, 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) { diff --git a/llvm/lib/Target/Mips/MipsInstrInfo.td b/llvm/lib/Target/Mips/MipsInstrInfo.td index f37f935..de09c9e 100644 --- a/llvm/lib/Target/Mips/MipsInstrInfo.td +++ b/llvm/lib/Target/Mips/MipsInstrInfo.td @@ -334,13 +334,13 @@ def immZExt5 : ImmLeaf; // Mips Address Mode! SDNode frameindex could possibily be a match // since load and store instructions from stack used it. def addr : - ComplexPattern; + ComplexPattern; def addrRegImm : - ComplexPattern; + ComplexPattern; def addrDefault : - ComplexPattern; + ComplexPattern; //===----------------------------------------------------------------------===// // Instructions specific format -- 2.7.4