comparison lib/CodeGen/SelectionDAG/SelectionDAGDumper.cpp @ 83:60c9769439b8 LLVM3.7

LLVM 3.7
author Tatsuki IHA <e125716@ie.u-ryukyu.ac.jp>
date Wed, 18 Feb 2015 14:55:36 +0900
parents 54457678186b
children afa8332a0e37
comparison
equal deleted inserted replaced
78:af83660cff7b 83:60c9769439b8
139 case ISD::EH_LABEL: return "eh_label"; 139 case ISD::EH_LABEL: return "eh_label";
140 case ISD::HANDLENODE: return "handlenode"; 140 case ISD::HANDLENODE: return "handlenode";
141 141
142 // Unary operators 142 // Unary operators
143 case ISD::FABS: return "fabs"; 143 case ISD::FABS: return "fabs";
144 case ISD::FMINNUM: return "fminnum";
145 case ISD::FMAXNUM: return "fmaxnum";
144 case ISD::FNEG: return "fneg"; 146 case ISD::FNEG: return "fneg";
145 case ISD::FSQRT: return "fsqrt"; 147 case ISD::FSQRT: return "fsqrt";
146 case ISD::FSIN: return "fsin"; 148 case ISD::FSIN: return "fsin";
147 case ISD::FCOS: return "fcos"; 149 case ISD::FCOS: return "fcos";
148 case ISD::FSINCOS: return "fsincos"; 150 case ISD::FSINCOS: return "fsincos";
265 case ISD::CALLSEQ_END: return "callseq_end"; 267 case ISD::CALLSEQ_END: return "callseq_end";
266 268
267 // Other operators 269 // Other operators
268 case ISD::LOAD: return "load"; 270 case ISD::LOAD: return "load";
269 case ISD::STORE: return "store"; 271 case ISD::STORE: return "store";
272 case ISD::MLOAD: return "masked_load";
273 case ISD::MSTORE: return "masked_store";
270 case ISD::VAARG: return "vaarg"; 274 case ISD::VAARG: return "vaarg";
271 case ISD::VACOPY: return "vacopy"; 275 case ISD::VACOPY: return "vacopy";
272 case ISD::VAEND: return "vaend"; 276 case ISD::VAEND: return "vaend";
273 case ISD::VASTART: return "vastart"; 277 case ISD::VASTART: return "vastart";
274 case ISD::DYNAMIC_STACKALLOC: return "dynamic_stackalloc"; 278 case ISD::DYNAMIC_STACKALLOC: return "dynamic_stackalloc";
565 } 569 }
566 570
567 typedef SmallPtrSet<const SDNode *, 128> VisitedSDNodeSet; 571 typedef SmallPtrSet<const SDNode *, 128> VisitedSDNodeSet;
568 static void DumpNodesr(raw_ostream &OS, const SDNode *N, unsigned indent, 572 static void DumpNodesr(raw_ostream &OS, const SDNode *N, unsigned indent,
569 const SelectionDAG *G, VisitedSDNodeSet &once) { 573 const SelectionDAG *G, VisitedSDNodeSet &once) {
570 if (!once.insert(N)) // If we've been here before, return now. 574 if (!once.insert(N).second) // If we've been here before, return now.
571 return; 575 return;
572 576
573 // Dump the current SDNode, but don't end the line yet. 577 // Dump the current SDNode, but don't end the line yet.
574 OS.indent(indent); 578 OS.indent(indent);
575 N->printr(OS, G); 579 N->printr(OS, G);