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