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

Side by Side Diff: src/IceOperand.h

Issue 2095633002: Subzero: Make -asm-verbose local var offsets local. (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: 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 unified diff | Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 /// \file 10 /// \file
(...skipping 685 matching lines...) Expand 10 before | Expand all | Expand 10 after
696 return IgnoreLiveness || IsRematerializable; 696 return IgnoreLiveness || IsRematerializable;
697 } 697 }
698 698
699 int32_t getStackOffset() const { return StackOffset; } 699 int32_t getStackOffset() const { return StackOffset; }
700 void setStackOffset(int32_t Offset) { StackOffset = Offset; } 700 void setStackOffset(int32_t Offset) { StackOffset = Offset; }
701 /// Returns the variable's stack offset in symbolic form, to improve 701 /// Returns the variable's stack offset in symbolic form, to improve
702 /// readability in DecorateAsm mode. 702 /// readability in DecorateAsm mode.
703 std::string getSymbolicStackOffset() const { 703 std::string getSymbolicStackOffset() const {
704 if (!BuildDefs::dump()) 704 if (!BuildDefs::dump())
705 return ""; 705 return "";
706 return "lv$" + getName(); 706 return ".L$lv$" + getName();
707 } 707 }
708 708
709 bool hasReg() const { return getRegNum().hasValue(); } 709 bool hasReg() const { return getRegNum().hasValue(); }
710 RegNumT getRegNum() const { return RegNum; } 710 RegNumT getRegNum() const { return RegNum; }
711 void setRegNum(RegNumT NewRegNum) { 711 void setRegNum(RegNumT NewRegNum) {
712 // Regnum shouldn't be set more than once. 712 // Regnum shouldn't be set more than once.
713 assert(!hasReg() || RegNum == NewRegNum); 713 assert(!hasReg() || RegNum == NewRegNum);
714 RegNum = NewRegNum; 714 RegNum = NewRegNum;
715 } 715 }
716 bool hasRegTmp() const { return getRegNumTmp().hasValue(); } 716 bool hasRegTmp() const { return getRegNumTmp().hasValue(); }
(...skipping 306 matching lines...) Expand 10 before | Expand all | Expand 10 after
1023 return Operand->getKind() == kVariableBoolean; 1023 return Operand->getKind() == kVariableBoolean;
1024 } 1024 }
1025 1025
1026 private: 1026 private:
1027 Variable *BoolSource = nullptr; 1027 Variable *BoolSource = nullptr;
1028 }; 1028 };
1029 1029
1030 } // end of namespace Ice 1030 } // end of namespace Ice
1031 1031
1032 #endif // SUBZERO_SRC_ICEOPERAND_H 1032 #endif // SUBZERO_SRC_ICEOPERAND_H
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698