| 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 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 67 | 67 |
| 68 using Cond = ::Ice::CondX8664; | 68 using Cond = ::Ice::CondX8664; |
| 69 | 69 |
| 70 using RegisterSet = ::Ice::RegX8664; | 70 using RegisterSet = ::Ice::RegX8664; |
| 71 static constexpr SizeT StackPtr = RegX8664::Reg_rsp; | 71 static constexpr SizeT StackPtr = RegX8664::Reg_rsp; |
| 72 static constexpr SizeT FramePtr = RegX8664::Reg_rbp; | 72 static constexpr SizeT FramePtr = RegX8664::Reg_rbp; |
| 73 static constexpr GPRRegister Encoded_Reg_Accumulator = | 73 static constexpr GPRRegister Encoded_Reg_Accumulator = |
| 74 RegX8664::Encoded_Reg_eax; | 74 RegX8664::Encoded_Reg_eax; |
| 75 static constexpr GPRRegister Encoded_Reg_Counter = RegX8664::Encoded_Reg_ecx; | 75 static constexpr GPRRegister Encoded_Reg_Counter = RegX8664::Encoded_Reg_ecx; |
| 76 static constexpr FixupKind FK_PcRel = llvm::ELF::R_X86_64_PC32; | 76 static constexpr FixupKind FK_PcRel = llvm::ELF::R_X86_64_PC32; |
| 77 static constexpr FixupKind FK_Abs = llvm::ELF::R_X86_64_32; | 77 static constexpr FixupKind FK_Abs = llvm::ELF::R_X86_64_32S; |
| 78 static constexpr FixupKind FK_Gotoff = llvm::ELF::R_X86_64_GOTOFF64; | 78 static constexpr FixupKind FK_Gotoff = llvm::ELF::R_X86_64_GOTOFF64; |
| 79 static constexpr FixupKind FK_GotPC = llvm::ELF::R_X86_64_GOTPC32; | 79 static constexpr FixupKind FK_GotPC = llvm::ELF::R_X86_64_GOTPC32; |
| 80 | 80 |
| 81 class Operand { | 81 class Operand { |
| 82 public: | 82 public: |
| 83 enum RexBits { | 83 enum RexBits { |
| 84 RexNone = 0x00, | 84 RexNone = 0x00, |
| 85 RexBase = 0x40, | 85 RexBase = 0x40, |
| 86 RexW = RexBase | (1 << 3), | 86 RexW = RexBase | (1 << 3), |
| 87 RexR = RexBase | (1 << 2), | 87 RexR = RexBase | (1 << 2), |
| (...skipping 957 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1045 const char *FldString; // s, l, or <blank> | 1045 const char *FldString; // s, l, or <blank> |
| 1046 } TypeAttributes[]; | 1046 } TypeAttributes[]; |
| 1047 }; | 1047 }; |
| 1048 | 1048 |
| 1049 using Traits = ::Ice::X8664::TargetX8664Traits; | 1049 using Traits = ::Ice::X8664::TargetX8664Traits; |
| 1050 } // end of namespace X8664 | 1050 } // end of namespace X8664 |
| 1051 | 1051 |
| 1052 } // end of namespace Ice | 1052 } // end of namespace Ice |
| 1053 | 1053 |
| 1054 #endif // SUBZERO_SRC_ICETARGETLOWERINGX8664TRAITS_H | 1054 #endif // SUBZERO_SRC_ICETARGETLOWERINGX8664TRAITS_H |
| OLD | NEW |