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

Side by Side Diff: src/IceDefs.h

Issue 874353006: Write out global initializers and data rel directly to ELF file. (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: review #1 Created 5 years, 10 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/IceDefs.h - Common Subzero declaraions -------*- C++ -*-===// 1 //===- subzero/src/IceDefs.h - Common Subzero declaraions -------*- 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 declares various useful types and classes that have 10 // This file declares various useful types and classes that have
(...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after
96 typedef llvm::ilist<Inst> InstList; 96 typedef llvm::ilist<Inst> InstList;
97 // Ideally PhiList would be llvm::ilist<InstPhi>, and similar for 97 // Ideally PhiList would be llvm::ilist<InstPhi>, and similar for
98 // AssignList, but this runs into issues with SFINAE. 98 // AssignList, but this runs into issues with SFINAE.
99 typedef InstList PhiList; 99 typedef InstList PhiList;
100 typedef InstList AssignList; 100 typedef InstList AssignList;
101 // VarList and NodeList are arena-allocated from the Cfg's allocator. 101 // VarList and NodeList are arena-allocated from the Cfg's allocator.
102 typedef std::vector<Variable *, CfgLocalAllocator<Variable *>> VarList; 102 typedef std::vector<Variable *, CfgLocalAllocator<Variable *>> VarList;
103 typedef std::vector<CfgNode *, CfgLocalAllocator<CfgNode *>> NodeList; 103 typedef std::vector<CfgNode *, CfgLocalAllocator<CfgNode *>> NodeList;
104 typedef std::vector<Constant *> ConstantList; 104 typedef std::vector<Constant *> ConstantList;
105 105
106 typedef std::vector<VariableDeclaration *> VariableDeclarationList;
107
106 // SizeT is for holding small-ish limits like number of source 108 // SizeT is for holding small-ish limits like number of source
107 // operands in an instruction. It is used instead of size_t (which 109 // operands in an instruction. It is used instead of size_t (which
108 // may be 64-bits wide) when we want to save space. 110 // may be 64-bits wide) when we want to save space.
109 typedef uint32_t SizeT; 111 typedef uint32_t SizeT;
110 112
111 // InstNumberT is for holding an instruction number. Instruction 113 // InstNumberT is for holding an instruction number. Instruction
112 // numbers are used for representing Variable live ranges. 114 // numbers are used for representing Variable live ranges.
113 typedef int32_t InstNumberT; 115 typedef int32_t InstNumberT;
114 116
115 // A LiveBeginEndMapEntry maps a Variable::Number value to an 117 // A LiveBeginEndMapEntry maps a Variable::Number value to an
(...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after
208 return llvm::make_range(Container.rbegin(), Container.rend()); 210 return llvm::make_range(Container.rbegin(), Container.rend());
209 } 211 }
210 template <typename T> 212 template <typename T>
211 llvm::iterator_range<typename T::reverse_iterator> reverse_range(T &Container) { 213 llvm::iterator_range<typename T::reverse_iterator> reverse_range(T &Container) {
212 return llvm::make_range(Container.rbegin(), Container.rend()); 214 return llvm::make_range(Container.rbegin(), Container.rend());
213 } 215 }
214 216
215 } // end of namespace Ice 217 } // end of namespace Ice
216 218
217 #endif // SUBZERO_SRC_ICEDEFS_H 219 #endif // SUBZERO_SRC_ICEDEFS_H
OLDNEW
« no previous file with comments | « src/IceConverter.cpp ('k') | src/IceELFObjectWriter.h » ('j') | src/IceELFObjectWriter.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698