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

Side by Side Diff: src/IceCfg.h

Issue 463563006: Subzero: Randomly insert nops. (Closed) Base URL: https://gerrit.chromium.org/gerrit/p/native_client/pnacl-subzero.git@master
Patch Set: Fix insertion strategy Created 6 years, 4 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 70 matching lines...) Expand 10 before | Expand all | Expand 10 after
81 // After the CFG is fully constructed, iterate over the nodes and 81 // After the CFG is fully constructed, iterate over the nodes and
82 // compute the predecessor edges, in the form of 82 // compute the predecessor edges, in the form of
83 // CfgNode::InEdges[]. 83 // CfgNode::InEdges[].
84 void computePredecessors(); 84 void computePredecessors();
85 void renumberInstructions(); 85 void renumberInstructions();
86 void placePhiLoads(); 86 void placePhiLoads();
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 genCode(); 92 void genCode();
92 void genFrame(); 93 void genFrame();
93 void livenessLightweight(); 94 void livenessLightweight();
94 void liveness(LivenessMode Mode); 95 void liveness(LivenessMode Mode);
95 bool validateLiveness() const; 96 bool validateLiveness() const;
96 97
97 // Manage the CurrentNode field, which is used for validating the 98 // Manage the CurrentNode field, which is used for validating the
98 // Variable::DefNode field during dumping/emitting. 99 // Variable::DefNode field during dumping/emitting.
99 void setCurrentNode(const CfgNode *Node) { CurrentNode = Node; } 100 void setCurrentNode(const CfgNode *Node) { CurrentNode = Node; }
100 const CfgNode *getCurrentNode() const { return CurrentNode; } 101 const CfgNode *getCurrentNode() const { return CurrentNode; }
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
157 // avoid spurious validation failures. 158 // avoid spurious validation failures.
158 const CfgNode *CurrentNode; 159 const CfgNode *CurrentNode;
159 160
160 Cfg(const Cfg &) LLVM_DELETED_FUNCTION; 161 Cfg(const Cfg &) LLVM_DELETED_FUNCTION;
161 Cfg &operator=(const Cfg &) LLVM_DELETED_FUNCTION; 162 Cfg &operator=(const Cfg &) LLVM_DELETED_FUNCTION;
162 }; 163 };
163 164
164 } // end of namespace Ice 165 } // end of namespace Ice
165 166
166 #endif // SUBZERO_SRC_ICECFG_H 167 #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