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

Unified Diff: src/IceTargetLoweringX8632Traits.h

Issue 2107073002: Subzero: Merge SpillVariable functionality directly into Variable. (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: Code review comments. Created 4 years, 6 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/IceOperand.cpp ('k') | src/IceTargetLoweringX8664Traits.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/IceTargetLoweringX8632Traits.h
diff --git a/src/IceTargetLoweringX8632Traits.h b/src/IceTargetLoweringX8632Traits.h
index 2716a340488494ead88d308e4559f51b1d9ecd5d..518ac3ead7ff2989b910eeabe272eacadb63d640 100644
--- a/src/IceTargetLoweringX8632Traits.h
+++ b/src/IceTargetLoweringX8632Traits.h
@@ -933,36 +933,6 @@ public:
Portion Part;
};
- /// SpillVariable decorates a Variable by linking it to another Variable. When
- /// stack frame offsets are computed, the SpillVariable is given a distinct
- /// stack slot only if its linked Variable has a register. If the linked
- /// Variable has a stack slot, then the Variable and SpillVariable share that
- /// slot.
- class SpillVariable : public Variable {
- SpillVariable() = delete;
- SpillVariable(const SpillVariable &) = delete;
- SpillVariable &operator=(const SpillVariable &) = delete;
-
- public:
- static SpillVariable *create(Cfg *Func, Type Ty, SizeT Index) {
- return new (Func->allocate<SpillVariable>())
- SpillVariable(Func, Ty, Index);
- }
- constexpr static auto SpillVariableKind =
- static_cast<OperandKind>(kVariable_Target);
- static bool classof(const Operand *Operand) {
- return Operand->getKind() == SpillVariableKind;
- }
- void setLinkedTo(Variable *Var) { LinkedTo = Var; }
- Variable *getLinkedTo() const { return LinkedTo; }
- // Inherit dump() and emit() from Variable.
-
- private:
- SpillVariable(const Cfg *Func, Type Ty, SizeT Index)
- : Variable(Func, SpillVariableKind, Ty, Index), LinkedTo(nullptr) {}
- Variable *LinkedTo;
- };
-
// Note: The following data structures are defined in IceInstX8632.cpp.
static const struct InstBrAttributesType {
« no previous file with comments | « src/IceOperand.cpp ('k') | src/IceTargetLoweringX8664Traits.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698