OLD | NEW |
1 //===- subzero/src/IceTargetLoweringX8664Traits.h - x86-64 traits -*- C++ -*-=// | 1 //===- subzero/src/IceTargetLoweringX8664Traits.h - x86-64 traits -*- 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 699 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
710 (void)SegmentRegister; | 710 (void)SegmentRegister; |
711 return new (Func->allocate<X86OperandMem>()) | 711 return new (Func->allocate<X86OperandMem>()) |
712 X86OperandMem(Func, Ty, Base, Offset, Index, Shift); | 712 X86OperandMem(Func, Ty, Base, Offset, Index, Shift); |
713 } | 713 } |
714 Variable *getBase() const { return Base; } | 714 Variable *getBase() const { return Base; } |
715 Constant *getOffset() const { return Offset; } | 715 Constant *getOffset() const { return Offset; } |
716 Variable *getIndex() const { return Index; } | 716 Variable *getIndex() const { return Index; } |
717 uint16_t getShift() const { return Shift; } | 717 uint16_t getShift() const { return Shift; } |
718 SegmentRegisters getSegmentRegister() const { return DefaultSegment; } | 718 SegmentRegisters getSegmentRegister() const { return DefaultSegment; } |
719 void emitSegmentOverride(Assembler *) const {} | 719 void emitSegmentOverride(Assembler *) const {} |
720 Address toAsmAddress(Assembler *Asm) const; | 720 Address toAsmAddress(Assembler *Asm, Ice::TargetLowering *Target) const; |
721 | 721 |
722 void emit(const Cfg *Func) const override; | 722 void emit(const Cfg *Func) const override; |
723 using X86Operand::dump; | 723 using X86Operand::dump; |
724 void dump(const Cfg *Func, Ostream &Str) const override; | 724 void dump(const Cfg *Func, Ostream &Str) const override; |
725 | 725 |
726 static bool classof(const Operand *Operand) { | 726 static bool classof(const Operand *Operand) { |
727 return Operand->getKind() == static_cast<OperandKind>(kMem); | 727 return Operand->getKind() == static_cast<OperandKind>(kMem); |
728 } | 728 } |
729 | 729 |
730 void setRandomized(bool R) { Randomized = R; } | 730 void setRandomized(bool R) { Randomized = R; } |
(...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
839 | 839 |
840 } // end of namespace X86Internal | 840 } // end of namespace X86Internal |
841 | 841 |
842 namespace X8664 { | 842 namespace X8664 { |
843 using Traits = ::Ice::X86Internal::MachineTraits<TargetX8664>; | 843 using Traits = ::Ice::X86Internal::MachineTraits<TargetX8664>; |
844 } // end of namespace X8664 | 844 } // end of namespace X8664 |
845 | 845 |
846 } // end of namespace Ice | 846 } // end of namespace Ice |
847 | 847 |
848 #endif // SUBZERO_SRC_ICETARGETLOWERINGX8664TRAITS_H | 848 #endif // SUBZERO_SRC_ICETARGETLOWERINGX8664TRAITS_H |
OLD | NEW |