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

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. Created 6 years, 6 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
OLDNEW
(Empty)
1 //===- subzero/src/IceConverter.h - Converts LLVM to Ice ------*- C++ -*-===//
Jim Stichnoth 2014/06/24 23:06:37 Space this out to 80 chars like the other similar
Karl 2014/06/25 16:02:05 Done.
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 {
Jim Stichnoth 2014/06/24 23:06:37 Does this need to be inside the llvm namespace? I
Karl 2014/06/25 16:02:05 First off, it is a bad idea to use "using namespac
Jim Stichnoth 2014/06/26 23:50:12 Yeah, you're right about "using namespace" and hea
Karl 2014/06/27 16:15:21 Done.
20
21 class Module;
22
23 class LLVM2ICEConverterDriver {
24 public:
25 LLVM2ICEConverterDriver(Ice::GlobalContext *Ctx,
26 bool DisableInternal,
27 bool SubzeroTimingEnabled,
28 bool DisableTranslation)
29 : Ctx(Ctx),
30 DisableInternal(DisableInternal),
31 SubzeroTimingEnabled(SubzeroTimingEnabled),
32 DisableTranslation(DisableTranslation)
33 {}
34 /// Converts the LLVM Module to ICE. Returns exit status 0 if successful,
35 /// Nonzero otherwise.
36 int convertToIce(Module *Mod);
37 private:
38 Ice::GlobalContext *Ctx;
39 bool DisableInternal;
40 bool SubzeroTimingEnabled;
41 bool DisableTranslation;
42 };
43
44 }
45
46 #endif // SUBZERO_SRC_ICECONVERTER_H
OLDNEW
« no previous file with comments | « Makefile.standalone ('k') | src/IceConverter.cpp » ('j') | src/IceConverter.cpp » ('J')

Powered by Google App Engine
This is Rietveld 408576698