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

Side by Side Diff: src/IceCfgNode.h

Issue 580903005: Subzero: Add branch optimization. (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: Code review changes Created 6 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/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
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
58 58
59 void placePhiLoads(); 59 void placePhiLoads();
60 void placePhiStores(); 60 void placePhiStores();
61 void deletePhis(); 61 void deletePhis();
62 void doAddressOpt(); 62 void doAddressOpt();
63 void doNopInsertion(); 63 void doNopInsertion();
64 void genCode(); 64 void genCode();
65 void livenessLightweight(); 65 void livenessLightweight();
66 bool liveness(Liveness *Liveness); 66 bool liveness(Liveness *Liveness);
67 void livenessPostprocess(LivenessMode Mode, Liveness *Liveness); 67 void livenessPostprocess(LivenessMode Mode, Liveness *Liveness);
68 void doBranchOpt(const CfgNode *NextNode);
68 void emit(Cfg *Func) const; 69 void emit(Cfg *Func) const;
69 void dump(Cfg *Func) const; 70 void dump(Cfg *Func) const;
70 71
71 private: 72 private:
72 CfgNode(Cfg *Func, SizeT LabelIndex, IceString Name); 73 CfgNode(Cfg *Func, SizeT LabelIndex, IceString Name);
73 CfgNode(const CfgNode &) LLVM_DELETED_FUNCTION; 74 CfgNode(const CfgNode &) LLVM_DELETED_FUNCTION;
74 CfgNode &operator=(const CfgNode &) LLVM_DELETED_FUNCTION; 75 CfgNode &operator=(const CfgNode &) LLVM_DELETED_FUNCTION;
75 Cfg *const Func; 76 Cfg *const Func;
76 const SizeT Number; // label index 77 const SizeT Number; // label index
77 IceString Name; // for dumping only 78 IceString Name; // for dumping only
78 bool HasReturn; // does this block need an epilog? 79 bool HasReturn; // does this block need an epilog?
79 NodeList InEdges; // in no particular order 80 NodeList InEdges; // in no particular order
80 NodeList OutEdges; // in no particular order 81 NodeList OutEdges; // in no particular order
81 PhiList Phis; // unordered set of phi instructions 82 PhiList Phis; // unordered set of phi instructions
82 InstList Insts; // ordered list of non-phi instructions 83 InstList Insts; // ordered list of non-phi instructions
83 }; 84 };
84 85
85 } // end of namespace Ice 86 } // end of namespace Ice
86 87
87 #endif // SUBZERO_SRC_ICECFGNODE_H 88 #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