| 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 223 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 234 dispatchToConcrete(&Traits::ConcreteTarget::initRebasePtr); | 234 dispatchToConcrete(&Traits::ConcreteTarget::initRebasePtr); |
| 235 } | 235 } |
| 236 | 236 |
| 237 /// Emit code that initializes the value of the RebasePtr near the start of | 237 /// Emit code that initializes the value of the RebasePtr near the start of |
| 238 /// the function -- if so required by SandboxingType for the concrete type. | 238 /// the function -- if so required by SandboxingType for the concrete type. |
| 239 void initSandbox() { | 239 void initSandbox() { |
| 240 assert(SandboxingType != ST_None); | 240 assert(SandboxingType != ST_None); |
| 241 dispatchToConcrete(&Traits::ConcreteTarget::initSandbox); | 241 dispatchToConcrete(&Traits::ConcreteTarget::initSandbox); |
| 242 } | 242 } |
| 243 | 243 |
| 244 void lowerAlloca(const InstAlloca *Inst) override; | 244 void lowerAlloca(const InstAlloca *Instr) override; |
| 245 void lowerArguments() override; | 245 void lowerArguments() override; |
| 246 void lowerArithmetic(const InstArithmetic *Inst) override; | 246 void lowerArithmetic(const InstArithmetic *Instr) override; |
| 247 void lowerAssign(const InstAssign *Inst) override; | 247 void lowerAssign(const InstAssign *Instr) override; |
| 248 void lowerBr(const InstBr *Inst) override; | 248 void lowerBr(const InstBr *Instr) override; |
| 249 void lowerCall(const InstCall *Inst) override; | 249 void lowerCall(const InstCall *Instr) override; |
| 250 void lowerCast(const InstCast *Inst) override; | 250 void lowerCast(const InstCast *Instr) override; |
| 251 void lowerExtractElement(const InstExtractElement *Inst) override; | 251 void lowerExtractElement(const InstExtractElement *Instr) override; |
| 252 void lowerFcmp(const InstFcmp *Inst) override; | 252 void lowerFcmp(const InstFcmp *Instr) override; |
| 253 void lowerIcmp(const InstIcmp *Inst) override; | 253 void lowerIcmp(const InstIcmp *Instr) override; |
| 254 | 254 |
| 255 void lowerIntrinsicCall(const InstIntrinsicCall *Inst) override; | 255 void lowerIntrinsicCall(const InstIntrinsicCall *Instr) override; |
| 256 void lowerInsertElement(const InstInsertElement *Inst) override; | 256 void lowerInsertElement(const InstInsertElement *Instr) override; |
| 257 void lowerLoad(const InstLoad *Inst) override; | 257 void lowerLoad(const InstLoad *Instr) override; |
| 258 void lowerPhi(const InstPhi *Inst) override; | 258 void lowerPhi(const InstPhi *Instr) override; |
| 259 void lowerRet(const InstRet *Inst) override; | 259 void lowerRet(const InstRet *Instr) override; |
| 260 void lowerSelect(const InstSelect *Inst) override; | 260 void lowerSelect(const InstSelect *Instr) override; |
| 261 void lowerStore(const InstStore *Inst) override; | 261 void lowerStore(const InstStore *Instr) override; |
| 262 void lowerSwitch(const InstSwitch *Inst) override; | 262 void lowerSwitch(const InstSwitch *Instr) override; |
| 263 void lowerUnreachable(const InstUnreachable *Inst) override; | 263 void lowerUnreachable(const InstUnreachable *Instr) override; |
| 264 void lowerOther(const Inst *Instr) override; | 264 void lowerOther(const Inst *Instr) override; |
| 265 void lowerRMW(const InstX86FakeRMW *RMW); | 265 void lowerRMW(const InstX86FakeRMW *RMW); |
| 266 void prelowerPhis() override; | 266 void prelowerPhis() override; |
| 267 uint32_t getCallStackArgumentsSizeBytes(const std::vector<Type> &ArgTypes, | 267 uint32_t getCallStackArgumentsSizeBytes(const std::vector<Type> &ArgTypes, |
| 268 Type ReturnType); | 268 Type ReturnType); |
| 269 uint32_t getCallStackArgumentsSizeBytes(const InstCall *Instr) override; | 269 uint32_t getCallStackArgumentsSizeBytes(const InstCall *Instr) override; |
| 270 void genTargetHelperCallFor(Inst *Instr) override; | 270 void genTargetHelperCallFor(Inst *Instr) override; |
| 271 | 271 |
| 272 /// OptAddr wraps all the possible operands that an x86 address might have. | 272 /// OptAddr wraps all the possible operands that an x86 address might have. |
| 273 struct OptAddr { | 273 struct OptAddr { |
| (...skipping 772 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1046 /// specialized version of Consumer. | 1046 /// specialized version of Consumer. |
| 1047 void setccOrConsumer(BrCond Condition, Variable *Dest, const Inst *Consumer); | 1047 void setccOrConsumer(BrCond Condition, Variable *Dest, const Inst *Consumer); |
| 1048 | 1048 |
| 1049 /// Emit a mov [1|0] instruction if Consumer == nullptr; otherwise emit a | 1049 /// Emit a mov [1|0] instruction if Consumer == nullptr; otherwise emit a |
| 1050 /// specialized version of Consumer. | 1050 /// specialized version of Consumer. |
| 1051 void movOrConsumer(bool IcmpResult, Variable *Dest, const Inst *Consumer); | 1051 void movOrConsumer(bool IcmpResult, Variable *Dest, const Inst *Consumer); |
| 1052 | 1052 |
| 1053 /// Emit the code for instructions with a vector type. | 1053 /// Emit the code for instructions with a vector type. |
| 1054 void lowerIcmpVector(const InstIcmp *Icmp); | 1054 void lowerIcmpVector(const InstIcmp *Icmp); |
| 1055 void lowerFcmpVector(const InstFcmp *Icmp); | 1055 void lowerFcmpVector(const InstFcmp *Icmp); |
| 1056 void lowerSelectVector(const InstSelect *Inst); | 1056 void lowerSelectVector(const InstSelect *Instr); |
| 1057 | 1057 |
| 1058 /// Helpers for select lowering. | 1058 /// Helpers for select lowering. |
| 1059 void lowerSelectMove(Variable *Dest, BrCond Cond, Operand *SrcT, | 1059 void lowerSelectMove(Variable *Dest, BrCond Cond, Operand *SrcT, |
| 1060 Operand *SrcF); | 1060 Operand *SrcF); |
| 1061 void lowerSelectIntMove(Variable *Dest, BrCond Cond, Operand *SrcT, | 1061 void lowerSelectIntMove(Variable *Dest, BrCond Cond, Operand *SrcT, |
| 1062 Operand *SrcF); | 1062 Operand *SrcF); |
| 1063 /// Generic helper to move an arbitrary type from Src to Dest. | 1063 /// Generic helper to move an arbitrary type from Src to Dest. |
| 1064 void lowerMove(Variable *Dest, Operand *Src, bool IsRedefinition); | 1064 void lowerMove(Variable *Dest, Operand *Src, bool IsRedefinition); |
| 1065 | 1065 |
| 1066 /// Optimizations for idiom recognition. | 1066 /// Optimizations for idiom recognition. |
| (...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1128 | 1128 |
| 1129 explicit TargetHeaderX86(GlobalContext *Ctx) : TargetHeaderLowering(Ctx) {} | 1129 explicit TargetHeaderX86(GlobalContext *Ctx) : TargetHeaderLowering(Ctx) {} |
| 1130 }; | 1130 }; |
| 1131 | 1131 |
| 1132 } // end of namespace X86NAMESPACE | 1132 } // end of namespace X86NAMESPACE |
| 1133 } // end of namespace Ice | 1133 } // end of namespace Ice |
| 1134 | 1134 |
| 1135 #include "IceTargetLoweringX86BaseImpl.h" | 1135 #include "IceTargetLoweringX86BaseImpl.h" |
| 1136 | 1136 |
| 1137 #endif // SUBZERO_SRC_ICETARGETLOWERINGX86BASE_H | 1137 #endif // SUBZERO_SRC_ICETARGETLOWERINGX86BASE_H |
| OLD | NEW |