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

Side by Side Diff: src/IceConverter.h

Issue 350933002: Refactor llvm2ice so that Ice can be built while reading bitcode. (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: Fix nits in patch set 2. Created 6 years, 5 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 | « Makefile.standalone ('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
(Empty)
1 //===- subzero/src/IceConverter.h - Converts LLVM to ICE --------*- C++ -*-===//
2 //
3 // The Subzero Code Generator
4 //
5 // This file is distributed under the University of Illinois Open Source
6 // License. See LICENSE.TXT for details.
7 //
8 //===----------------------------------------------------------------------===//
9 //
10 // This file declares the LLVM to ICE converter.
11 //
12 //===----------------------------------------------------------------------===//
13
14 #ifndef SUBZERO_SRC_ICECONVERTER_H
15 #define SUBZERO_SRC_ICECONVERTER_H
16
17 #include "IceGlobalContext.h"
18
19 namespace llvm {
20 class Module;
21 }
22
23 namespace Ice {
24
25 class Converter {
26 public:
27 Converter(Ice::GlobalContext *Ctx,
28 bool DisableInternal,
29 bool SubzeroTimingEnabled,
30 bool DisableTranslation)
31 : Ctx(Ctx),
32 DisableInternal(DisableInternal),
33 SubzeroTimingEnabled(SubzeroTimingEnabled),
34 DisableTranslation(DisableTranslation)
35 {}
36 /// Converts the LLVM Module to ICE. Returns exit status 0 if successful,
37 /// Nonzero otherwise.
38 int convertToIce(llvm::Module *Mod);
39 private:
40 Ice::GlobalContext *Ctx;
41 bool DisableInternal;
42 bool SubzeroTimingEnabled;
43 bool DisableTranslation;
44 };
45
46 }
47
48 #endif // SUBZERO_SRC_ICECONVERTER_H
OLDNEW
« no previous file with comments | « Makefile.standalone ('k') | src/IceConverter.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698