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

Side by Side Diff: src/IceInst.h

Issue 1559243002: Suzero. X8664. NaCl Sandboxing. (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: Fixes filetype=asm; addresses comments. 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/IceELFSection.h ('k') | src/IceInst.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/IceInst.h - High-level instructions ----------*- C++ -*-===// 1 //===- subzero/src/IceInst.h - High-level instructions ----------*- 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 764 matching lines...) Expand 10 before | Expand all | Expand 10 after
775 }; 775 };
776 776
777 /// BundleLock instruction. There are no operands. Contains an option 777 /// BundleLock instruction. There are no operands. Contains an option
778 /// indicating whether align_to_end is specified. 778 /// indicating whether align_to_end is specified.
779 class InstBundleLock : public InstHighLevel { 779 class InstBundleLock : public InstHighLevel {
780 InstBundleLock() = delete; 780 InstBundleLock() = delete;
781 InstBundleLock(const InstBundleLock &) = delete; 781 InstBundleLock(const InstBundleLock &) = delete;
782 InstBundleLock &operator=(const InstBundleLock &) = delete; 782 InstBundleLock &operator=(const InstBundleLock &) = delete;
783 783
784 public: 784 public:
785 enum Option { Opt_None, Opt_AlignToEnd }; 785 enum Option { Opt_None, Opt_AlignToEnd, Opt_PadToEnd };
786 static InstBundleLock *create(Cfg *Func, Option BundleOption) { 786 static InstBundleLock *create(Cfg *Func, Option BundleOption) {
787 return new (Func->allocate<InstBundleLock>()) 787 return new (Func->allocate<InstBundleLock>())
788 InstBundleLock(Func, BundleOption); 788 InstBundleLock(Func, BundleOption);
789 } 789 }
790 void emit(const Cfg *Func) const override; 790 void emit(const Cfg *Func) const override;
791 void emitIAS(const Cfg * /* Func */) const override {} 791 void emitIAS(const Cfg * /* Func */) const override {}
792 void dump(const Cfg *Func) const override; 792 void dump(const Cfg *Func) const override;
793 Option getOption() const { return BundleOption; } 793 Option getOption() const { return BundleOption; }
794 static bool classof(const Inst *Inst) { 794 static bool classof(const Inst *Inst) {
795 return Inst->getKind() == BundleLock; 795 return Inst->getKind() == BundleLock;
(...skipping 193 matching lines...) Expand 10 before | Expand all | Expand 10 after
989 static void noteHead(Ice::Inst *, Ice::Inst *) {} 989 static void noteHead(Ice::Inst *, Ice::Inst *) {}
990 void deleteNode(Ice::Inst *) {} 990 void deleteNode(Ice::Inst *) {}
991 991
992 private: 992 private:
993 mutable ilist_half_node<Ice::Inst> Sentinel; 993 mutable ilist_half_node<Ice::Inst> Sentinel;
994 }; 994 };
995 995
996 } // end of namespace llvm 996 } // end of namespace llvm
997 997
998 #endif // SUBZERO_SRC_ICEINST_H 998 #endif // SUBZERO_SRC_ICEINST_H
OLDNEW
« no previous file with comments | « src/IceELFSection.h ('k') | src/IceInst.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698