OLD | NEW |
1 //===- subzero/src/IceCfg.cpp - Control flow graph implementation ---------===// | 1 //===- subzero/src/IceCfg.cpp - Control flow graph implementation ---------===// |
2 // | 2 // |
3 // The Subzero Code Generator | 3 // The Subzero Code Generator |
4 // | 4 // |
5 // This file is distributed under the University of Illinois Open Source | 5 // This file is distributed under the University of Illinois Open Source |
6 // License. See LICENSE.TXT for details. | 6 // License. See LICENSE.TXT for details. |
7 // | 7 // |
8 //===----------------------------------------------------------------------===// | 8 //===----------------------------------------------------------------------===// |
9 // | 9 // |
10 // This file implements the Cfg class, including constant pool | 10 // This file implements the Cfg class, including constant pool |
(...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
103 (*I)->placePhiStores(); | 103 (*I)->placePhiStores(); |
104 } | 104 } |
105 } | 105 } |
106 | 106 |
107 void Cfg::deletePhis() { | 107 void Cfg::deletePhis() { |
108 for (NodeList::iterator I = Nodes.begin(), E = Nodes.end(); I != E; ++I) { | 108 for (NodeList::iterator I = Nodes.begin(), E = Nodes.end(); I != E; ++I) { |
109 (*I)->deletePhis(); | 109 (*I)->deletePhis(); |
110 } | 110 } |
111 } | 111 } |
112 | 112 |
| 113 void Cfg::doArgLowering() { |
| 114 getTarget()->lowerArguments(); |
| 115 } |
| 116 |
113 void Cfg::doAddressOpt() { | 117 void Cfg::doAddressOpt() { |
114 for (NodeList::iterator I = Nodes.begin(), E = Nodes.end(); I != E; ++I) { | 118 for (NodeList::iterator I = Nodes.begin(), E = Nodes.end(); I != E; ++I) { |
115 (*I)->doAddressOpt(); | 119 (*I)->doAddressOpt(); |
116 } | 120 } |
117 } | 121 } |
118 | 122 |
119 void Cfg::genCode() { | 123 void Cfg::genCode() { |
120 for (NodeList::iterator I = Nodes.begin(), E = Nodes.end(); I != E; ++I) { | 124 for (NodeList::iterator I = Nodes.begin(), E = Nodes.end(); I != E; ++I) { |
121 (*I)->genCode(); | 125 (*I)->genCode(); |
122 } | 126 } |
(...skipping 225 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
348 for (NodeList::const_iterator I = Nodes.begin(), E = Nodes.end(); I != E; | 352 for (NodeList::const_iterator I = Nodes.begin(), E = Nodes.end(); I != E; |
349 ++I) { | 353 ++I) { |
350 (*I)->dump(this); | 354 (*I)->dump(this); |
351 } | 355 } |
352 if (getContext()->isVerbose(IceV_Instructions)) { | 356 if (getContext()->isVerbose(IceV_Instructions)) { |
353 Str << "}\n"; | 357 Str << "}\n"; |
354 } | 358 } |
355 } | 359 } |
356 | 360 |
357 } // end of namespace Ice | 361 } // end of namespace Ice |
OLD | NEW |