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

Side by Side Diff: src/IceCfgNode.h

Issue 709533002: Subzero: Implement InstList in terms of llvm::ilist<> . (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: Add a comment explaining the ilist traits specialization Created 6 years, 1 month 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/IceCfg.cpp ('k') | src/IceCfgNode.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/IceCfgNode.h - Control flow graph node -------*- C++ -*-===// 1 //===- subzero/src/IceCfgNode.h - Control flow graph node -------*- 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 the CfgNode class, which represents a single 10 // This file declares the CfgNode class, which represents a single
11 // basic block as its instruction list, in-edge list, and out-edge 11 // basic block as its instruction list, in-edge list, and out-edge
12 // list. 12 // list.
13 // 13 //
14 //===----------------------------------------------------------------------===// 14 //===----------------------------------------------------------------------===//
15 15
16 #ifndef SUBZERO_SRC_ICECFGNODE_H 16 #ifndef SUBZERO_SRC_ICECFGNODE_H
17 #define SUBZERO_SRC_ICECFGNODE_H 17 #define SUBZERO_SRC_ICECFGNODE_H
18 18
19 #include "IceDefs.h" 19 #include "IceDefs.h"
20 #include "IceInst.h" // InstList traits
20 21
21 namespace Ice { 22 namespace Ice {
22 23
23 class CfgNode { 24 class CfgNode {
24 CfgNode(const CfgNode &) = delete; 25 CfgNode(const CfgNode &) = delete;
25 CfgNode &operator=(const CfgNode &) = delete; 26 CfgNode &operator=(const CfgNode &) = delete;
26 27
27 public: 28 public:
28 static CfgNode *create(Cfg *Func, SizeT LabelIndex, IceString Name = "") { 29 static CfgNode *create(Cfg *Func, SizeT LabelIndex, IceString Name = "") {
29 return new (Func->allocate<CfgNode>()) CfgNode(Func, LabelIndex, Name); 30 return new (Func->allocate<CfgNode>()) CfgNode(Func, LabelIndex, Name);
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
95 InstNumberT InstCountEstimate; // rough instruction count estimate 96 InstNumberT InstCountEstimate; // rough instruction count estimate
96 NodeList InEdges; // in no particular order 97 NodeList InEdges; // in no particular order
97 NodeList OutEdges; // in no particular order 98 NodeList OutEdges; // in no particular order
98 PhiList Phis; // unordered set of phi instructions 99 PhiList Phis; // unordered set of phi instructions
99 InstList Insts; // ordered list of non-phi instructions 100 InstList Insts; // ordered list of non-phi instructions
100 }; 101 };
101 102
102 } // end of namespace Ice 103 } // end of namespace Ice
103 104
104 #endif // SUBZERO_SRC_ICECFGNODE_H 105 #endif // SUBZERO_SRC_ICECFGNODE_H
OLDNEW
« no previous file with comments | « src/IceCfg.cpp ('k') | src/IceCfgNode.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698