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

Side by Side Diff: src/IceDefs.h

Issue 1197863003: Subzero: Reduce the amount of #ifdef'd code. (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: Cleanup Created 5 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 | « src/IceConverter.cpp ('k') | src/IceELFObjectWriter.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 //===- subzero/src/IceDefs.h - Common Subzero declaraions -------*- C++ -*-===// 1 //===- subzero/src/IceDefs.h - Common Subzero declarations ------*- 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 // This file declares various useful types and classes that have 10 // This file declares various useful types and classes that have widespread use
11 // widespread use across Subzero. Every Subzero source file is 11 // across Subzero. Every Subzero source file is expected to include IceDefs.h.
12 // expected to include IceDefs.h.
13 // 12 //
14 //===----------------------------------------------------------------------===// 13 //===----------------------------------------------------------------------===//
15 14
16 #ifndef SUBZERO_SRC_ICEDEFS_H 15 #ifndef SUBZERO_SRC_ICEDEFS_H
17 #define SUBZERO_SRC_ICEDEFS_H 16 #define SUBZERO_SRC_ICEDEFS_H
18 17
19 #include <cassert> 18 #include <cassert>
20 #include <cstdint> 19 #include <cstdint>
21 #include <cstdio> // snprintf 20 #include <cstdio> // snprintf
22 #include <functional> // std::less 21 #include <functional> // std::less
(...skipping 11 matching lines...) Expand all
34 #include "llvm/ADT/ilist_node.h" 33 #include "llvm/ADT/ilist_node.h"
35 #include "llvm/ADT/iterator_range.h" 34 #include "llvm/ADT/iterator_range.h"
36 #include "llvm/ADT/SmallBitVector.h" 35 #include "llvm/ADT/SmallBitVector.h"
37 #include "llvm/ADT/SmallVector.h" 36 #include "llvm/ADT/SmallVector.h"
38 #include "llvm/ADT/STLExtras.h" 37 #include "llvm/ADT/STLExtras.h"
39 #include "llvm/Support/Allocator.h" 38 #include "llvm/Support/Allocator.h"
40 #include "llvm/Support/Casting.h" 39 #include "llvm/Support/Casting.h"
41 #include "llvm/Support/ELF.h" 40 #include "llvm/Support/ELF.h"
42 #include "llvm/Support/raw_ostream.h" 41 #include "llvm/Support/raw_ostream.h"
43 42
43 #include "IceBuildDefs.h" // TODO(stichnot): move into individual files
44 #include "IceTLS.h" 44 #include "IceTLS.h"
45 45
46 namespace Ice { 46 namespace Ice {
47 47
48 class Assembler; 48 class Assembler;
49 class Cfg; 49 class Cfg;
50 class CfgNode; 50 class CfgNode;
51 class Constant; 51 class Constant;
52 class ELFObjectWriter; 52 class ELFObjectWriter;
53 class ELFStreamer; 53 class ELFStreamer;
(...skipping 210 matching lines...) Expand 10 before | Expand all | Expand 10 after
264 llvm::iterator_range<typename T::reverse_iterator> reverse_range(T &Container) { 264 llvm::iterator_range<typename T::reverse_iterator> reverse_range(T &Container) {
265 return llvm::make_range(Container.rbegin(), Container.rend()); 265 return llvm::make_range(Container.rbegin(), Container.rend());
266 } 266 }
267 267
268 // Options for pooling and randomization of immediates 268 // Options for pooling and randomization of immediates
269 enum RandomizeAndPoolImmediatesEnum { RPI_None, RPI_Randomize, RPI_Pool }; 269 enum RandomizeAndPoolImmediatesEnum { RPI_None, RPI_Randomize, RPI_Pool };
270 270
271 } // end of namespace Ice 271 } // end of namespace Ice
272 272
273 #endif // SUBZERO_SRC_ICEDEFS_H 273 #endif // SUBZERO_SRC_ICEDEFS_H
OLDNEW
« no previous file with comments | « src/IceConverter.cpp ('k') | src/IceELFObjectWriter.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698