Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1070)

Side by Side Diff: src/IceTypeConverter.h

Issue 622443002: Subzero: Change llvm::OwningPtr to C++11's std::unique_ptr. (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: Remove ErrorOr for now Created 6 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 // This file defines how to convert LLVM types to ICE types, and ICE types 10 // This file defines how to convert LLVM types to ICE types, and ICE types
11 // to LLVM types. 11 // to LLVM types.
12 // 12 //
13 //===----------------------------------------------------------------------===// 13 //===----------------------------------------------------------------------===//
14 14
15 #ifndef SUBZERO_SRC_ICETYPECONVERTER_H 15 #ifndef SUBZERO_SRC_ICETYPECONVERTER_H
16 #define SUBZERO_SRC_ICETYPECONVERTER_H 16 #define SUBZERO_SRC_ICETYPECONVERTER_H
17 17
18 #include "llvm/IR/DerivedTypes.h"
19
18 #include "IceDefs.h" 20 #include "IceDefs.h"
19 #include "IceTypes.h" 21 #include "IceTypes.h"
20 #include "llvm/IR/DerivedTypes.h"
21 22
22 namespace llvm { 23 namespace llvm {
23 class LLVMContext; 24 class LLVMContext;
24 } // end of llvm namespace. 25 } // end of llvm namespace.
25 26
26 namespace Ice { 27 namespace Ice {
27 28
28 /// Converts LLVM types to ICE types, and ICE types to LLVM types. 29 /// Converts LLVM types to ICE types, and ICE types to LLVM types.
29 class TypeConverter { 30 class TypeConverter {
30 TypeConverter(const TypeConverter &) LLVM_DELETED_FUNCTION; 31 TypeConverter(const TypeConverter &) LLVM_DELETED_FUNCTION;
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
69 // Add LLVM/ICE pair to internal tables. 70 // Add LLVM/ICE pair to internal tables.
70 void AddLLVMType(Type Ty, llvm::Type *LLVMTy); 71 void AddLLVMType(Type Ty, llvm::Type *LLVMTy);
71 72
72 // Converts types not in LLVM2IceMap. 73 // Converts types not in LLVM2IceMap.
73 Type convertToIceTypeOther(llvm::Type *LLVMTy) const; 74 Type convertToIceTypeOther(llvm::Type *LLVMTy) const;
74 }; 75 };
75 76
76 } // end of Ice namespace. 77 } // end of Ice namespace.
77 78
78 #endif // SUBZERO_SRC_ICETYPECONVERTER_H 79 #endif // SUBZERO_SRC_ICETYPECONVERTER_H
OLDNEW
« no previous file with comments | « src/IceTranslator.cpp ('k') | src/IceTypeConverter.cpp » ('j') | src/PNaClTranslator.cpp » ('J')

Powered by Google App Engine
This is Rietveld 408576698