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

Side by Side Diff: src/IceDefs.h

Issue 920953002: Subzero: Use -filetype instead of -ias and -elf-writer. (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: Explicitly set the output file type for unit tests 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
« no previous file with comments | « src/IceClFlags.h ('k') | src/IceGlobalContext.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/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 159 matching lines...) Expand 10 before | Expand all | Expand 10 after
170 IceV_RegOrigins = 1 << 6, 170 IceV_RegOrigins = 1 << 6,
171 IceV_LinearScan = 1 << 7, 171 IceV_LinearScan = 1 << 7,
172 IceV_Frame = 1 << 8, 172 IceV_Frame = 1 << 8,
173 IceV_AddrOpt = 1 << 9, 173 IceV_AddrOpt = 1 << 9,
174 IceV_Random = 1 << 10, 174 IceV_Random = 1 << 10,
175 IceV_All = ~IceV_None, 175 IceV_All = ~IceV_None,
176 IceV_Most = IceV_All & ~IceV_LinearScan 176 IceV_Most = IceV_All & ~IceV_LinearScan
177 }; 177 };
178 typedef uint32_t VerboseMask; 178 typedef uint32_t VerboseMask;
179 179
180 enum FileType {
181 FT_Elf, // ELF .o file
182 FT_Asm, // Assembly .s file
183 FT_Iasm // "Integrated assembler" .byte-style .s file
184 };
185
180 typedef llvm::raw_ostream Ostream; 186 typedef llvm::raw_ostream Ostream;
181 typedef llvm::raw_fd_ostream Fdstream; 187 typedef llvm::raw_fd_ostream Fdstream;
182 188
183 typedef std::mutex GlobalLockType; 189 typedef std::mutex GlobalLockType;
184 190
185 enum ErrorCodes { EC_None = 0, EC_Args, EC_Bitcode, EC_Translation }; 191 enum ErrorCodes { EC_None = 0, EC_Args, EC_Bitcode, EC_Translation };
186 192
187 // Wrapper around std::error_code for allowing multiple errors to be 193 // Wrapper around std::error_code for allowing multiple errors to be
188 // folded into one. The current implementation keeps track of the 194 // folded into one. The current implementation keeps track of the
189 // first error, which is likely to be the most useful one, and this 195 // first error, which is likely to be the most useful one, and this
(...skipping 23 matching lines...) Expand all
213 return llvm::make_range(Container.rbegin(), Container.rend()); 219 return llvm::make_range(Container.rbegin(), Container.rend());
214 } 220 }
215 template <typename T> 221 template <typename T>
216 llvm::iterator_range<typename T::reverse_iterator> reverse_range(T &Container) { 222 llvm::iterator_range<typename T::reverse_iterator> reverse_range(T &Container) {
217 return llvm::make_range(Container.rbegin(), Container.rend()); 223 return llvm::make_range(Container.rbegin(), Container.rend());
218 } 224 }
219 225
220 } // end of namespace Ice 226 } // end of namespace Ice
221 227
222 #endif // SUBZERO_SRC_ICEDEFS_H 228 #endif // SUBZERO_SRC_ICEDEFS_H
OLDNEW
« no previous file with comments | « src/IceClFlags.h ('k') | src/IceGlobalContext.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698