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

Side by Side Diff: src/IceTypeConverter.h

Issue 1216963007: Doxygenize the documentation comments (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: Created 5 years, 5 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
(...skipping 27 matching lines...) Expand all
38 /// Converts LLVM type LLVMTy to an ICE type. Returns 38 /// Converts LLVM type LLVMTy to an ICE type. Returns
39 /// Ice::IceType_NUM if unable to convert. 39 /// Ice::IceType_NUM if unable to convert.
40 Type convertToIceType(llvm::Type *LLVMTy) const { 40 Type convertToIceType(llvm::Type *LLVMTy) const {
41 auto Pos = LLVM2IceMap.find(LLVMTy); 41 auto Pos = LLVM2IceMap.find(LLVMTy);
42 if (Pos == LLVM2IceMap.end()) 42 if (Pos == LLVM2IceMap.end())
43 return convertToIceTypeOther(LLVMTy); 43 return convertToIceTypeOther(LLVMTy);
44 return Pos->second; 44 return Pos->second;
45 } 45 }
46 46
47 private: 47 private:
48 // The mapping from LLVM types to corresopnding Ice types. 48 /// The mapping from LLVM types to corresopnding Ice types.
49 std::map<llvm::Type *, Type> LLVM2IceMap; 49 std::map<llvm::Type *, Type> LLVM2IceMap;
50 50
51 // Add LLVM/ICE pair to internal tables. 51 /// Add LLVM/ICE pair to internal tables.
52 void addLLVMType(Type Ty, llvm::Type *LLVMTy); 52 void addLLVMType(Type Ty, llvm::Type *LLVMTy);
53 53
54 // Converts types not in LLVM2IceMap. 54 /// Converts types not in LLVM2IceMap.
55 Type convertToIceTypeOther(llvm::Type *LLVMTy) const; 55 Type convertToIceTypeOther(llvm::Type *LLVMTy) const;
56 }; 56 };
57 57
58 } // end of namespace Ice 58 } // end of namespace Ice
59 59
60 #endif // SUBZERO_SRC_ICETYPECONVERTER_H 60 #endif // SUBZERO_SRC_ICETYPECONVERTER_H
OLDNEW
« src/IceTranslator.h ('K') | « src/IceTranslator.h ('k') | src/IceTypes.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698