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 165 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
176 return MaxOutArgsSizeBytes; | 176 return MaxOutArgsSizeBytes; |
177 } | 177 } |
178 virtual void updateMaxOutArgsSizeBytes(uint32_t Size) { | 178 virtual void updateMaxOutArgsSizeBytes(uint32_t Size) { |
179 MaxOutArgsSizeBytes = std::max(MaxOutArgsSizeBytes, Size); | 179 MaxOutArgsSizeBytes = std::max(MaxOutArgsSizeBytes, Size); |
180 } | 180 } |
181 | 181 |
182 bool shouldSplitToVariable64On32(Type Ty) const override { | 182 bool shouldSplitToVariable64On32(Type Ty) const override { |
183 return Traits::Is64Bit ? false : Ty == IceType_i64; | 183 return Traits::Is64Bit ? false : Ty == IceType_i64; |
184 } | 184 } |
185 | 185 |
| 186 bool shouldSplitToVariableVecOn32(Type Ty) const override { |
| 187 (void)Ty; |
| 188 return false; |
| 189 } |
| 190 |
186 ConstantRelocatable *createGetIPForRegister(const Variable *Dest) { | 191 ConstantRelocatable *createGetIPForRegister(const Variable *Dest) { |
187 assert(Dest->hasReg()); | 192 assert(Dest->hasReg()); |
188 const std::string RegName = Traits::getRegName(Dest->getRegNum()); | 193 const std::string RegName = Traits::getRegName(Dest->getRegNum()); |
189 return llvm::cast<ConstantRelocatable>(Ctx->getConstantExternSym( | 194 return llvm::cast<ConstantRelocatable>(Ctx->getConstantExternSym( |
190 Ctx->getGlobalString(H_getIP_prefix + RegName))); | 195 Ctx->getGlobalString(H_getIP_prefix + RegName))); |
191 } | 196 } |
192 | 197 |
193 SizeT getMinJumpTableSize() const override { return 4; } | 198 SizeT getMinJumpTableSize() const override { return 4; } |
194 | 199 |
195 void emitVariable(const Variable *Var) const override; | 200 void emitVariable(const Variable *Var) const override; |
(...skipping 983 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1179 | 1184 |
1180 explicit TargetHeaderX86(GlobalContext *Ctx) : TargetHeaderLowering(Ctx) {} | 1185 explicit TargetHeaderX86(GlobalContext *Ctx) : TargetHeaderLowering(Ctx) {} |
1181 }; | 1186 }; |
1182 | 1187 |
1183 } // end of namespace X86NAMESPACE | 1188 } // end of namespace X86NAMESPACE |
1184 } // end of namespace Ice | 1189 } // end of namespace Ice |
1185 | 1190 |
1186 #include "IceTargetLoweringX86BaseImpl.h" | 1191 #include "IceTargetLoweringX86BaseImpl.h" |
1187 | 1192 |
1188 #endif // SUBZERO_SRC_ICETARGETLOWERINGX86BASE_H | 1193 #endif // SUBZERO_SRC_ICETARGETLOWERINGX86BASE_H |
OLD | NEW |