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

Side by Side Diff: src/IceCfg.h

Issue 673543002: First pass at emitIAS for branches and binding labels (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: check the local labels too Created 6 years, 2 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/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/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 addImplicitArg(Variable *Arg); 87 void addImplicitArg(Variable *Arg);
88 const VarList &getImplicitArgs() const { return ImplicitArgs; } 88 const VarList &getImplicitArgs() const { return ImplicitArgs; }
89 89
90 // Miscellaneous accessors. 90 // Miscellaneous accessors.
91 TargetLowering *getTarget() const { return Target.get(); } 91 TargetLowering *getTarget() const { return Target.get(); }
92 VariablesMetadata *getVMetadata() const { return VMetadata.get(); } 92 VariablesMetadata *getVMetadata() const { return VMetadata.get(); }
93 Liveness *getLiveness() const { return Live.get(); } 93 Liveness *getLiveness() const { return Live.get(); }
94 template <typename T> T *getAssembler() const { 94 template <typename T> T *getAssembler() const {
95 return static_cast<T *>(TargetAssembler.get()); 95 return static_cast<T *>(TargetAssembler.get());
96 } 96 }
97 bool UseIntegratedAssembler() const { 97 bool useIntegratedAssembler() const {
98 return getContext()->getFlags().UseIntegratedAssembler; 98 return getContext()->getFlags().UseIntegratedAssembler;
99 } 99 }
100 bool hasComputedFrame() const; 100 bool hasComputedFrame() const;
101 bool getFocusedTiming() const { return FocusedTiming; } 101 bool getFocusedTiming() const { return FocusedTiming; }
102 void setFocusedTiming() { FocusedTiming = true; } 102 void setFocusedTiming() { FocusedTiming = true; }
103 103
104 // Passes over the CFG. 104 // Passes over the CFG.
105 void translate(); 105 void translate();
106 // After the CFG is fully constructed, iterate over the nodes and 106 // After the CFG is fully constructed, iterate over the nodes and
107 // compute the predecessor edges, in the form of 107 // compute the predecessor edges, in the form of
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after
186 // validating Variable::DefNode. Normally, a traversal over 186 // validating Variable::DefNode. Normally, a traversal over
187 // CfgNodes maintains this, but before global operations like 187 // CfgNodes maintains this, but before global operations like
188 // register allocation, resetCurrentNode() should be called to avoid 188 // register allocation, resetCurrentNode() should be called to avoid
189 // spurious validation failures. 189 // spurious validation failures.
190 const CfgNode *CurrentNode; 190 const CfgNode *CurrentNode;
191 }; 191 };
192 192
193 } // end of namespace Ice 193 } // end of namespace Ice
194 194
195 #endif // SUBZERO_SRC_ICECFG_H 195 #endif // SUBZERO_SRC_ICECFG_H
OLDNEW
« no previous file with comments | « no previous file | src/IceCfgNode.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698