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 // This file declares the Inst class and its target-independent | 10 // This file declares the Inst class and its target-independent |
(...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
95 void livenessLightweight(Cfg *Func, llvm::BitVector &Live); | 95 void livenessLightweight(Cfg *Func, llvm::BitVector &Live); |
96 void liveness(InstNumberT InstNumber, llvm::BitVector &Live, | 96 void liveness(InstNumberT InstNumber, llvm::BitVector &Live, |
97 Liveness *Liveness, const CfgNode *Node); | 97 Liveness *Liveness, const CfgNode *Node); |
98 | 98 |
99 // Get the number of native instructions that this instruction | 99 // Get the number of native instructions that this instruction |
100 // ultimately emits. By default, high-level instructions don't | 100 // ultimately emits. By default, high-level instructions don't |
101 // result in any native instructions, and a target-specific | 101 // result in any native instructions, and a target-specific |
102 // instruction results in a single native instruction. | 102 // instruction results in a single native instruction. |
103 virtual uint32_t getEmitInstCount() const { return 0; } | 103 virtual uint32_t getEmitInstCount() const { return 0; } |
104 virtual void emit(const Cfg *Func) const; | 104 virtual void emit(const Cfg *Func) const; |
| 105 virtual void emitIAS(const Cfg *Func) const; |
105 virtual void dump(const Cfg *Func) const; | 106 virtual void dump(const Cfg *Func) const; |
106 virtual void dumpExtras(const Cfg *Func) const; | 107 virtual void dumpExtras(const Cfg *Func) const; |
107 void dumpDecorated(const Cfg *Func) const; | 108 void dumpDecorated(const Cfg *Func) const; |
108 void emitSources(const Cfg *Func) const; | 109 void emitSources(const Cfg *Func) const; |
109 void dumpSources(const Cfg *Func) const; | 110 void dumpSources(const Cfg *Func) const; |
110 void dumpDest(const Cfg *Func) const; | 111 void dumpDest(const Cfg *Func) const; |
111 virtual bool isRedundantAssign() const { return false; } | 112 virtual bool isRedundantAssign() const { return false; } |
112 | 113 |
113 virtual ~Inst() {} | 114 virtual ~Inst() {} |
114 | 115 |
(...skipping 645 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
760 assert(Kind >= Target); | 761 assert(Kind >= Target); |
761 } | 762 } |
762 InstTarget(const InstTarget &) LLVM_DELETED_FUNCTION; | 763 InstTarget(const InstTarget &) LLVM_DELETED_FUNCTION; |
763 InstTarget &operator=(const InstTarget &) LLVM_DELETED_FUNCTION; | 764 InstTarget &operator=(const InstTarget &) LLVM_DELETED_FUNCTION; |
764 virtual ~InstTarget() {} | 765 virtual ~InstTarget() {} |
765 }; | 766 }; |
766 | 767 |
767 } // end of namespace Ice | 768 } // end of namespace Ice |
768 | 769 |
769 #endif // SUBZERO_SRC_ICEINST_H | 770 #endif // SUBZERO_SRC_ICEINST_H |
OLD | NEW |