| 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 /// This file defines how to convert LLVM types to ICE types, and ICE types | 11 /// This file defines how to convert LLVM types to ICE types, and ICE types |
| 12 /// to LLVM types. | 12 /// to LLVM 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 #pragma clang diagnostic push |
| 22 #pragma clang diagnostic ignored "-Wunused-parameter" |
| 23 #pragma clang diagnostic ignored "-Wredundant-move" |
| 21 #include "llvm/IR/DerivedTypes.h" | 24 #include "llvm/IR/DerivedTypes.h" |
| 25 #pragma clang diagnostic pop |
| 22 | 26 |
| 23 namespace llvm { | 27 namespace llvm { |
| 24 class LLVMContext; | 28 class LLVMContext; |
| 25 } // end of namespace llvm | 29 } // end of namespace llvm |
| 26 | 30 |
| 27 namespace Ice { | 31 namespace Ice { |
| 28 | 32 |
| 29 /// Converts LLVM types to ICE types, and ICE types to LLVM types. | 33 /// Converts LLVM types to ICE types, and ICE types to LLVM types. |
| 30 class TypeConverter { | 34 class TypeConverter { |
| 31 TypeConverter() = delete; | 35 TypeConverter() = delete; |
| (...skipping 20 matching lines...) Expand all Loading... |
| 52 /// Add LLVM/ICE pair to internal tables. | 56 /// Add LLVM/ICE pair to internal tables. |
| 53 void addLLVMType(Type Ty, llvm::Type *LLVMTy); | 57 void addLLVMType(Type Ty, llvm::Type *LLVMTy); |
| 54 | 58 |
| 55 /// Converts types not in LLVM2IceMap. | 59 /// Converts types not in LLVM2IceMap. |
| 56 Type convertToIceTypeOther(llvm::Type *LLVMTy) const; | 60 Type convertToIceTypeOther(llvm::Type *LLVMTy) const; |
| 57 }; | 61 }; |
| 58 | 62 |
| 59 } // end of namespace Ice | 63 } // end of namespace Ice |
| 60 | 64 |
| 61 #endif // SUBZERO_SRC_ICETYPECONVERTER_H | 65 #endif // SUBZERO_SRC_ICETYPECONVERTER_H |
| OLD | NEW |