OLD | NEW |
1 //===- subzero/src/IceInstX86BaseImpl.h - Generic X86 instructions -*- C++ -*=// | 1 //===- subzero/src/IceInstX86BaseImpl.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 2605 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2616 emitIASRegOpTyGPR<Machine, false, true>(Func, SrcTy, Dest, Src, | 2616 emitIASRegOpTyGPR<Machine, false, true>(Func, SrcTy, Dest, Src, |
2617 this->Emitter); | 2617 this->Emitter); |
2618 } | 2618 } |
2619 | 2619 |
2620 template <class Machine> void InstX86Nop<Machine>::emit(const Cfg *Func) const { | 2620 template <class Machine> void InstX86Nop<Machine>::emit(const Cfg *Func) const { |
2621 if (!BuildDefs::dump()) | 2621 if (!BuildDefs::dump()) |
2622 return; | 2622 return; |
2623 Ostream &Str = Func->getContext()->getStrEmit(); | 2623 Ostream &Str = Func->getContext()->getStrEmit(); |
2624 // TODO: Emit the right code for each variant. | 2624 // TODO: Emit the right code for each variant. |
2625 Str << "\t" | 2625 Str << "\t" |
2626 "nop\t# variant = " << Variant; | 2626 "nop\t/* variant = " << Variant << " */"; |
2627 } | 2627 } |
2628 | 2628 |
2629 template <class Machine> | 2629 template <class Machine> |
2630 void InstX86Nop<Machine>::emitIAS(const Cfg *Func) const { | 2630 void InstX86Nop<Machine>::emitIAS(const Cfg *Func) const { |
2631 typename InstX86Base<Machine>::Traits::Assembler *Asm = | 2631 typename InstX86Base<Machine>::Traits::Assembler *Asm = |
2632 Func->getAssembler<typename InstX86Base<Machine>::Traits::Assembler>(); | 2632 Func->getAssembler<typename InstX86Base<Machine>::Traits::Assembler>(); |
2633 // TODO: Emit the right code for the variant. | 2633 // TODO: Emit the right code for the variant. |
2634 Asm->nop(); | 2634 Asm->nop(); |
2635 } | 2635 } |
2636 | 2636 |
(...skipping 674 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3311 return; | 3311 return; |
3312 Ostream &Str = Func->getContext()->getStrDump(); | 3312 Ostream &Str = Func->getContext()->getStrDump(); |
3313 Str << "IACA_END"; | 3313 Str << "IACA_END"; |
3314 } | 3314 } |
3315 | 3315 |
3316 } // end of namespace X86Internal | 3316 } // end of namespace X86Internal |
3317 | 3317 |
3318 } // end of namespace Ice | 3318 } // end of namespace Ice |
3319 | 3319 |
3320 #endif // SUBZERO_SRC_ICEINSTX86BASEIMPL_H | 3320 #endif // SUBZERO_SRC_ICEINSTX86BASEIMPL_H |
OLD | NEW |