| OLD | NEW |
| 1 //===- subzero/src/IceGlobalInits.h - Global declarations -------*- C++ -*-===// | 1 //===- subzero/src/IceGlobalInits.h - Global 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 /// \file | 10 /// \file |
| 11 /// \brief Declares the representation of function declarations, global variable | 11 /// \brief Declares the representation of function declarations, global variable |
| 12 /// declarations, and the corresponding variable initializers in Subzero. | 12 /// declarations, and the corresponding variable initializers in Subzero. |
| 13 /// | 13 /// |
| 14 /// Global variable initializers are represented as a sequence of simple | 14 /// Global variable initializers are represented as a sequence of simple |
| 15 /// initializers. | 15 /// initializers. |
| 16 /// | 16 /// |
| 17 //===----------------------------------------------------------------------===// | 17 //===----------------------------------------------------------------------===// |
| 18 | 18 |
| 19 #ifndef SUBZERO_SRC_ICEGLOBALINITS_H | 19 #ifndef SUBZERO_SRC_ICEGLOBALINITS_H |
| 20 #define SUBZERO_SRC_ICEGLOBALINITS_H | 20 #define SUBZERO_SRC_ICEGLOBALINITS_H |
| 21 | 21 |
| 22 #include "IceDefs.h" | 22 #include "IceDefs.h" |
| 23 #include "IceGlobalContext.h" | 23 #include "IceGlobalContext.h" |
| 24 #include "IceTypes.h" | 24 #include "IceTypes.h" |
| 25 | 25 |
| 26 #ifdef __clang__ |
| 26 #pragma clang diagnostic push | 27 #pragma clang diagnostic push |
| 27 #pragma clang diagnostic ignored "-Wunused-parameter" | 28 #pragma clang diagnostic ignored "-Wunused-parameter" |
| 28 #pragma clang diagnostic ignored "-Wredundant-move" | 29 #pragma clang diagnostic ignored "-Wredundant-move" |
| 30 #endif // __clang__ |
| 31 |
| 29 #include "llvm/Bitcode/NaCl/NaClBitcodeParser.h" // for NaClBitcodeRecord. | 32 #include "llvm/Bitcode/NaCl/NaClBitcodeParser.h" // for NaClBitcodeRecord. |
| 30 #include "llvm/IR/CallingConv.h" | 33 #include "llvm/IR/CallingConv.h" |
| 31 #include "llvm/IR/GlobalValue.h" // for GlobalValue::LinkageTypes. | 34 #include "llvm/IR/GlobalValue.h" // for GlobalValue::LinkageTypes. |
| 35 |
| 36 #ifdef __clang__ |
| 32 #pragma clang diagnostic pop | 37 #pragma clang diagnostic pop |
| 38 #endif // __clang__ |
| 33 | 39 |
| 34 #include <memory> | 40 #include <memory> |
| 35 #include <utility> | 41 #include <utility> |
| 36 | 42 |
| 37 // TODO(kschimpf): Remove ourselves from using LLVM representation for calling | 43 // TODO(kschimpf): Remove ourselves from using LLVM representation for calling |
| 38 // conventions and linkage types. | 44 // conventions and linkage types. |
| 39 | 45 |
| 40 namespace Ice { | 46 namespace Ice { |
| 41 | 47 |
| 42 /// Base class for global variable and function declarations. | 48 /// Base class for global variable and function declarations. |
| (...skipping 352 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 395 template <class StreamType> | 401 template <class StreamType> |
| 396 inline StreamType &operator<<(StreamType &Stream, | 402 inline StreamType &operator<<(StreamType &Stream, |
| 397 const GlobalDeclaration &Addr) { | 403 const GlobalDeclaration &Addr) { |
| 398 Addr.dump(Stream); | 404 Addr.dump(Stream); |
| 399 return Stream; | 405 return Stream; |
| 400 } | 406 } |
| 401 | 407 |
| 402 } // end of namespace Ice | 408 } // end of namespace Ice |
| 403 | 409 |
| 404 #endif // SUBZERO_SRC_ICEGLOBALINITS_H | 410 #endif // SUBZERO_SRC_ICEGLOBALINITS_H |
| OLD | NEW |