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

Side by Side Diff: src/IceOperand.h

Issue 1506653002: Subzero: Add Non-SFI support for x86-32. (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: Code review changes Created 4 years, 11 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 | « src/IceInstX86BaseImpl.h ('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 /// \file 10 /// \file
(...skipping 269 matching lines...) Expand 10 before | Expand all | Expand 10 after
280 return new (Ctx->allocate<ConstantRelocatable>()) ConstantRelocatable( 280 return new (Ctx->allocate<ConstantRelocatable>()) ConstantRelocatable(
281 Ty, Tuple.Offset, Tuple.Name, Tuple.SuppressMangling); 281 Ty, Tuple.Offset, Tuple.Name, Tuple.SuppressMangling);
282 } 282 }
283 283
284 RelocOffsetT getOffset() const { return Offset; } 284 RelocOffsetT getOffset() const { return Offset; }
285 const IceString &getName() const { return Name; } 285 const IceString &getName() const { return Name; }
286 void setSuppressMangling(bool Value) { SuppressMangling = Value; } 286 void setSuppressMangling(bool Value) { SuppressMangling = Value; }
287 bool getSuppressMangling() const { return SuppressMangling; } 287 bool getSuppressMangling() const { return SuppressMangling; }
288 using Constant::emit; 288 using Constant::emit;
289 void emit(TargetLowering *Target) const final; 289 void emit(TargetLowering *Target) const final;
290 void emitWithoutPrefix(const TargetLowering *Target) const; 290 void emitWithoutPrefix(const TargetLowering *Target,
291 const char *Suffix = "") const;
291 using Constant::dump; 292 using Constant::dump;
292 void dump(const Cfg *Func, Ostream &Str) const override; 293 void dump(const Cfg *Func, Ostream &Str) const override;
293 294
294 static bool classof(const Operand *Operand) { 295 static bool classof(const Operand *Operand) {
295 OperandKind Kind = Operand->getKind(); 296 OperandKind Kind = Operand->getKind();
296 return Kind == kConstRelocatable; 297 return Kind == kConstRelocatable;
297 } 298 }
298 299
299 private: 300 private:
300 ConstantRelocatable(Type Ty, RelocOffsetT Offset, const IceString &Name, 301 ConstantRelocatable(Type Ty, RelocOffsetT Offset, const IceString &Name,
(...skipping 461 matching lines...) Expand 10 before | Expand all | Expand 10 after
762 private: 763 private:
763 const Cfg *Func; 764 const Cfg *Func;
764 MetadataKind Kind; 765 MetadataKind Kind;
765 CfgVector<VariableTracking> Metadata; 766 CfgVector<VariableTracking> Metadata;
766 const static InstDefList NoDefinitions; 767 const static InstDefList NoDefinitions;
767 }; 768 };
768 769
769 } // end of namespace Ice 770 } // end of namespace Ice
770 771
771 #endif // SUBZERO_SRC_ICEOPERAND_H 772 #endif // SUBZERO_SRC_ICEOPERAND_H
OLDNEW
« no previous file with comments | « src/IceInstX86BaseImpl.h ('k') | src/IceOperand.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698