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