| OLD | NEW |
| 1 //===- subzero/src/IceTargetLoweringX86Base.h - x86 lowering ----*- C++ -*-===// | 1 //===- subzero/src/IceTargetLoweringX86Base.h - x86 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 /// \file | 10 /// \file |
| (...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 91 | 91 |
| 92 void emitVariable(const Variable *Var) const override; | 92 void emitVariable(const Variable *Var) const override; |
| 93 | 93 |
| 94 const char *getConstantPrefix() const final { return "$"; } | 94 const char *getConstantPrefix() const final { return "$"; } |
| 95 void emit(const ConstantUndef *C) const final; | 95 void emit(const ConstantUndef *C) const final; |
| 96 void emit(const ConstantInteger32 *C) const final; | 96 void emit(const ConstantInteger32 *C) const final; |
| 97 void emit(const ConstantInteger64 *C) const final; | 97 void emit(const ConstantInteger64 *C) const final; |
| 98 void emit(const ConstantFloat *C) const final; | 98 void emit(const ConstantFloat *C) const final; |
| 99 void emit(const ConstantDouble *C) const final; | 99 void emit(const ConstantDouble *C) const final; |
| 100 | 100 |
| 101 void lowerArguments() override; | |
| 102 void initNodeForLowering(CfgNode *Node) override; | 101 void initNodeForLowering(CfgNode *Node) override; |
| 103 void addProlog(CfgNode *Node) override; | |
| 104 void addEpilog(CfgNode *Node) override; | |
| 105 /// Ensure that a 64-bit Variable has been split into 2 32-bit | 102 /// Ensure that a 64-bit Variable has been split into 2 32-bit |
| 106 /// Variables, creating them if necessary. This is needed for all | 103 /// Variables, creating them if necessary. This is needed for all |
| 107 /// I64 operations, and it is needed for pushing F64 arguments for | 104 /// I64 operations, and it is needed for pushing F64 arguments for |
| 108 /// function calls using the 32-bit push instruction (though the | 105 /// function calls using the 32-bit push instruction (though the |
| 109 /// latter could be done by directly writing to the stack). | 106 /// latter could be done by directly writing to the stack). |
| 110 void split64(Variable *Var); | 107 void split64(Variable *Var); |
| 111 Operand *loOperand(Operand *Operand); | 108 Operand *loOperand(Operand *Operand); |
| 112 Operand *hiOperand(Operand *Operand); | 109 Operand *hiOperand(Operand *Operand); |
| 113 void finishArgumentLowering(Variable *Arg, Variable *FramePtr, | 110 void finishArgumentLowering(Variable *Arg, Variable *FramePtr, |
| 114 size_t BasicFrameOffset, size_t &InArgsSizeBytes); | 111 size_t BasicFrameOffset, size_t &InArgsSizeBytes); |
| (...skipping 14 matching lines...) Expand all Loading... |
| 129 void lowerAssign(const InstAssign *Inst) override; | 126 void lowerAssign(const InstAssign *Inst) override; |
| 130 void lowerBr(const InstBr *Inst) override; | 127 void lowerBr(const InstBr *Inst) override; |
| 131 void lowerCast(const InstCast *Inst) override; | 128 void lowerCast(const InstCast *Inst) override; |
| 132 void lowerExtractElement(const InstExtractElement *Inst) override; | 129 void lowerExtractElement(const InstExtractElement *Inst) override; |
| 133 void lowerFcmp(const InstFcmp *Inst) override; | 130 void lowerFcmp(const InstFcmp *Inst) override; |
| 134 void lowerIcmp(const InstIcmp *Inst) override; | 131 void lowerIcmp(const InstIcmp *Inst) override; |
| 135 void lowerIntrinsicCall(const InstIntrinsicCall *Inst) override; | 132 void lowerIntrinsicCall(const InstIntrinsicCall *Inst) override; |
| 136 void lowerInsertElement(const InstInsertElement *Inst) override; | 133 void lowerInsertElement(const InstInsertElement *Inst) override; |
| 137 void lowerLoad(const InstLoad *Inst) override; | 134 void lowerLoad(const InstLoad *Inst) override; |
| 138 void lowerPhi(const InstPhi *Inst) override; | 135 void lowerPhi(const InstPhi *Inst) override; |
| 139 void lowerRet(const InstRet *Inst) override; | |
| 140 void lowerSelect(const InstSelect *Inst) override; | 136 void lowerSelect(const InstSelect *Inst) override; |
| 141 void lowerStore(const InstStore *Inst) override; | 137 void lowerStore(const InstStore *Inst) override; |
| 142 void lowerSwitch(const InstSwitch *Inst) override; | 138 void lowerSwitch(const InstSwitch *Inst) override; |
| 143 void lowerUnreachable(const InstUnreachable *Inst) override; | 139 void lowerUnreachable(const InstUnreachable *Inst) override; |
| 144 void lowerOther(const Inst *Instr) override; | 140 void lowerOther(const Inst *Instr) override; |
| 145 void lowerRMW(const typename Traits::Insts::FakeRMW *RMW); | 141 void lowerRMW(const typename Traits::Insts::FakeRMW *RMW); |
| 146 void prelowerPhis() override; | 142 void prelowerPhis() override; |
| 147 void doAddressOptLoad() override; | 143 void doAddressOptLoad() override; |
| 148 void doAddressOptStore() override; | 144 void doAddressOptStore() override; |
| 149 void randomlyInsertNop(float Probability) override; | 145 void randomlyInsertNop(float Probability) override; |
| (...skipping 477 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 627 } | 623 } |
| 628 | 624 |
| 629 BoolFolding FoldingInfo; | 625 BoolFolding FoldingInfo; |
| 630 }; | 626 }; |
| 631 } // end of namespace X86Internal | 627 } // end of namespace X86Internal |
| 632 } // end of namespace Ice | 628 } // end of namespace Ice |
| 633 | 629 |
| 634 #include "IceTargetLoweringX86BaseImpl.h" | 630 #include "IceTargetLoweringX86BaseImpl.h" |
| 635 | 631 |
| 636 #endif // SUBZERO_SRC_ICETARGETLOWERINGX86BASE_H | 632 #endif // SUBZERO_SRC_ICETARGETLOWERINGX86BASE_H |
| OLD | NEW |