| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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 |
| OLD | NEW |