OLD | NEW |
1 //===- subzero/src/IceAssemblerX86Base.h - base x86 assembler -*- C++ -*---===// | 1 //===- subzero/src/IceAssemblerX86Base.h - base x86 assembler -*- C++ -*---===// |
2 // | 2 // |
3 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file | 3 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file |
4 // for details. All rights reserved. Use of this source code is governed by a | 4 // for details. All rights reserved. Use of this source code is governed by a |
5 // BSD-style license that can be found in the LICENSE file. | 5 // BSD-style license that can be found in the LICENSE file. |
6 // | 6 // |
7 // Modified by the Subzero authors. | 7 // Modified by the Subzero authors. |
8 // | 8 // |
9 //===----------------------------------------------------------------------===// | 9 //===----------------------------------------------------------------------===// |
10 // | 10 // |
(...skipping 158 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
169 | 169 |
170 Ice::Label *getCfgNodeLabel(SizeT NodeNumber) override; | 170 Ice::Label *getCfgNodeLabel(SizeT NodeNumber) override; |
171 void bindCfgNodeLabel(const CfgNode *Node) override; | 171 void bindCfgNodeLabel(const CfgNode *Node) override; |
172 Label *getOrCreateCfgNodeLabel(SizeT Number); | 172 Label *getOrCreateCfgNodeLabel(SizeT Number); |
173 Label *getOrCreateLocalLabel(SizeT Number); | 173 Label *getOrCreateLocalLabel(SizeT Number); |
174 void bindLocalLabel(SizeT Number); | 174 void bindLocalLabel(SizeT Number); |
175 | 175 |
176 bool fixupIsPCRel(FixupKind Kind) const override { | 176 bool fixupIsPCRel(FixupKind Kind) const override { |
177 // Currently assuming this is the only PC-rel relocation type used. | 177 // Currently assuming this is the only PC-rel relocation type used. |
178 // TODO(jpp): Traits.PcRelTypes.count(Kind) != 0 | 178 // TODO(jpp): Traits.PcRelTypes.count(Kind) != 0 |
179 return Kind == Traits::PcRelFixup; | 179 return Kind == Traits::FK_PcRel; |
180 } | 180 } |
181 | 181 |
182 // Operations to emit GPR instructions (and dispatch on operand type). | 182 // Operations to emit GPR instructions (and dispatch on operand type). |
183 using TypedEmitGPR = void (AssemblerX86Base::*)(Type, GPRRegister); | 183 using TypedEmitGPR = void (AssemblerX86Base::*)(Type, GPRRegister); |
184 using TypedEmitAddr = void (AssemblerX86Base::*)(Type, const Address &); | 184 using TypedEmitAddr = void (AssemblerX86Base::*)(Type, const Address &); |
185 struct GPREmitterOneOp { | 185 struct GPREmitterOneOp { |
186 TypedEmitGPR Reg; | 186 TypedEmitGPR Reg; |
187 TypedEmitAddr Addr; | 187 TypedEmitAddr Addr; |
188 }; | 188 }; |
189 | 189 |
(...skipping 719 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
909 emitUint8(0x66); | 909 emitUint8(0x66); |
910 } | 910 } |
911 | 911 |
912 } // end of namespace X86NAMESPACE | 912 } // end of namespace X86NAMESPACE |
913 | 913 |
914 } // end of namespace Ice | 914 } // end of namespace Ice |
915 | 915 |
916 #include "IceAssemblerX86BaseImpl.h" | 916 #include "IceAssemblerX86BaseImpl.h" |
917 | 917 |
918 #endif // SUBZERO_SRC_ICEASSEMBLERX86BASE_H | 918 #endif // SUBZERO_SRC_ICEASSEMBLERX86BASE_H |
OLD | NEW |