OLD | NEW |
1 //===- subzero/src/IceTargetLoweringX8632.h - x86-32 lowering ---*- C++ -*-===// | 1 //===- subzero/src/IceTargetLoweringX8632.h - x86-32 lowering ---*- 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 // This file declares the TargetLoweringX8632 class, which | 10 // This file declares the TargetLoweringX8632 class, which |
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
64 // function calls using the 32-bit push instruction (though the | 64 // function calls using the 32-bit push instruction (though the |
65 // latter could be done by directly writing to the stack). | 65 // latter could be done by directly writing to the stack). |
66 void split64(Variable *Var); | 66 void split64(Variable *Var); |
67 void finishArgumentLowering(Variable *Arg, Variable *FramePtr, | 67 void finishArgumentLowering(Variable *Arg, Variable *FramePtr, |
68 size_t BasicFrameOffset, size_t &InArgsSizeBytes); | 68 size_t BasicFrameOffset, size_t &InArgsSizeBytes); |
69 Operand *loOperand(Operand *Operand); | 69 Operand *loOperand(Operand *Operand); |
70 Operand *hiOperand(Operand *Operand); | 70 Operand *hiOperand(Operand *Operand); |
71 x86::Address stackVarToAsmOperand(const Variable *Var) const; | 71 x86::Address stackVarToAsmOperand(const Variable *Var) const; |
72 | 72 |
73 enum X86InstructionSet { | 73 enum X86InstructionSet { |
| 74 Begin, |
74 // SSE2 is the PNaCl baseline instruction set. | 75 // SSE2 is the PNaCl baseline instruction set. |
75 SSE2, | 76 SSE2 = Begin, |
76 SSE4_1 | 77 SSE4_1, |
| 78 End |
77 }; | 79 }; |
78 | 80 |
79 X86InstructionSet getInstructionSet() const { return InstructionSet; } | 81 X86InstructionSet getInstructionSet() const { return InstructionSet; } |
80 | 82 |
81 protected: | 83 protected: |
82 explicit TargetX8632(Cfg *Func); | 84 explicit TargetX8632(Cfg *Func); |
83 | 85 |
84 void postLower() override; | 86 void postLower() override; |
85 | 87 |
86 void lowerAlloca(const InstAlloca *Inst) override; | 88 void lowerAlloca(const InstAlloca *Inst) override; |
(...skipping 437 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
524 }; | 526 }; |
525 | 527 |
526 template <> void ConstantInteger32::emit(GlobalContext *Ctx) const; | 528 template <> void ConstantInteger32::emit(GlobalContext *Ctx) const; |
527 template <> void ConstantInteger64::emit(GlobalContext *Ctx) const; | 529 template <> void ConstantInteger64::emit(GlobalContext *Ctx) const; |
528 template <> void ConstantFloat::emit(GlobalContext *Ctx) const; | 530 template <> void ConstantFloat::emit(GlobalContext *Ctx) const; |
529 template <> void ConstantDouble::emit(GlobalContext *Ctx) const; | 531 template <> void ConstantDouble::emit(GlobalContext *Ctx) const; |
530 | 532 |
531 } // end of namespace Ice | 533 } // end of namespace Ice |
532 | 534 |
533 #endif // SUBZERO_SRC_ICETARGETLOWERINGX8632_H | 535 #endif // SUBZERO_SRC_ICETARGETLOWERINGX8632_H |
OLD | NEW |