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

Side by Side Diff: src/IceCfg.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 | « no previous file | src/IceCfg.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/IceCfg.h - Control flow graph ----------------*- C++ -*-===// 1 //===- subzero/src/IceCfg.h - Control flow graph ----------------*- 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 Cfg class, which represents the control flow 10 // This file declares the Cfg class, which represents the control flow
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after
87 void placePhiStores(); 87 void placePhiStores();
88 void deletePhis(); 88 void deletePhis();
89 void doAddressOpt(); 89 void doAddressOpt();
90 void doArgLowering(); 90 void doArgLowering();
91 void doNopInsertion(); 91 void doNopInsertion();
92 void genCode(); 92 void genCode();
93 void genFrame(); 93 void genFrame();
94 void livenessLightweight(); 94 void livenessLightweight();
95 void liveness(LivenessMode Mode); 95 void liveness(LivenessMode Mode);
96 bool validateLiveness() const; 96 bool validateLiveness() const;
97 void doBranchOpt();
97 98
98 // Manage the CurrentNode field, which is used for validating the 99 // Manage the CurrentNode field, which is used for validating the
99 // Variable::DefNode field during dumping/emitting. 100 // Variable::DefNode field during dumping/emitting.
100 void setCurrentNode(const CfgNode *Node) { CurrentNode = Node; } 101 void setCurrentNode(const CfgNode *Node) { CurrentNode = Node; }
101 const CfgNode *getCurrentNode() const { return CurrentNode; } 102 const CfgNode *getCurrentNode() const { return CurrentNode; }
102 103
103 void emit(); 104 void emit();
104 void dump(const IceString &Message = ""); 105 void dump(const IceString &Message = "");
105 106
106 // Allocate data of type T using the per-Cfg allocator. 107 // Allocate data of type T using the per-Cfg allocator.
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
158 // avoid spurious validation failures. 159 // avoid spurious validation failures.
159 const CfgNode *CurrentNode; 160 const CfgNode *CurrentNode;
160 161
161 Cfg(const Cfg &) LLVM_DELETED_FUNCTION; 162 Cfg(const Cfg &) LLVM_DELETED_FUNCTION;
162 Cfg &operator=(const Cfg &) LLVM_DELETED_FUNCTION; 163 Cfg &operator=(const Cfg &) LLVM_DELETED_FUNCTION;
163 }; 164 };
164 165
165 } // end of namespace Ice 166 } // end of namespace Ice
166 167
167 #endif // SUBZERO_SRC_ICECFG_H 168 #endif // SUBZERO_SRC_ICECFG_H
OLDNEW
« no previous file with comments | « no previous file | src/IceCfg.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698