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

Side by Side Diff: src/IceConverter.h

Issue 1341423002: Reflow comments to use the full width. (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: Fix spelling and rebase Created 5 years, 3 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
« no previous file with comments | « src/IceConditionCodesARM32.h ('k') | src/IceConverter.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 //===- subzero/src/IceConverter.h - Converts LLVM to ICE --------*- C++ -*-===// 1 //===- subzero/src/IceConverter.h - Converts LLVM to ICE --------*- 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
(...skipping 24 matching lines...) Expand all
35 : Translator(Ctx), Mod(Mod) {} 35 : Translator(Ctx), Mod(Mod) {}
36 36
37 ~Converter() override = default; 37 ~Converter() override = default;
38 38
39 /// Converts the LLVM Module to ICE. Sets exit status to false if successful, 39 /// Converts the LLVM Module to ICE. Sets exit status to false if successful,
40 /// true otherwise. 40 /// true otherwise.
41 void convertToIce(); 41 void convertToIce();
42 42
43 llvm::Module *getModule() const { return Mod; } 43 llvm::Module *getModule() const { return Mod; }
44 44
45 /// Returns the global declaration associated with the corresponding 45 /// Returns the global declaration associated with the corresponding global
46 /// global value V. If no such global address, generates fatal error. 46 /// value V. If no such global address, generates fatal error.
47 GlobalDeclaration *getGlobalDeclaration(const llvm::GlobalValue *V); 47 GlobalDeclaration *getGlobalDeclaration(const llvm::GlobalValue *V);
48 48
49 private: 49 private:
50 llvm::Module *Mod; 50 llvm::Module *Mod;
51 using GlobalDeclarationMapType = 51 using GlobalDeclarationMapType =
52 std::map<const llvm::GlobalValue *, GlobalDeclaration *>; 52 std::map<const llvm::GlobalValue *, GlobalDeclaration *>;
53 GlobalDeclarationMapType GlobalDeclarationMap; 53 GlobalDeclarationMapType GlobalDeclarationMap;
54 54
55 /// Walks module and generates names for unnamed globals using prefix 55 /// Walks module and generates names for unnamed globals using prefix
56 /// getFlags().DefaultGlobalPrefix, if the prefix is non-empty. 56 /// getFlags().DefaultGlobalPrefix, if the prefix is non-empty.
57 void nameUnnamedGlobalVariables(llvm::Module *Mod); 57 void nameUnnamedGlobalVariables(llvm::Module *Mod);
58 58
59 /// Walks module and generates names for unnamed functions using 59 /// Walks module and generates names for unnamed functions using prefix
60 /// prefix getFlags().DefaultFunctionPrefix, if the prefix is 60 /// getFlags().DefaultFunctionPrefix, if the prefix is non-empty.
61 /// non-empty.
62 void nameUnnamedFunctions(llvm::Module *Mod); 61 void nameUnnamedFunctions(llvm::Module *Mod);
63 62
64 /// Converts functions to ICE, and then machine code. 63 /// Converts functions to ICE, and then machine code.
65 void convertFunctions(); 64 void convertFunctions();
66 65
67 /// Converts globals to ICE, and then machine code. 66 /// Converts globals to ICE, and then machine code.
68 void convertGlobals(llvm::Module *Mod); 67 void convertGlobals(llvm::Module *Mod);
69 68
70 /// Installs global declarations into GlobalDeclarationMap. 69 /// Installs global declarations into GlobalDeclarationMap.
71 void installGlobalDeclarations(llvm::Module *Mod); 70 void installGlobalDeclarations(llvm::Module *Mod);
72 }; 71 };
73 72
74 } // end of namespace ICE. 73 } // end of namespace ICE.
75 74
76 #endif // SUBZERO_SRC_ICECONVERTER_H 75 #endif // SUBZERO_SRC_ICECONVERTER_H
OLDNEW
« no previous file with comments | « src/IceConditionCodesARM32.h ('k') | src/IceConverter.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698