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

Side by Side Diff: src/IceOperand.h

Issue 490333003: Subzero: Fix address mode optimization involving phi temporaries. (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: Clean up and better document the test 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 unified diff | Download patch
OLDNEW
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
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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698