SparcISelDAGToDAG.cpp (251662) | SparcISelDAGToDAG.cpp (255804) |
---|---|
1//===-- SparcISelDAGToDAG.cpp - A dag to dag inst selector for Sparc ------===// 2// 3// The LLVM Compiler Infrastructure 4// 5// This file is distributed under the University of Illinois Open Source 6// License. See LICENSE.TXT for details. 7// 8//===----------------------------------------------------------------------===// --- 123 unchanged lines hidden (view full) --- 132 133 R1 = Addr; 134 R2 = CurDAG->getRegister(SP::G0, TLI.getPointerTy()); 135 return true; 136} 137 138SDNode *SparcDAGToDAGISel::Select(SDNode *N) { 139 DebugLoc dl = N->getDebugLoc(); | 1//===-- SparcISelDAGToDAG.cpp - A dag to dag inst selector for Sparc ------===// 2// 3// The LLVM Compiler Infrastructure 4// 5// This file is distributed under the University of Illinois Open Source 6// License. See LICENSE.TXT for details. 7// 8//===----------------------------------------------------------------------===// --- 123 unchanged lines hidden (view full) --- 132 133 R1 = Addr; 134 R2 = CurDAG->getRegister(SP::G0, TLI.getPointerTy()); 135 return true; 136} 137 138SDNode *SparcDAGToDAGISel::Select(SDNode *N) { 139 DebugLoc dl = N->getDebugLoc(); |
140 if (N->isMachineOpcode()) | 140 if (N->isMachineOpcode()) { 141 N->setNodeId(-1); |
141 return NULL; // Already selected. | 142 return NULL; // Already selected. |
143 } |
|
142 143 switch (N->getOpcode()) { 144 default: break; 145 case SPISD::GLOBAL_BASE_REG: 146 return getGlobalBaseReg(); 147 148 case ISD::SDIV: 149 case ISD::UDIV: { --- 66 unchanged lines hidden --- | 144 145 switch (N->getOpcode()) { 146 default: break; 147 case SPISD::GLOBAL_BASE_REG: 148 return getGlobalBaseReg(); 149 150 case ISD::SDIV: 151 case ISD::UDIV: { --- 66 unchanged lines hidden --- |