| OLD | NEW |
| 1 //===- subzero/src/IceConverter.cpp - Converts LLVM to Ice ---------------===// | 1 //===- subzero/src/IceConverter.cpp - Converts LLVM to Ice ---------------===// |
| 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 LLVM to ICE converter. | 10 // This file implements the LLVM to ICE converter. |
| (...skipping 619 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 630 convertGlobals(Mod); | 630 convertGlobals(Mod); |
| 631 convertFunctions(); | 631 convertFunctions(); |
| 632 } | 632 } |
| 633 | 633 |
| 634 void Converter::convertFunctions() { | 634 void Converter::convertFunctions() { |
| 635 for (Module::const_iterator I = Mod->begin(), E = Mod->end(); I != E; ++I) { | 635 for (Module::const_iterator I = Mod->begin(), E = Mod->end(); I != E; ++I) { |
| 636 if (I->empty()) | 636 if (I->empty()) |
| 637 continue; | 637 continue; |
| 638 LLVM2ICEConverter FunctionConverter(Ctx, Mod->getContext()); | 638 LLVM2ICEConverter FunctionConverter(Ctx, Mod->getContext()); |
| 639 | 639 |
| 640 Timer TConvert; | |
| 641 Cfg *Fcn = FunctionConverter.convertFunction(I); | 640 Cfg *Fcn = FunctionConverter.convertFunction(I); |
| 642 translateFcn(Fcn); | 641 translateFcn(Fcn); |
| 643 } | 642 } |
| 644 | 643 |
| 645 emitConstants(); | 644 emitConstants(); |
| 646 } | 645 } |
| 647 | 646 |
| 648 } // end of namespace Ice | 647 } // end of namespace Ice |
| OLD | NEW |