| OLD | NEW |
| 1 //===- subzero/src/IceTypeConverter.h - Convert ICE/LLVM Types --*- C++ -*-===// | 1 //===- subzero/src/IceTypeConverter.h - Convert ICE/LLVM Types --*- 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 Defines how to convert LLVM types to ICE types, and ICE types to LLVM | 11 /// \brief Defines how to convert LLVM types to ICE types, and ICE types to LLVM |
| 12 /// types. | 12 /// types. |
| 13 /// | 13 /// |
| 14 //===----------------------------------------------------------------------===// | 14 //===----------------------------------------------------------------------===// |
| 15 | 15 |
| 16 #ifndef SUBZERO_SRC_ICETYPECONVERTER_H | 16 #ifndef SUBZERO_SRC_ICETYPECONVERTER_H |
| 17 #define SUBZERO_SRC_ICETYPECONVERTER_H | 17 #define SUBZERO_SRC_ICETYPECONVERTER_H |
| 18 | 18 |
| 19 #include "IceDefs.h" | 19 #include "IceDefs.h" |
| 20 #include "IceTypes.h" | 20 #include "IceTypes.h" |
| 21 |
| 22 #ifdef __clang__ |
| 21 #pragma clang diagnostic push | 23 #pragma clang diagnostic push |
| 22 #pragma clang diagnostic ignored "-Wunused-parameter" | 24 #pragma clang diagnostic ignored "-Wunused-parameter" |
| 23 #pragma clang diagnostic ignored "-Wredundant-move" | 25 #pragma clang diagnostic ignored "-Wredundant-move" |
| 26 #endif // __clang__ |
| 27 |
| 24 #include "llvm/IR/DerivedTypes.h" | 28 #include "llvm/IR/DerivedTypes.h" |
| 29 |
| 30 #ifdef __clang__ |
| 25 #pragma clang diagnostic pop | 31 #pragma clang diagnostic pop |
| 32 #endif // __clang__ |
| 26 | 33 |
| 27 namespace llvm { | 34 namespace llvm { |
| 28 class LLVMContext; | 35 class LLVMContext; |
| 29 } // end of namespace llvm | 36 } // end of namespace llvm |
| 30 | 37 |
| 31 namespace Ice { | 38 namespace Ice { |
| 32 | 39 |
| 33 /// Converts LLVM types to ICE types, and ICE types to LLVM types. | 40 /// Converts LLVM types to ICE types, and ICE types to LLVM types. |
| 34 class TypeConverter { | 41 class TypeConverter { |
| 35 TypeConverter() = delete; | 42 TypeConverter() = delete; |
| (...skipping 20 matching lines...) Expand all Loading... |
| 56 /// Add LLVM/ICE pair to internal tables. | 63 /// Add LLVM/ICE pair to internal tables. |
| 57 void addLLVMType(Type Ty, llvm::Type *LLVMTy); | 64 void addLLVMType(Type Ty, llvm::Type *LLVMTy); |
| 58 | 65 |
| 59 /// Converts types not in LLVM2IceMap. | 66 /// Converts types not in LLVM2IceMap. |
| 60 Type convertToIceTypeOther(llvm::Type *LLVMTy) const; | 67 Type convertToIceTypeOther(llvm::Type *LLVMTy) const; |
| 61 }; | 68 }; |
| 62 | 69 |
| 63 } // end of namespace Ice | 70 } // end of namespace Ice |
| 64 | 71 |
| 65 #endif // SUBZERO_SRC_ICETYPECONVERTER_H | 72 #endif // SUBZERO_SRC_ICETYPECONVERTER_H |
| OLD | NEW |