| 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 /// \file | 10 /// \file |
| (...skipping 637 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 648 | 648 |
| 649 // Converter from LLVM global variables to ICE. The entry point is the | 649 // Converter from LLVM global variables to ICE. The entry point is the |
| 650 // convertGlobalsToIce method. | 650 // convertGlobalsToIce method. |
| 651 // | 651 // |
| 652 // Note: this currently assumes that the given IR was verified to be | 652 // Note: this currently assumes that the given IR was verified to be |
| 653 // valid PNaCl bitcode. Othewise, the behavior is undefined. | 653 // valid PNaCl bitcode. Othewise, the behavior is undefined. |
| 654 class LLVM2ICEGlobalsConverter : public LLVM2ICEConverter { | 654 class LLVM2ICEGlobalsConverter : public LLVM2ICEConverter { |
| 655 LLVM2ICEGlobalsConverter() = delete; | 655 LLVM2ICEGlobalsConverter() = delete; |
| 656 LLVM2ICEGlobalsConverter(const LLVM2ICEGlobalsConverter &) = delete; | 656 LLVM2ICEGlobalsConverter(const LLVM2ICEGlobalsConverter &) = delete; |
| 657 LLVM2ICEGlobalsConverter & | 657 LLVM2ICEGlobalsConverter & |
| 658 operator-(const LLVM2ICEGlobalsConverter &) = delete; | 658 operator=(const LLVM2ICEGlobalsConverter &) = delete; |
| 659 | 659 |
| 660 public: | 660 public: |
| 661 explicit LLVM2ICEGlobalsConverter(Ice::Converter &Converter) | 661 explicit LLVM2ICEGlobalsConverter(Ice::Converter &Converter) |
| 662 : LLVM2ICEConverter(Converter) {} | 662 : LLVM2ICEConverter(Converter) {} |
| 663 | 663 |
| 664 /// Converts global variables, and their initializers into ICE | 664 /// Converts global variables, and their initializers into ICE |
| 665 /// global variable declarations, for module Mod. Returns the set of | 665 /// global variable declarations, for module Mod. Returns the set of |
| 666 /// converted declarations. | 666 /// converted declarations. |
| 667 std::unique_ptr<Ice::VariableDeclarationList> | 667 std::unique_ptr<Ice::VariableDeclarationList> |
| 668 convertGlobalsToIce(Module *Mod); | 668 convertGlobalsToIce(Module *Mod); |
| (...skipping 236 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 905 Ctx->pushTimer(TimerID, StackID); | 905 Ctx->pushTimer(TimerID, StackID); |
| 906 } | 906 } |
| 907 LLVM2ICEFunctionConverter FunctionConverter(*this); | 907 LLVM2ICEFunctionConverter FunctionConverter(*this); |
| 908 FunctionConverter.convertFunction(&I); | 908 FunctionConverter.convertFunction(&I); |
| 909 if (TimeThisFunction) | 909 if (TimeThisFunction) |
| 910 Ctx->popTimer(TimerID, StackID); | 910 Ctx->popTimer(TimerID, StackID); |
| 911 } | 911 } |
| 912 } | 912 } |
| 913 | 913 |
| 914 } // end of namespace Ice | 914 } // end of namespace Ice |
| OLD | NEW |