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

Side by Side Diff: src/IceGlobalContext.cpp

Issue 1214693004: ARM lowering integer divide and remainder, with div by 0 checks. (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: fill in todo 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/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
(...skipping 13 matching lines...) Expand all
24 #include "IceTargetLowering.h" 24 #include "IceTargetLowering.h"
25 #include "IceTimerTree.h" 25 #include "IceTimerTree.h"
26 #include "IceTypes.h" 26 #include "IceTypes.h"
27 27
28 #pragma clang diagnostic push 28 #pragma clang diagnostic push
29 #pragma clang diagnostic ignored "-Wunused-parameter" 29 #pragma clang diagnostic ignored "-Wunused-parameter"
30 #include "llvm/Support/Timer.h" 30 #include "llvm/Support/Timer.h"
31 #pragma clang diagnostic pop 31 #pragma clang diagnostic pop
32 32
33 #include <algorithm> // max() 33 #include <algorithm> // max()
34 #include <cctype> // isdigit(), isupper() 34 #include <cctype> // isdigit(), isupper()
35 #include <locale> // locale 35 #include <locale> // locale
36 #include <unordered_map> 36 #include <unordered_map>
37 37
38 namespace std { 38 namespace std {
39 template <> struct hash<Ice::RelocatableTuple> { 39 template <> struct hash<Ice::RelocatableTuple> {
40 size_t operator()(const Ice::RelocatableTuple &Key) const { 40 size_t operator()(const Ice::RelocatableTuple &Key) const {
41 return hash<Ice::IceString>()(Key.Name) + 41 return hash<Ice::IceString>()(Key.Name) +
42 hash<Ice::RelocOffsetT>()(Key.Offset); 42 hash<Ice::RelocOffsetT>()(Key.Offset);
43 } 43 }
44 }; 44 };
45 } // end of namespace std 45 } // end of namespace std
(...skipping 936 matching lines...) Expand 10 before | Expand all | Expand 10 after
982 Ctx = Func->getContext(); 982 Ctx = Func->getContext();
983 Active = 983 Active =
984 Func->getFocusedTiming() || Ctx->getFlags().getSubzeroTimingEnabled(); 984 Func->getFocusedTiming() || Ctx->getFlags().getSubzeroTimingEnabled();
985 if (Active) 985 if (Active)
986 Ctx->pushTimer(ID, StackID); 986 Ctx->pushTimer(ID, StackID);
987 } 987 }
988 988
989 ICE_TLS_DEFINE_FIELD(GlobalContext::ThreadContext *, GlobalContext, TLS); 989 ICE_TLS_DEFINE_FIELD(GlobalContext::ThreadContext *, GlobalContext, TLS);
990 990
991 } // end of namespace Ice 991 } // end of namespace Ice
OLDNEW
« no previous file with comments | « src/IceConditionCodesX8664.h ('k') | src/IceInstARM32.h » ('j') | src/IceInstARM32.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698