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

Unified Diff: src/IceCfgNode.h

Issue 1837663002: Initial Subzero WASM prototype. (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: Code review feedback and merging master Created 4 years, 8 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/IceCfg.cpp ('k') | src/IceCfgNode.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/IceCfgNode.h
diff --git a/src/IceCfgNode.h b/src/IceCfgNode.h
index f0633dfd1798d40a9e0ea69635a3f58753450a90..cf3e83c987c674d6ad7c199061d291072dfc4b3b 100644
--- a/src/IceCfgNode.h
+++ b/src/IceCfgNode.h
@@ -72,7 +72,7 @@ public:
/// @{
InstList &getInsts() { return Insts; }
PhiList &getPhis() { return Phis; }
- void appendInst(Inst *Instr);
+ void appendInst(Inst *Instr, bool AllowPhisAnywhere = false);
void renumberInstructions();
/// Rough and generally conservative estimate of the number of instructions in
/// the block. It is updated when an instruction is added, but not when
@@ -110,6 +110,13 @@ public:
void profileExecutionCount(VariableDeclaration *Var);
+ void addOutEdge(CfgNode *Out) { OutEdges.push_back(Out); }
+ void addInEdge(CfgNode *In) { InEdges.push_back(In); }
+
+ bool hasSingleOutEdge() const {
+ return (getOutEdges().size() == 1 || getOutEdges()[0] == getOutEdges()[1]);
+ }
+
private:
CfgNode(Cfg *Func, SizeT Number);
bool livenessValidateIntervals(Liveness *Liveness) const;
« 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