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

Unified Diff: src/IceInstX8632.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: "Mark args as being used in the entry node" was unnecessary. 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 | « src/IceInst.cpp ('k') | src/IceInstX8632.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/IceInstX8632.h
diff --git a/src/IceInstX8632.h b/src/IceInstX8632.h
index ac391701f3dec84bf679e4954aa17f44d2cd527d..7ab8592a2daf6045bc5d3cb2f81c6032648e3506 100644
--- a/src/IceInstX8632.h
+++ b/src/IceInstX8632.h
@@ -142,10 +142,9 @@ private:
// Variable and SpillVariable share that slot.
class SpillVariable : public Variable {
public:
- static SpillVariable *create(Cfg *Func, Type Ty, const CfgNode *Node,
- SizeT Index, const IceString &Name) {
- return new (Func->allocate<SpillVariable>())
- SpillVariable(Ty, Node, Index, Name);
+ static SpillVariable *create(Cfg *Func, Type Ty, SizeT Index,
+ const IceString &Name) {
+ return new (Func->allocate<SpillVariable>()) SpillVariable(Ty, Index, Name);
}
const static OperandKind SpillVariableKind =
static_cast<OperandKind>(kVariable_Target);
@@ -156,9 +155,8 @@ public:
Variable *getLinkedTo() const { return LinkedTo; }
// Inherit dump() and emit() from Variable.
private:
- SpillVariable(Type Ty, const CfgNode *Node, SizeT Index,
- const IceString &Name)
- : Variable(SpillVariableKind, Ty, Node, Index, Name), LinkedTo(NULL) {}
+ SpillVariable(Type Ty, SizeT Index, const IceString &Name)
+ : Variable(SpillVariableKind, Ty, Index, Name), LinkedTo(NULL) {}
Variable *LinkedTo;
};
@@ -393,16 +391,16 @@ private:
// updates the stack offset during code emission.
class InstX8632AdjustStack : public InstX8632 {
public:
- static InstX8632AdjustStack *create(Cfg *Func, SizeT Amount) {
+ static InstX8632AdjustStack *create(Cfg *Func, SizeT Amount, Variable *Esp) {
return new (Func->allocate<InstX8632AdjustStack>())
- InstX8632AdjustStack(Func, Amount);
+ InstX8632AdjustStack(Func, Amount, Esp);
}
virtual void emit(const Cfg *Func) const;
virtual void dump(const Cfg *Func) const;
static bool classof(const Inst *Inst) { return isClassof(Inst, Adjuststack); }
private:
- InstX8632AdjustStack(Cfg *Func, SizeT Amount);
+ InstX8632AdjustStack(Cfg *Func, SizeT Amount, Variable *Esp);
InstX8632AdjustStack(const InstX8632AdjustStack &) LLVM_DELETED_FUNCTION;
InstX8632AdjustStack &operator=(const InstX8632AdjustStack &)
LLVM_DELETED_FUNCTION;
« no previous file with comments | « src/IceInst.cpp ('k') | src/IceInstX8632.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698