| 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 // This file declares the representation of function declarations, | 10 // This file declares the representation of function declarations, |
| 11 // global variable declarations, and the corresponding variable | 11 // global variable declarations, and the corresponding variable |
| 12 // initializers in Subzero. Global variable initializers are | 12 // initializers in Subzero. Global variable initializers are |
| 13 // represented as a sequence of simple initializers. | 13 // represented as a sequence of simple initializers. |
| 14 // | 14 // |
| 15 //===----------------------------------------------------------------------===// | 15 //===----------------------------------------------------------------------===// |
| 16 | 16 |
| 17 #ifndef SUBZERO_SRC_ICEGLOBALINITS_H | 17 #ifndef SUBZERO_SRC_ICEGLOBALINITS_H |
| 18 #define SUBZERO_SRC_ICEGLOBALINITS_H | 18 #define SUBZERO_SRC_ICEGLOBALINITS_H |
| 19 | 19 |
| 20 #include <memory> | 20 #include <memory> |
| 21 #include <utility> | 21 #include <utility> |
| 22 | 22 |
| 23 #include "llvm/Bitcode/NaCl/NaClBitcodeParser.h" // for NaClBitcodeRecord. | 23 #include "llvm/Bitcode/NaCl/NaClBitcodeParser.h" // for NaClBitcodeRecord. |
| 24 #include "llvm/IR/CallingConv.h" | 24 #include "llvm/IR/CallingConv.h" |
| 25 #include "llvm/IR/GlobalValue.h" // for GlobalValue::LinkageTypes. | 25 #include "llvm/IR/GlobalValue.h" // for GlobalValue::LinkageTypes. |
| 26 | 26 |
| 27 #include "IceDefs.h" | 27 #include "IceDefs.h" |
| 28 #include "IceGlobalContext.h" |
| 28 #include "IceTypes.h" | 29 #include "IceTypes.h" |
| 29 | 30 |
| 30 // TODO(kschimpf): Remove ourselves from using LLVM representation for calling | 31 // TODO(kschimpf): Remove ourselves from using LLVM representation for calling |
| 31 // conventions and linkage types. | 32 // conventions and linkage types. |
| 32 | 33 |
| 33 namespace Ice { | 34 namespace Ice { |
| 34 | 35 |
| 35 /// Base class for global variable and function declarations. | 36 /// Base class for global variable and function declarations. |
| 36 class GlobalDeclaration { | 37 class GlobalDeclaration { |
| 37 GlobalDeclaration() = delete; | 38 GlobalDeclaration() = delete; |
| (...skipping 309 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 347 template <class StreamType> | 348 template <class StreamType> |
| 348 inline StreamType &operator<<(StreamType &Stream, | 349 inline StreamType &operator<<(StreamType &Stream, |
| 349 const GlobalDeclaration &Addr) { | 350 const GlobalDeclaration &Addr) { |
| 350 Addr.dump(Stream); | 351 Addr.dump(Stream); |
| 351 return Stream; | 352 return Stream; |
| 352 } | 353 } |
| 353 | 354 |
| 354 } // end of namespace Ice | 355 } // end of namespace Ice |
| 355 | 356 |
| 356 #endif // SUBZERO_SRC_ICEGLOBALINITS_H | 357 #endif // SUBZERO_SRC_ICEGLOBALINITS_H |
| OLD | NEW |