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

Side by Side Diff: src/IceSwitchLowering.h

Issue 1343843003: Refactor all instances of `typedef y x` to the C++11 `using x = y` syntax. (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: 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/IceRegAlloc.h ('k') | src/IceTLS.h » ('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/IceSwitchLowering.h - Switch lowering --------*- C++ -*-===// 1 //===- subzero/src/IceSwitchLowering.h - Switch lowering --------*- C++ -*-===//
2 // 2 //
3 // The LLVM Compiler Infrastructure 3 // The LLVM Compiler Infrastructure
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
11 /// \brief The file contains helpers for switch lowering. 11 /// \brief The file contains helpers for switch lowering.
12 //===----------------------------------------------------------------------===// 12 //===----------------------------------------------------------------------===//
13 13
14 #ifndef SUBZERO_SRC_ICESWITCHLOWERING_H 14 #ifndef SUBZERO_SRC_ICESWITCHLOWERING_H
15 #define SUBZERO_SRC_ICESWITCHLOWERING_H 15 #define SUBZERO_SRC_ICESWITCHLOWERING_H
16 16
17 #include "IceDefs.h" 17 #include "IceDefs.h"
18 18
19 namespace Ice { 19 namespace Ice {
20 20
21 class CaseCluster; 21 class CaseCluster;
22 22
23 typedef std::vector<CaseCluster, CfgLocalAllocator<CaseCluster>> 23 using CaseClusterArray =
24 CaseClusterArray; 24 std::vector<CaseCluster, CfgLocalAllocator<CaseCluster>>;
25 25
26 /// A cluster of cases can be tested by a common method during switch lowering. 26 /// A cluster of cases can be tested by a common method during switch lowering.
27 class CaseCluster { 27 class CaseCluster {
28 CaseCluster() = delete; 28 CaseCluster() = delete;
29 29
30 public: 30 public:
31 enum CaseClusterKind { 31 enum CaseClusterKind {
32 Range, /// Numerically adjacent case values with same target. 32 Range, /// Numerically adjacent case values with same target.
33 JumpTable, /// Different targets and possibly sparse. 33 JumpTable, /// Different targets and possibly sparse.
34 }; 34 };
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after
102 IceString FuncName; 102 IceString FuncName;
103 SizeT Id; 103 SizeT Id;
104 std::vector<intptr_t> TargetOffsets; 104 std::vector<intptr_t> TargetOffsets;
105 }; 105 };
106 106
107 using JumpTableDataList = std::vector<JumpTableData>; 107 using JumpTableDataList = std::vector<JumpTableData>;
108 108
109 } // end of namespace Ice 109 } // end of namespace Ice
110 110
111 #endif // SUBZERO_SRC_ICESWITCHLOWERING_H 111 #endif // SUBZERO_SRC_ICESWITCHLOWERING_H
OLDNEW
« no previous file with comments | « src/IceRegAlloc.h ('k') | src/IceTLS.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698