OLD | NEW |
1 //===- subzero/src/IceOperand.h - High-level operands -----------*- C++ -*-===// | 1 //===- subzero/src/IceOperand.h - High-level operands -----------*- 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 Operand class and its target-independent | 10 // This file declares the Operand class and its target-independent |
(...skipping 312 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
323 static Variable *create(Cfg *Func, Type Ty, const CfgNode *Node, SizeT Index, | 323 static Variable *create(Cfg *Func, Type Ty, const CfgNode *Node, SizeT Index, |
324 const IceString &Name) { | 324 const IceString &Name) { |
325 return new (Func->allocate<Variable>()) Variable(Ty, Node, Index, Name); | 325 return new (Func->allocate<Variable>()) Variable(Ty, Node, Index, Name); |
326 } | 326 } |
327 | 327 |
328 SizeT getIndex() const { return Number; } | 328 SizeT getIndex() const { return Number; } |
329 IceString getName() const; | 329 IceString getName() const; |
330 | 330 |
331 Inst *getDefinition() const { return DefInst; } | 331 Inst *getDefinition() const { return DefInst; } |
332 void setDefinition(Inst *Inst, const CfgNode *Node); | 332 void setDefinition(Inst *Inst, const CfgNode *Node); |
| 333 void resetDefinition(); |
333 void replaceDefinition(Inst *Inst, const CfgNode *Node); | 334 void replaceDefinition(Inst *Inst, const CfgNode *Node); |
334 | 335 |
335 const CfgNode *getLocalUseNode() const { return DefNode; } | 336 const CfgNode *getLocalUseNode() const { return DefNode; } |
336 bool isMultiblockLife() const { return (DefNode == NULL); } | 337 bool isMultiblockLife() const { return (DefNode == NULL); } |
337 void setUse(const Inst *Inst, const CfgNode *Node); | 338 void setUse(const Inst *Inst, const CfgNode *Node); |
338 | 339 |
339 bool getIsArg() const { return IsArgument; } | 340 bool getIsArg() const { return IsArgument; } |
340 void setIsArg(Cfg *Func, bool IsArg = true); | 341 void setIsArg(Cfg *Func, bool IsArg = true); |
341 | 342 |
342 int32_t getStackOffset() const { return StackOffset; } | 343 int32_t getStackOffset() const { return StackOffset; } |
(...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
461 Variable *LoVar; | 462 Variable *LoVar; |
462 Variable *HiVar; | 463 Variable *HiVar; |
463 // VarsReal (and Operand::Vars) are set up such that Vars[0] == | 464 // VarsReal (and Operand::Vars) are set up such that Vars[0] == |
464 // this. | 465 // this. |
465 Variable *VarsReal[1]; | 466 Variable *VarsReal[1]; |
466 }; | 467 }; |
467 | 468 |
468 } // end of namespace Ice | 469 } // end of namespace Ice |
469 | 470 |
470 #endif // SUBZERO_SRC_ICEOPERAND_H | 471 #endif // SUBZERO_SRC_ICEOPERAND_H |
OLD | NEW |