OLD | NEW |
---|---|
(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 { | |
Jim Stichnoth
2014/06/26 23:50:12
Could we just declare like this:
class llvm::Mod
Karl
2014/06/27 16:15:22
The problem is that doesn't work (you can't use a
| |
20 class Module; | |
21 } | |
22 | |
23 namespace Llvm2Ice { | |
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 | |
OLD | NEW |