OLD | NEW |
---|---|
(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 | |
OLD | NEW |