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

Unified Diff: src/IceCfg.h

Issue 589003002: Subzero: Refactor tracking of Defs and block-local Variables. (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: Indicate args as non-multidef 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | src/IceCfg.cpp » ('j') | src/IceConverter.cpp » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/IceCfg.h
diff --git a/src/IceCfg.h b/src/IceCfg.h
index 7a265ad442602edaa7dffed15391d9ffe5fff50a..592e875534cf94c2c76cc7fd5fec3e94b793b26d 100644
--- a/src/IceCfg.h
+++ b/src/IceCfg.h
@@ -63,17 +63,15 @@ public:
// Manage Variables.
// Create a new Variable with a particular type and an optional
// name. The Node argument is the node where the variable is defined.
- template <typename T>
- T *makeVariable(Type Ty, const CfgNode *Node, const IceString &Name = "") {
+ template <typename T> T *makeVariable(Type Ty, const IceString &Name = "") {
SizeT Index = Variables.size();
- T *Var = T::create(this, Ty, Node, Index, Name);
+ T *Var = T::create(this, Ty, Index, Name);
Variables.push_back(Var);
return Var;
}
// TODO(stichnot): Remove this function with C++11, and use default
// argument <typename T=Variable> above.
- Variable *makeVariable(Type Ty, const CfgNode *Node,
- const IceString &Name = "");
+ Variable *makeVariable(Type Ty, const IceString &Name = "");
SizeT getNumVariables() const { return Variables.size(); }
const VarList &getVariables() const { return Variables; }
@@ -84,6 +82,7 @@ public:
// Miscellaneous accessors.
TargetLowering *getTarget() const { return Target.get(); }
+ VariablesMetadata *getVMetadata() const { return VMetadata.get(); }
Liveness *getLiveness() const { return Live.get(); }
bool hasComputedFrame() const;
@@ -163,6 +162,7 @@ private:
VarList Args; // subset of Variables, in argument order
llvm::OwningPtr<Liveness> Live;
llvm::OwningPtr<TargetLowering> Target;
+ llvm::OwningPtr<VariablesMetadata> VMetadata;
// CurrentNode is maintained during dumping/emitting just for
// validating Variable::DefNode. Normally, a traversal over
« no previous file with comments | « no previous file | src/IceCfg.cpp » ('j') | src/IceConverter.cpp » ('J')

Powered by Google App Engine
This is Rietveld 408576698