| OLD | NEW |
| 1 //===- subzero/src/IceConverter.h - Converts LLVM to ICE --------*- C++ -*-===// | 1 //===- subzero/src/IceConverter.h - Converts LLVM to ICE --------*- C++ -*-===// |
| 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 13 matching lines...) Expand all Loading... |
| 24 } | 24 } |
| 25 | 25 |
| 26 namespace Ice { | 26 namespace Ice { |
| 27 | 27 |
| 28 class Converter : public Translator { | 28 class Converter : public Translator { |
| 29 Converter() = delete; | 29 Converter() = delete; |
| 30 Converter(const Converter &) = delete; | 30 Converter(const Converter &) = delete; |
| 31 Converter &operator=(const Converter &) = delete; | 31 Converter &operator=(const Converter &) = delete; |
| 32 | 32 |
| 33 public: | 33 public: |
| 34 Converter(llvm::Module *Mod, GlobalContext *Ctx) | 34 Converter(llvm::Module *MyMod, GlobalContext *MyCtx) |
| 35 : Translator(Ctx), Mod(Mod) {} | 35 : Translator(MyCtx), Mod(MyMod) {} |
| 36 | 36 |
| 37 ~Converter() = default; | 37 ~Converter() = default; |
| 38 | 38 |
| 39 /// Converts the LLVM Module to ICE. Sets exit status to false if successful, | 39 /// Converts the LLVM Module to ICE. Sets exit status to false if successful, |
| 40 /// true otherwise. | 40 /// true otherwise. |
| 41 void convertToIce(); | 41 void convertToIce(); |
| 42 | 42 |
| 43 llvm::Module *getModule() const { return Mod; } | 43 llvm::Module *getModule() const { return Mod; } |
| 44 | 44 |
| 45 /// Returns the global declaration associated with the corresponding | 45 /// Returns the global declaration associated with the corresponding |
| (...skipping 21 matching lines...) Expand all Loading... |
| 67 /// Converts globals to ICE, and then machine code. | 67 /// Converts globals to ICE, and then machine code. |
| 68 void convertGlobals(llvm::Module *Mod); | 68 void convertGlobals(llvm::Module *Mod); |
| 69 | 69 |
| 70 /// Installs global declarations into GlobalDeclarationMap. | 70 /// Installs global declarations into GlobalDeclarationMap. |
| 71 void installGlobalDeclarations(llvm::Module *Mod); | 71 void installGlobalDeclarations(llvm::Module *Mod); |
| 72 }; | 72 }; |
| 73 | 73 |
| 74 } // end of namespace ICE. | 74 } // end of namespace ICE. |
| 75 | 75 |
| 76 #endif // SUBZERO_SRC_ICECONVERTER_H | 76 #endif // SUBZERO_SRC_ICECONVERTER_H |
| OLD | NEW |