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

Side by Side Diff: src/IceOperand.h

Issue 695993004: Subzero: Switch to AT&T asm syntax. I give up. (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: Add opcode suffix to xchg. Use .L$ prefix for constant pool entries. Created 6 years, 1 month 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 | « src/IceInstX8632.def ('k') | src/IceOperand.cpp » ('j') | 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 // This file declares the Operand class and its target-independent 10 // This file declares the Operand class and its target-independent
(...skipping 199 matching lines...) Expand 10 before | Expand all | Expand 10 after
210 Ty, Tuple.Offset, Tuple.Name, Tuple.SuppressMangling, PoolEntryID); 210 Ty, Tuple.Offset, Tuple.Name, Tuple.SuppressMangling, PoolEntryID);
211 } 211 }
212 212
213 RelocOffsetT getOffset() const { return Offset; } 213 RelocOffsetT getOffset() const { return Offset; }
214 IceString getName() const { return Name; } 214 IceString getName() const { return Name; }
215 void setSuppressMangling(bool Value) { SuppressMangling = Value; } 215 void setSuppressMangling(bool Value) { SuppressMangling = Value; }
216 bool getSuppressMangling() const { return SuppressMangling; } 216 bool getSuppressMangling() const { return SuppressMangling; }
217 using Constant::emit; 217 using Constant::emit;
218 using Constant::dump; 218 using Constant::dump;
219 void emit(GlobalContext *Ctx) const override; 219 void emit(GlobalContext *Ctx) const override;
220 void emitWithoutDollar(GlobalContext *Ctx) const;
220 void dump(const Cfg *Func, Ostream &Str) const override; 221 void dump(const Cfg *Func, Ostream &Str) const override;
221 222
222 static bool classof(const Operand *Operand) { 223 static bool classof(const Operand *Operand) {
223 OperandKind Kind = Operand->getKind(); 224 OperandKind Kind = Operand->getKind();
224 return Kind == kConstRelocatable; 225 return Kind == kConstRelocatable;
225 } 226 }
226 227
227 private: 228 private:
228 ConstantRelocatable(Type Ty, RelocOffsetT Offset, const IceString &Name, 229 ConstantRelocatable(Type Ty, RelocOffsetT Offset, const IceString &Name,
229 bool SuppressMangling, uint32_t PoolEntryID) 230 bool SuppressMangling, uint32_t PoolEntryID)
(...skipping 396 matching lines...) Expand 10 before | Expand all | Expand 10 after
626 private: 627 private:
627 const Cfg *Func; 628 const Cfg *Func;
628 MetadataKind Kind; 629 MetadataKind Kind;
629 std::vector<VariableTracking> Metadata; 630 std::vector<VariableTracking> Metadata;
630 const static InstDefList NoDefinitions; 631 const static InstDefList NoDefinitions;
631 }; 632 };
632 633
633 } // end of namespace Ice 634 } // end of namespace Ice
634 635
635 #endif // SUBZERO_SRC_ICEOPERAND_H 636 #endif // SUBZERO_SRC_ICEOPERAND_H
OLDNEW
« no previous file with comments | « src/IceInstX8632.def ('k') | src/IceOperand.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698