OLD | NEW |
1 //===- subzero/src/IceClFlags.h - Cl Flags for translation ------*- C++ -*-===// | 1 //===- subzero/src/IceClFlags.h - Cl Flags for translation ------*- 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 /// \file | 10 /// \file |
(...skipping 18 matching lines...) Expand all Loading... |
29 #include "llvm/IRReader/IRReader.h" | 29 #include "llvm/IRReader/IRReader.h" |
30 | 30 |
31 #ifdef __clang__ | 31 #ifdef __clang__ |
32 #pragma clang diagnostic pop | 32 #pragma clang diagnostic pop |
33 #endif // __clang__ | 33 #endif // __clang__ |
34 | 34 |
35 #include <string> | 35 #include <string> |
36 #include <utility> | 36 #include <utility> |
37 #include <vector> | 37 #include <vector> |
38 | 38 |
| 39 #ifndef PNACL_LLVM |
| 40 namespace llvm { |
| 41 // \brief Define the expected format of the file. |
| 42 enum NaClFileFormat { |
| 43 // LLVM IR source or bitcode file (as appropriate). |
| 44 LLVMFormat, |
| 45 // PNaCl bitcode file. |
| 46 PNaClFormat, |
| 47 // Autodetect if PNaCl or LLVM format. |
| 48 AutodetectFileFormat |
| 49 }; |
| 50 } // end of namespace llvm |
| 51 #endif // !PNACL_LLVM |
| 52 |
39 namespace Ice { | 53 namespace Ice { |
40 // detail defines the type cl_type_traits, which is used to define the | 54 // detail defines the type cl_type_traits, which is used to define the |
41 // getters/setters for the ClFlags class. It converts the cl_detail::*_flag | 55 // getters/setters for the ClFlags class. It converts the cl_detail::*_flag |
42 // types to appropriate types for the several getters and setters created. | 56 // types to appropriate types for the several getters and setters created. |
43 namespace detail { | 57 namespace detail { |
44 // Base cl_type_traits. | 58 // Base cl_type_traits. |
45 template <typename B, typename CL> struct cl_type_traits {}; | 59 template <typename B, typename CL> struct cl_type_traits {}; |
46 | 60 |
47 // cl_type_traits specialized cl::list<std::string>, non-MINIMAL build. | 61 // cl_type_traits specialized cl::list<std::string>, non-MINIMAL build. |
48 template <> struct cl_type_traits<std::string, cl_detail::dev_list_flag> { | 62 template <> struct cl_type_traits<std::string, cl_detail::dev_list_flag> { |
(...skipping 132 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
181 RangeSpec TimingFocus; | 195 RangeSpec TimingFocus; |
182 RangeSpec TranslateOnly; | 196 RangeSpec TranslateOnly; |
183 RangeSpec VerboseFocus; | 197 RangeSpec VerboseFocus; |
184 }; | 198 }; |
185 | 199 |
186 inline const ClFlags &getFlags() { return ClFlags::Flags; } | 200 inline const ClFlags &getFlags() { return ClFlags::Flags; } |
187 | 201 |
188 } // end of namespace Ice | 202 } // end of namespace Ice |
189 | 203 |
190 #endif // SUBZERO_SRC_ICECLFLAGS_H | 204 #endif // SUBZERO_SRC_ICECLFLAGS_H |
OLD | NEW |