Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(266)

Side by Side Diff: src/IceConverter.h

Issue 624663002: Introduce model of global initializers in Subzero. (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: Fix nits. Created 6 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « src/IceClFlags.h ('k') | src/IceConverter.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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.
11 // 11 //
12 //===----------------------------------------------------------------------===// 12 //===----------------------------------------------------------------------===//
13 13
14 #ifndef SUBZERO_SRC_ICECONVERTER_H 14 #ifndef SUBZERO_SRC_ICECONVERTER_H
15 #define SUBZERO_SRC_ICECONVERTER_H 15 #define SUBZERO_SRC_ICECONVERTER_H
16 16
17 #include "IceTranslator.h" 17 #include "IceTranslator.h"
18 18
19 namespace llvm { 19 namespace llvm {
20 class Module; 20 class Module;
21 } 21 }
22 22
23 namespace Ice { 23 namespace Ice {
24 24
25 class Converter : public Translator { 25 class Converter : public Translator {
26 public: 26 public:
27 Converter(llvm::Module *Mod, GlobalContext *Ctx, const Ice::ClFlags &Flags) 27 Converter(llvm::Module *Mod, GlobalContext *Ctx, const Ice::ClFlags &Flags)
28 : Translator(Ctx, Flags), Mod(Mod) {} 28 : Translator(Ctx, Flags), Mod(Mod) {}
29
29 /// Converts the LLVM Module to ICE. Sets exit status to false if successful, 30 /// Converts the LLVM Module to ICE. Sets exit status to false if successful,
30 /// true otherwise. 31 /// true otherwise.
31 void convertToIce(); 32 void convertToIce();
32 33
33 private: 34 private:
34 llvm::Module *Mod; 35 llvm::Module *Mod;
35 // Converts functions to ICE, and then machine code. 36 // Converts functions to ICE, and then machine code.
36 void convertFunctions(); 37 void convertFunctions();
38
39 // Converts globals to ICE, and then machine code.
40 void convertGlobals(llvm::Module *Mod);
41
37 Converter(const Converter &) = delete; 42 Converter(const Converter &) = delete;
38 Converter &operator=(const Converter &) = delete; 43 Converter &operator=(const Converter &) = delete;
39 }; 44 };
40 } 45
46 } // end of namespace ICE.
41 47
42 #endif // SUBZERO_SRC_ICECONVERTER_H 48 #endif // SUBZERO_SRC_ICECONVERTER_H
OLDNEW
« no previous file with comments | « src/IceClFlags.h ('k') | src/IceConverter.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698