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

Side by Side Diff: src/IceGlobalContext.cpp

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/IceGlobalContext.cpp - Global context defs -------------===// 1 //===- subzero/src/IceGlobalContext.cpp - Global context defs -------------===//
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 aspects of the compilation that persist across 10 // This file defines aspects of the compilation that persist across
11 // multiple functions. 11 // multiple functions.
12 // 12 //
13 //===----------------------------------------------------------------------===// 13 //===----------------------------------------------------------------------===//
14 14
15 #include <ctype.h> // isdigit(), isupper() 15 #include <ctype.h> // isdigit(), isupper()
16 #include <locale> // locale 16 #include <locale> // locale
17 17
18 #include "IceDefs.h"
19 #include "IceTypes.h"
20 #include "IceCfg.h" 18 #include "IceCfg.h"
21 #include "IceClFlags.h" 19 #include "IceClFlags.h"
20 #include "IceDefs.h"
22 #include "IceGlobalContext.h" 21 #include "IceGlobalContext.h"
23 #include "IceOperand.h" 22 #include "IceOperand.h"
24 #include "IceTargetLowering.h" 23 #include "IceTargetLowering.h"
25 #include "IceTimerTree.h" 24 #include "IceTimerTree.h"
25 #include "IceTypes.h"
26 26
27 namespace Ice { 27 namespace Ice {
28 28
29 // TypePool maps constants of type KeyType (e.g. float) to pointers to 29 // TypePool maps constants of type KeyType (e.g. float) to pointers to
30 // type ValueType (e.g. ConstantFloat). KeyType values are compared 30 // type ValueType (e.g. ConstantFloat). KeyType values are compared
31 // using memcmp() because of potential NaN values in KeyType values. 31 // using memcmp() because of potential NaN values in KeyType values.
32 // KeyTypeHasFP indicates whether KeyType is a floating-point type 32 // KeyTypeHasFP indicates whether KeyType is a floating-point type
33 // whose values need to be compared using memcmp() for NaN 33 // whose values need to be compared using memcmp() for NaN
34 // correctness. TODO: use std::is_floating_point<KeyType> instead of 34 // correctness. TODO: use std::is_floating_point<KeyType> instead of
35 // KeyTypeHasFP with C++11. 35 // KeyTypeHasFP with C++11.
(...skipping 364 matching lines...) Expand 10 before | Expand all | Expand 10 after
400 } else { 400 } else {
401 StatsFunction.dump(Name, getStrDump()); 401 StatsFunction.dump(Name, getStrDump());
402 StatsCumulative.dump("_TOTAL_", getStrDump()); 402 StatsCumulative.dump("_TOTAL_", getStrDump());
403 } 403 }
404 } 404 }
405 } 405 }
406 406
407 void GlobalContext::dumpTimers() { Timers->dump(getStrDump()); } 407 void GlobalContext::dumpTimers() { Timers->dump(getStrDump()); }
408 408
409 } // end of namespace Ice 409 } // end of namespace Ice
OLDNEW
« no previous file with comments | « src/IceGlobalContext.h ('k') | src/IceLiveness.cpp » ('j') | src/PNaClTranslator.cpp » ('J')

Powered by Google App Engine
This is Rietveld 408576698