| OLD | NEW |
| 1 //===- subzero/src/IceDefs.h - Common Subzero declaraions -------*- C++ -*-===// | 1 //===- subzero/src/IceDefs.h - Common Subzero declaraions -------*- 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 |
| 11 // widespread use across Subzero. Every Subzero source file is | 11 // widespread use across Subzero. Every Subzero source file is |
| 12 // expected to include IceDefs.h. | 12 // expected to include IceDefs.h. |
| 13 // | 13 // |
| 14 //===----------------------------------------------------------------------===// | 14 //===----------------------------------------------------------------------===// |
| 15 | 15 |
| 16 #ifndef SUBZERO_SRC_ICEDEFS_H | 16 #ifndef SUBZERO_SRC_ICEDEFS_H |
| 17 #define SUBZERO_SRC_ICEDEFS_H | 17 #define SUBZERO_SRC_ICEDEFS_H |
| 18 | 18 |
| 19 #include <cassert> | 19 #include <cassert> |
| 20 #include <cstdint> | 20 #include <cstdint> |
| 21 #include <cstdio> // snprintf | 21 #include <cstdio> // snprintf |
| 22 #include <functional> // std::less | 22 #include <functional> // std::less |
| 23 #include <limits> | 23 #include <limits> |
| 24 #include <list> | 24 #include <list> |
| 25 #include <map> | 25 #include <map> |
| 26 #include <memory> |
| 26 #include <mutex> | 27 #include <mutex> |
| 27 #include <string> | 28 #include <string> |
| 28 #include <system_error> | 29 #include <system_error> |
| 29 #include <vector> | 30 #include <vector> |
| 30 #include "llvm/ADT/ArrayRef.h" | 31 #include "llvm/ADT/ArrayRef.h" |
| 31 #include "llvm/ADT/BitVector.h" | 32 #include "llvm/ADT/BitVector.h" |
| 32 #include "llvm/ADT/ilist.h" | 33 #include "llvm/ADT/ilist.h" |
| 33 #include "llvm/ADT/ilist_node.h" | 34 #include "llvm/ADT/ilist_node.h" |
| 34 #include "llvm/ADT/iterator_range.h" | 35 #include "llvm/ADT/iterator_range.h" |
| 35 #include "llvm/ADT/SmallBitVector.h" | 36 #include "llvm/ADT/SmallBitVector.h" |
| (...skipping 176 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 212 return llvm::make_range(Container.rbegin(), Container.rend()); | 213 return llvm::make_range(Container.rbegin(), Container.rend()); |
| 213 } | 214 } |
| 214 template <typename T> | 215 template <typename T> |
| 215 llvm::iterator_range<typename T::reverse_iterator> reverse_range(T &Container) { | 216 llvm::iterator_range<typename T::reverse_iterator> reverse_range(T &Container) { |
| 216 return llvm::make_range(Container.rbegin(), Container.rend()); | 217 return llvm::make_range(Container.rbegin(), Container.rend()); |
| 217 } | 218 } |
| 218 | 219 |
| 219 } // end of namespace Ice | 220 } // end of namespace Ice |
| 220 | 221 |
| 221 #endif // SUBZERO_SRC_ICEDEFS_H | 222 #endif // SUBZERO_SRC_ICEDEFS_H |
| OLD | NEW |