blob: 448f52160d4ba62a2a838ebb7d5d182f5577977a [file] [log] [blame]
Anton Korobeynikov4403b932009-07-16 13:27:25 +00001//===-- SystemZISelLowering.cpp - SystemZ DAG Lowering Implementation -----==//
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//===----------------------------------------------------------------------===//
9//
10// This file implements the SystemZTargetLowering class.
11//
12//===----------------------------------------------------------------------===//
13
14#define DEBUG_TYPE "systemz-lower"
15
16#include "SystemZISelLowering.h"
17#include "SystemZ.h"
18#include "SystemZTargetMachine.h"
19#include "SystemZSubtarget.h"
20#include "llvm/DerivedTypes.h"
21#include "llvm/Function.h"
22#include "llvm/Intrinsics.h"
23#include "llvm/CallingConv.h"
24#include "llvm/GlobalVariable.h"
25#include "llvm/GlobalAlias.h"
26#include "llvm/CodeGen/CallingConvLower.h"
27#include "llvm/CodeGen/MachineFrameInfo.h"
28#include "llvm/CodeGen/MachineFunction.h"
29#include "llvm/CodeGen/MachineInstrBuilder.h"
30#include "llvm/CodeGen/MachineRegisterInfo.h"
31#include "llvm/CodeGen/PseudoSourceValue.h"
32#include "llvm/CodeGen/SelectionDAGISel.h"
33#include "llvm/CodeGen/ValueTypes.h"
34#include "llvm/Support/Debug.h"
35#include "llvm/ADT/VectorExtras.h"
36using namespace llvm;
37
38SystemZTargetLowering::SystemZTargetLowering(SystemZTargetMachine &tm) :
39 TargetLowering(tm), Subtarget(*tm.getSubtargetImpl()), TM(tm) {
40
Anton Korobeynikov656ac6f2009-07-16 13:51:53 +000041 RegInfo = TM.getRegisterInfo();
42
Anton Korobeynikov4403b932009-07-16 13:27:25 +000043 // Set up the register classes.
Anton Korobeynikova51752c2009-07-16 13:42:31 +000044 addRegisterClass(MVT::i32, SystemZ::GR32RegisterClass);
Anton Korobeynikov4403b932009-07-16 13:27:25 +000045 addRegisterClass(MVT::i64, SystemZ::GR64RegisterClass);
46
47 // Compute derived properties from the register classes
48 computeRegisterProperties();
49
Anton Korobeynikov9e4816e2009-07-16 13:43:18 +000050 // Set shifts properties
51 setShiftAmountFlavor(Extend);
52 setShiftAmountType(MVT::i32);
53
Anton Korobeynikov4403b932009-07-16 13:27:25 +000054 // Provide all sorts of operation actions
55
Anton Korobeynikove0167c12009-07-16 13:35:30 +000056 setStackPointerRegisterToSaveRestore(SystemZ::R15D);
Anton Korobeynikov4403b932009-07-16 13:27:25 +000057 setSchedulingPreference(SchedulingForLatency);
Anton Korobeynikov87a24e32009-07-16 13:28:59 +000058
59 setOperationAction(ISD::RET, MVT::Other, Custom);
Anton Korobeynikov4ec3e5f2009-07-16 13:52:31 +000060
61 setOperationAction(ISD::BRCOND, MVT::Other, Expand);
62 setOperationAction(ISD::BR_CC, MVT::i32, Custom);
63 setOperationAction(ISD::BR_CC, MVT::i64, Custom);
Anton Korobeynikov4403b932009-07-16 13:27:25 +000064}
65
66SDValue SystemZTargetLowering::LowerOperation(SDValue Op, SelectionDAG &DAG) {
67 switch (Op.getOpcode()) {
Anton Korobeynikov87a24e32009-07-16 13:28:59 +000068 case ISD::FORMAL_ARGUMENTS: return LowerFORMAL_ARGUMENTS(Op, DAG);
69 case ISD::RET: return LowerRET(Op, DAG);
Anton Korobeynikovba249e42009-07-16 13:50:21 +000070 case ISD::CALL: return LowerCALL(Op, DAG);
Anton Korobeynikov4ec3e5f2009-07-16 13:52:31 +000071 case ISD::BR_CC: return LowerBR_CC(Op, DAG);
Anton Korobeynikov4403b932009-07-16 13:27:25 +000072 default:
73 assert(0 && "unimplemented operand");
74 return SDValue();
75 }
76}
77
78//===----------------------------------------------------------------------===//
79// Calling Convention Implementation
80//===----------------------------------------------------------------------===//
81
82#include "SystemZGenCallingConv.inc"
83
Anton Korobeynikov87a24e32009-07-16 13:28:59 +000084SDValue SystemZTargetLowering::LowerFORMAL_ARGUMENTS(SDValue Op,
85 SelectionDAG &DAG) {
86 unsigned CC = cast<ConstantSDNode>(Op.getOperand(1))->getZExtValue();
87 switch (CC) {
88 default:
89 assert(0 && "Unsupported calling convention");
90 case CallingConv::C:
91 case CallingConv::Fast:
92 return LowerCCCArguments(Op, DAG);
93 }
94}
95
Anton Korobeynikovba249e42009-07-16 13:50:21 +000096SDValue SystemZTargetLowering::LowerCALL(SDValue Op, SelectionDAG &DAG) {
97 CallSDNode *TheCall = cast<CallSDNode>(Op.getNode());
98 unsigned CallingConv = TheCall->getCallingConv();
99 switch (CallingConv) {
100 default:
101 assert(0 && "Unsupported calling convention");
102 case CallingConv::Fast:
103 case CallingConv::C:
104 return LowerCCCCallTo(Op, DAG, CallingConv);
105 }
106}
107
Anton Korobeynikov87a24e32009-07-16 13:28:59 +0000108/// LowerCCCArguments - transform physical registers into virtual registers and
109/// generate load operations for arguments places on the stack.
110// FIXME: struct return stuff
111// FIXME: varargs
112SDValue SystemZTargetLowering::LowerCCCArguments(SDValue Op,
113 SelectionDAG &DAG) {
114 MachineFunction &MF = DAG.getMachineFunction();
115 MachineFrameInfo *MFI = MF.getFrameInfo();
116 MachineRegisterInfo &RegInfo = MF.getRegInfo();
117 SDValue Root = Op.getOperand(0);
118 bool isVarArg = cast<ConstantSDNode>(Op.getOperand(2))->getZExtValue() != 0;
119 unsigned CC = MF.getFunction()->getCallingConv();
120 DebugLoc dl = Op.getDebugLoc();
121
122 // Assign locations to all of the incoming arguments.
123 SmallVector<CCValAssign, 16> ArgLocs;
124 CCState CCInfo(CC, isVarArg, getTargetMachine(), ArgLocs);
125 CCInfo.AnalyzeFormalArguments(Op.getNode(), CC_SystemZ);
126
127 assert(!isVarArg && "Varargs not supported yet");
128
129 SmallVector<SDValue, 16> ArgValues;
130 for (unsigned i = 0, e = ArgLocs.size(); i != e; ++i) {
131 CCValAssign &VA = ArgLocs[i];
132 if (VA.isRegLoc()) {
133 // Arguments passed in registers
134 MVT RegVT = VA.getLocVT();
135 switch (RegVT.getSimpleVT()) {
136 default:
137 cerr << "LowerFORMAL_ARGUMENTS Unhandled argument type: "
138 << RegVT.getSimpleVT()
139 << "\n";
140 abort();
141 case MVT::i64:
142 unsigned VReg =
143 RegInfo.createVirtualRegister(SystemZ::GR64RegisterClass);
144 RegInfo.addLiveIn(VA.getLocReg(), VReg);
145 SDValue ArgValue = DAG.getCopyFromReg(Root, dl, VReg, RegVT);
146
147 // If this is an 8/16/32-bit value, it is really passed promoted to 64
148 // bits. Insert an assert[sz]ext to capture this, then truncate to the
149 // right size.
150 if (VA.getLocInfo() == CCValAssign::SExt)
151 ArgValue = DAG.getNode(ISD::AssertSext, dl, RegVT, ArgValue,
152 DAG.getValueType(VA.getValVT()));
153 else if (VA.getLocInfo() == CCValAssign::ZExt)
154 ArgValue = DAG.getNode(ISD::AssertZext, dl, RegVT, ArgValue,
155 DAG.getValueType(VA.getValVT()));
156
157 if (VA.getLocInfo() != CCValAssign::Full)
158 ArgValue = DAG.getNode(ISD::TRUNCATE, dl, VA.getValVT(), ArgValue);
159
160 ArgValues.push_back(ArgValue);
161 }
162 } else {
163 // Sanity check
164 assert(VA.isMemLoc());
165 // Load the argument to a virtual register
166 unsigned ObjSize = VA.getLocVT().getSizeInBits()/8;
167 if (ObjSize > 8) {
168 cerr << "LowerFORMAL_ARGUMENTS Unhandled argument type: "
169 << VA.getLocVT().getSimpleVT()
170 << "\n";
171 }
172 // Create the frame index object for this incoming parameter...
173 int FI = MFI->CreateFixedObject(ObjSize, VA.getLocMemOffset());
174
175 // Create the SelectionDAG nodes corresponding to a load
176 //from this parameter
177 SDValue FIN = DAG.getFrameIndex(FI, MVT::i64);
178 ArgValues.push_back(DAG.getLoad(VA.getLocVT(), dl, Root, FIN,
179 PseudoSourceValue::getFixedStack(FI), 0));
180 }
181 }
182
183 ArgValues.push_back(Root);
184
185 // Return the new list of results.
186 return DAG.getNode(ISD::MERGE_VALUES, dl, Op.getNode()->getVTList(),
187 &ArgValues[0], ArgValues.size()).getValue(Op.getResNo());
188}
189
Anton Korobeynikovba249e42009-07-16 13:50:21 +0000190/// LowerCCCCallTo - functions arguments are copied from virtual regs to
191/// (physical regs)/(stack frame), CALLSEQ_START and CALLSEQ_END are emitted.
192/// TODO: sret.
193SDValue SystemZTargetLowering::LowerCCCCallTo(SDValue Op, SelectionDAG &DAG,
194 unsigned CC) {
195 CallSDNode *TheCall = cast<CallSDNode>(Op.getNode());
196 SDValue Chain = TheCall->getChain();
197 SDValue Callee = TheCall->getCallee();
198 bool isVarArg = TheCall->isVarArg();
199 DebugLoc dl = Op.getDebugLoc();
Anton Korobeynikov656ac6f2009-07-16 13:51:53 +0000200 MachineFunction &MF = DAG.getMachineFunction();
Anton Korobeynikovba249e42009-07-16 13:50:21 +0000201
Anton Korobeynikovc7b71be2009-07-16 13:52:10 +0000202 // Offset to first argument stack slot.
203 const unsigned FirstArgOffset = 160;
204
Anton Korobeynikovba249e42009-07-16 13:50:21 +0000205 // Analyze operands of the call, assigning locations to each operand.
206 SmallVector<CCValAssign, 16> ArgLocs;
207 CCState CCInfo(CC, isVarArg, getTargetMachine(), ArgLocs);
208
209 CCInfo.AnalyzeCallOperands(TheCall, CC_SystemZ);
210
211 // Get a count of how many bytes are to be pushed on the stack.
212 unsigned NumBytes = CCInfo.getNextStackOffset();
213
214 Chain = DAG.getCALLSEQ_START(Chain ,DAG.getConstant(NumBytes,
215 getPointerTy(), true));
216
217 SmallVector<std::pair<unsigned, SDValue>, 4> RegsToPass;
218 SmallVector<SDValue, 12> MemOpChains;
219 SDValue StackPtr;
220
221 // Walk the register/memloc assignments, inserting copies/loads.
222 for (unsigned i = 0, e = ArgLocs.size(); i != e; ++i) {
223 CCValAssign &VA = ArgLocs[i];
224
225 // Arguments start after the 5 first operands of ISD::CALL
226 SDValue Arg = TheCall->getArg(i);
227
228 // Promote the value if needed.
229 switch (VA.getLocInfo()) {
230 default: assert(0 && "Unknown loc info!");
231 case CCValAssign::Full: break;
232 case CCValAssign::SExt:
233 Arg = DAG.getNode(ISD::SIGN_EXTEND, dl, VA.getLocVT(), Arg);
234 break;
235 case CCValAssign::ZExt:
236 Arg = DAG.getNode(ISD::ZERO_EXTEND, dl, VA.getLocVT(), Arg);
237 break;
238 case CCValAssign::AExt:
239 Arg = DAG.getNode(ISD::ANY_EXTEND, dl, VA.getLocVT(), Arg);
240 break;
241 }
242
243 // Arguments that can be passed on register must be kept at RegsToPass
244 // vector
245 if (VA.isRegLoc()) {
246 RegsToPass.push_back(std::make_pair(VA.getLocReg(), Arg));
247 } else {
248 assert(VA.isMemLoc());
249
250 if (StackPtr.getNode() == 0)
Anton Korobeynikov656ac6f2009-07-16 13:51:53 +0000251 StackPtr =
252 DAG.getCopyFromReg(Chain, dl,
253 (RegInfo->hasFP(MF) ?
254 SystemZ::R11D : SystemZ::R15D),
255 getPointerTy());
Anton Korobeynikovba249e42009-07-16 13:50:21 +0000256
Anton Korobeynikovc7b71be2009-07-16 13:52:10 +0000257 unsigned Offset = FirstArgOffset + VA.getLocMemOffset();
258 SDValue PtrOff = DAG.getNode(ISD::ADD, dl, getPointerTy(),
259 StackPtr,
260 DAG.getIntPtrConstant(Offset));
Anton Korobeynikovba249e42009-07-16 13:50:21 +0000261
262 MemOpChains.push_back(DAG.getStore(Chain, dl, Arg, PtrOff,
Anton Korobeynikovc7b71be2009-07-16 13:52:10 +0000263 PseudoSourceValue::getStack(), Offset));
Anton Korobeynikovba249e42009-07-16 13:50:21 +0000264 }
265 }
266
267 // Transform all store nodes into one single node because all store nodes are
268 // independent of each other.
269 if (!MemOpChains.empty())
270 Chain = DAG.getNode(ISD::TokenFactor, dl, MVT::Other,
271 &MemOpChains[0], MemOpChains.size());
272
273 // Build a sequence of copy-to-reg nodes chained together with token chain and
274 // flag operands which copy the outgoing args into registers. The InFlag in
275 // necessary since all emited instructions must be stuck together.
276 SDValue InFlag;
277 for (unsigned i = 0, e = RegsToPass.size(); i != e; ++i) {
278 Chain = DAG.getCopyToReg(Chain, dl, RegsToPass[i].first,
279 RegsToPass[i].second, InFlag);
280 InFlag = Chain.getValue(1);
281 }
282
283 // If the callee is a GlobalAddress node (quite common, every direct call is)
284 // turn it into a TargetGlobalAddress node so that legalize doesn't hack it.
285 // Likewise ExternalSymbol -> TargetExternalSymbol.
286 if (GlobalAddressSDNode *G = dyn_cast<GlobalAddressSDNode>(Callee))
287 Callee = DAG.getTargetGlobalAddress(G->getGlobal(), getPointerTy());
288 else if (ExternalSymbolSDNode *E = dyn_cast<ExternalSymbolSDNode>(Callee))
289 Callee = DAG.getTargetExternalSymbol(E->getSymbol(), getPointerTy());
290
291 // Returns a chain & a flag for retval copy to use.
292 SDVTList NodeTys = DAG.getVTList(MVT::Other, MVT::Flag);
293 SmallVector<SDValue, 8> Ops;
294 Ops.push_back(Chain);
295 Ops.push_back(Callee);
296
297 // Add argument registers to the end of the list so that they are
298 // known live into the call.
299 for (unsigned i = 0, e = RegsToPass.size(); i != e; ++i)
300 Ops.push_back(DAG.getRegister(RegsToPass[i].first,
301 RegsToPass[i].second.getValueType()));
302
303 if (InFlag.getNode())
304 Ops.push_back(InFlag);
305
306 Chain = DAG.getNode(SystemZISD::CALL, dl, NodeTys, &Ops[0], Ops.size());
307 InFlag = Chain.getValue(1);
308
309 // Create the CALLSEQ_END node.
310 Chain = DAG.getCALLSEQ_END(Chain,
311 DAG.getConstant(NumBytes, getPointerTy(), true),
312 DAG.getConstant(0, getPointerTy(), true),
313 InFlag);
314 InFlag = Chain.getValue(1);
315
316 // Handle result values, copying them out of physregs into vregs that we
317 // return.
318 return SDValue(LowerCallResult(Chain, InFlag, TheCall, CC, DAG),
319 Op.getResNo());
320}
321
322/// LowerCallResult - Lower the result values of an ISD::CALL into the
323/// appropriate copies out of appropriate physical registers. This assumes that
324/// Chain/InFlag are the input chain/flag to use, and that TheCall is the call
325/// being lowered. Returns a SDNode with the same number of values as the
326/// ISD::CALL.
327SDNode*
328SystemZTargetLowering::LowerCallResult(SDValue Chain, SDValue InFlag,
329 CallSDNode *TheCall,
330 unsigned CallingConv,
331 SelectionDAG &DAG) {
332 bool isVarArg = TheCall->isVarArg();
333 DebugLoc dl = TheCall->getDebugLoc();
334
335 // Assign locations to each value returned by this call.
336 SmallVector<CCValAssign, 16> RVLocs;
337 CCState CCInfo(CallingConv, isVarArg, getTargetMachine(), RVLocs);
338
339 CCInfo.AnalyzeCallResult(TheCall, RetCC_SystemZ);
340 SmallVector<SDValue, 8> ResultVals;
341
342 // Copy all of the result registers out of their specified physreg.
343 for (unsigned i = 0; i != RVLocs.size(); ++i) {
344 Chain = DAG.getCopyFromReg(Chain, dl, RVLocs[i].getLocReg(),
345 RVLocs[i].getValVT(), InFlag).getValue(1);
346 InFlag = Chain.getValue(2);
347 ResultVals.push_back(Chain.getValue(0));
348 }
349
350 ResultVals.push_back(Chain);
351
352 // Merge everything together with a MERGE_VALUES node.
353 return DAG.getNode(ISD::MERGE_VALUES, dl, TheCall->getVTList(),
354 &ResultVals[0], ResultVals.size()).getNode();
355}
356
357
Anton Korobeynikov87a24e32009-07-16 13:28:59 +0000358SDValue SystemZTargetLowering::LowerRET(SDValue Op, SelectionDAG &DAG) {
359 // CCValAssign - represent the assignment of the return value to a location
360 SmallVector<CCValAssign, 16> RVLocs;
361 unsigned CC = DAG.getMachineFunction().getFunction()->getCallingConv();
362 bool isVarArg = DAG.getMachineFunction().getFunction()->isVarArg();
363 DebugLoc dl = Op.getDebugLoc();
364
365 // CCState - Info about the registers and stack slot.
366 CCState CCInfo(CC, isVarArg, getTargetMachine(), RVLocs);
367
368 // Analize return values of ISD::RET
369 CCInfo.AnalyzeReturn(Op.getNode(), RetCC_SystemZ);
370
371 // If this is the first return lowered for this function, add the regs to the
372 // liveout set for the function.
373 if (DAG.getMachineFunction().getRegInfo().liveout_empty()) {
374 for (unsigned i = 0; i != RVLocs.size(); ++i)
375 if (RVLocs[i].isRegLoc())
376 DAG.getMachineFunction().getRegInfo().addLiveOut(RVLocs[i].getLocReg());
377 }
378
379 // The chain is always operand #0
380 SDValue Chain = Op.getOperand(0);
381 SDValue Flag;
382
383 // Copy the result values into the output registers.
384 for (unsigned i = 0; i != RVLocs.size(); ++i) {
385 CCValAssign &VA = RVLocs[i];
Anton Korobeynikova51752c2009-07-16 13:42:31 +0000386 SDValue ResValue = Op.getOperand(i*2+1);
Anton Korobeynikov87a24e32009-07-16 13:28:59 +0000387 assert(VA.isRegLoc() && "Can only return in registers!");
388
Anton Korobeynikova51752c2009-07-16 13:42:31 +0000389 // If this is an 8/16/32-bit value, it is really should be passed promoted
390 // to 64 bits.
391 if (VA.getLocInfo() == CCValAssign::SExt)
392 ResValue = DAG.getNode(ISD::SIGN_EXTEND, dl, VA.getLocVT(), ResValue);
393 else if (VA.getLocInfo() == CCValAssign::ZExt)
394 ResValue = DAG.getNode(ISD::ZERO_EXTEND, dl, VA.getLocVT(), ResValue);
395 else if (VA.getLocInfo() == CCValAssign::AExt)
396 ResValue = DAG.getNode(ISD::ANY_EXTEND, dl, VA.getLocVT(), ResValue);
397
Anton Korobeynikov87a24e32009-07-16 13:28:59 +0000398 // ISD::RET => ret chain, (regnum1,val1), ...
399 // So i*2+1 index only the regnums
Anton Korobeynikova51752c2009-07-16 13:42:31 +0000400 Chain = DAG.getCopyToReg(Chain, dl, VA.getLocReg(), ResValue, Flag);
Anton Korobeynikov87a24e32009-07-16 13:28:59 +0000401
402 // Guarantee that all emitted copies are stuck together,
403 // avoiding something bad.
404 Flag = Chain.getValue(1);
405 }
406
407 if (Flag.getNode())
408 return DAG.getNode(SystemZISD::RET_FLAG, dl, MVT::Other, Chain, Flag);
409
410 // Return Void
411 return DAG.getNode(SystemZISD::RET_FLAG, dl, MVT::Other, Chain);
412}
413
Anton Korobeynikov4ec3e5f2009-07-16 13:52:31 +0000414SDValue SystemZTargetLowering::EmitCmp(SDValue LHS, SDValue RHS,
415 ISD::CondCode CC, SDValue &SystemZCC,
416 SelectionDAG &DAG) {
417 assert(!LHS.getValueType().isFloatingPoint() && "We don't handle FP yet");
418
419 // FIXME: Emit a test if RHS is zero
420
421 bool isUnsigned = false;
422 SystemZCC::CondCodes TCC;
423 switch (CC) {
424 default: assert(0 && "Invalid integer condition!");
425 case ISD::SETEQ:
426 TCC = SystemZCC::E;
427 break;
428 case ISD::SETNE:
429 TCC = SystemZCC::NE;
430 break;
431 case ISD::SETULE:
432 isUnsigned = true; // FALLTHROUGH
433 case ISD::SETLE:
434 TCC = SystemZCC::LE;
435 break;
436 case ISD::SETUGE:
437 isUnsigned = true; // FALLTHROUGH
438 case ISD::SETGE:
439 TCC = SystemZCC::HE;
440 break;
441 case ISD::SETUGT:
442 isUnsigned = true;
443 case ISD::SETGT:
444 TCC = SystemZCC::H; // FALLTHROUGH
445 break;
446 case ISD::SETULT:
447 isUnsigned = true;
448 case ISD::SETLT: // FALLTHROUGH
449 TCC = SystemZCC::L;
450 break;
451 }
452
453 SystemZCC = DAG.getConstant(TCC, MVT::i32);
454
455 DebugLoc dl = LHS.getDebugLoc();
456 return DAG.getNode((isUnsigned ? SystemZISD::UCMP : SystemZISD::CMP),
457 dl, MVT::Flag, LHS, RHS);
458}
459
460
461SDValue SystemZTargetLowering::LowerBR_CC(SDValue Op, SelectionDAG &DAG) {
462 SDValue Chain = Op.getOperand(0);
463 ISD::CondCode CC = cast<CondCodeSDNode>(Op.getOperand(1))->get();
464 SDValue LHS = Op.getOperand(2);
465 SDValue RHS = Op.getOperand(3);
466 SDValue Dest = Op.getOperand(4);
467 DebugLoc dl = Op.getDebugLoc();
468
469 SDValue SystemZCC;
470 SDValue Flag = EmitCmp(LHS, RHS, CC, SystemZCC, DAG);
471 return DAG.getNode(SystemZISD::BRCOND, dl, Op.getValueType(),
472 Chain, Dest, SystemZCC, Flag);
473}
474
475
Anton Korobeynikov4403b932009-07-16 13:27:25 +0000476const char *SystemZTargetLowering::getTargetNodeName(unsigned Opcode) const {
477 switch (Opcode) {
Anton Korobeynikov87a24e32009-07-16 13:28:59 +0000478 case SystemZISD::RET_FLAG: return "SystemZISD::RET_FLAG";
Anton Korobeynikovba249e42009-07-16 13:50:21 +0000479 case SystemZISD::CALL: return "SystemZISD::CALL";
Anton Korobeynikov4ec3e5f2009-07-16 13:52:31 +0000480 case SystemZISD::BRCOND: return "SystemZISD::BRCOND";
481 case SystemZISD::CMP: return "SystemZISD::CMP";
482 case SystemZISD::UCMP: return "SystemZISD::UCMP";
Anton Korobeynikov4403b932009-07-16 13:27:25 +0000483 default: return NULL;
484 }
485}
486