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

Side by Side Diff: src/IceConverter.h

Issue 656123003: Subzero: Class definition cleanup. (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: Changes for Karl 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/IceCfgNode.h ('k') | src/IceGlobalContext.h » ('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 "IceDefs.h" 17 #include "IceDefs.h"
18 #include "IceTranslator.h" 18 #include "IceTranslator.h"
19 19
20 namespace llvm { 20 namespace llvm {
21 class GlobalValue; 21 class GlobalValue;
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;
29 Converter &operator=(const Converter &) = delete;
30
28 public: 31 public:
29 Converter(llvm::Module *Mod, GlobalContext *Ctx, const Ice::ClFlags &Flags) 32 Converter(llvm::Module *Mod, GlobalContext *Ctx, const Ice::ClFlags &Flags)
30 : Translator(Ctx, Flags), Mod(Mod) {} 33 : Translator(Ctx, Flags), Mod(Mod) {}
31 34
32 ~Converter() {} 35 ~Converter() {}
33 36
34 /// 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,
35 /// true otherwise. 38 /// true otherwise.
36 void convertToIce(); 39 void convertToIce();
37 40
(...skipping 19 matching lines...) Expand all
57 void nameUnnamedFunctions(llvm::Module *Mod); 60 void nameUnnamedFunctions(llvm::Module *Mod);
58 61
59 // Converts functions to ICE, and then machine code. 62 // Converts functions to ICE, and then machine code.
60 void convertFunctions(); 63 void convertFunctions();
61 64
62 // Converts globals to ICE, and then machine code. 65 // Converts globals to ICE, and then machine code.
63 void convertGlobals(llvm::Module *Mod); 66 void convertGlobals(llvm::Module *Mod);
64 67
65 // Installs global declarations into GlobalDeclarationMap. 68 // Installs global declarations into GlobalDeclarationMap.
66 void installGlobalDeclarations(llvm::Module *Mod); 69 void installGlobalDeclarations(llvm::Module *Mod);
67
68 Converter(const Converter &) = delete;
69 Converter &operator=(const Converter &) = delete;
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
OLDNEW
« no previous file with comments | « src/IceCfgNode.h ('k') | src/IceGlobalContext.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698