| OLD | NEW |
| 1 //===- subzero/src/IceInstX86Base.h - Generic x86 instructions -*- C++ -*--===// | 1 //===- subzero/src/IceInstX86Base.h - Generic x86 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 331 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 342 ++Sum; | 342 ++Sum; |
| 343 if (getTargetTrue()) | 343 if (getTargetTrue()) |
| 344 ++Sum; | 344 ++Sum; |
| 345 if (getTargetFalse()) | 345 if (getTargetFalse()) |
| 346 ++Sum; | 346 ++Sum; |
| 347 return Sum; | 347 return Sum; |
| 348 } | 348 } |
| 349 bool isUnconditionalBranch() const override { | 349 bool isUnconditionalBranch() const override { |
| 350 return !Label && Condition == InstX86Base<Machine>::Traits::Cond::Br_None; | 350 return !Label && Condition == InstX86Base<Machine>::Traits::Cond::Br_None; |
| 351 } | 351 } |
| 352 bool repointEdge(CfgNode *OldNode, CfgNode *NewNode) override; | 352 bool repointEdges(CfgNode *OldNode, CfgNode *NewNode) override; |
| 353 void emit(const Cfg *Func) const override; | 353 void emit(const Cfg *Func) const override; |
| 354 void emitIAS(const Cfg *Func) const override; | 354 void emitIAS(const Cfg *Func) const override; |
| 355 void dump(const Cfg *Func) const override; | 355 void dump(const Cfg *Func) const override; |
| 356 static bool classof(const Inst *Inst) { | 356 static bool classof(const Inst *Inst) { |
| 357 return InstX86Base<Machine>::isClassof(Inst, InstX86Base<Machine>::Br); | 357 return InstX86Base<Machine>::isClassof(Inst, InstX86Base<Machine>::Br); |
| 358 } | 358 } |
| 359 | 359 |
| 360 private: | 360 private: |
| 361 InstX86Br(Cfg *Func, const CfgNode *TargetTrue, const CfgNode *TargetFalse, | 361 InstX86Br(Cfg *Func, const CfgNode *TargetTrue, const CfgNode *TargetFalse, |
| 362 const InstX86Label<Machine> *Label, | 362 const InstX86Label<Machine> *Label, |
| (...skipping 2776 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3139 &InstX86Base<Machine>::Traits::Assembler::psrl}; \ | 3139 &InstX86Base<Machine>::Traits::Assembler::psrl}; \ |
| 3140 } \ | 3140 } \ |
| 3141 } | 3141 } |
| 3142 | 3142 |
| 3143 } // end of namespace X86Internal | 3143 } // end of namespace X86Internal |
| 3144 } // end of namespace Ice | 3144 } // end of namespace Ice |
| 3145 | 3145 |
| 3146 #include "IceInstX86BaseImpl.h" | 3146 #include "IceInstX86BaseImpl.h" |
| 3147 | 3147 |
| 3148 #endif // SUBZERO_SRC_ICEINSTX86BASE_H | 3148 #endif // SUBZERO_SRC_ICEINSTX86BASE_H |
| OLD | NEW |