OLD | NEW |
1 //===- subzero/src/IceTargetLoweringARM32.cpp - ARM32 lowering ------------===// | 1 //===- subzero/src/IceTargetLoweringARM32.cpp - ARM32 lowering ------------===// |
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 256 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
267 #define X(val, encode, name, cc_arg, scratch, preserved, stackptr, frameptr, \ | 267 #define X(val, encode, name, cc_arg, scratch, preserved, stackptr, frameptr, \ |
268 isGPR, isInt, isI64Pair, isFP32, isFP64, isVec128, alias_init) \ | 268 isGPR, isInt, isI64Pair, isFP32, isFP64, isVec128, alias_init) \ |
269 +(((cc_arg > 0)) ? 1 : 0) | 269 +(((cc_arg > 0)) ? 1 : 0) |
270 REGARM32_VEC128_TABLE | 270 REGARM32_VEC128_TABLE |
271 #undef X | 271 #undef X |
272 ; | 272 ; |
273 std::array<uint32_t, NumVec128Args> Vec128ArgInitializer; | 273 std::array<uint32_t, NumVec128Args> Vec128ArgInitializer; |
274 } // end of anonymous namespace | 274 } // end of anonymous namespace |
275 | 275 |
276 TargetARM32::TargetARM32(Cfg *Func) | 276 TargetARM32::TargetARM32(Cfg *Func) |
277 : TargetLowering(Func), NeedSandboxing(Ctx->getFlags().getUseSandboxing()), | 277 : TargetLowering(Func), NeedSandboxing(SandboxingType == ST_NaCl), |
278 CPUFeatures(Func->getContext()->getFlags()) {} | 278 CPUFeatures(Func->getContext()->getFlags()) {} |
279 | 279 |
280 void TargetARM32::staticInit(GlobalContext *Ctx) { | 280 void TargetARM32::staticInit(GlobalContext *Ctx) { |
281 | 281 |
282 // Limit this size (or do all bitsets need to be the same width)??? | 282 // Limit this size (or do all bitsets need to be the same width)??? |
283 llvm::SmallBitVector IntegerRegisters(RegARM32::Reg_NUM); | 283 llvm::SmallBitVector IntegerRegisters(RegARM32::Reg_NUM); |
284 llvm::SmallBitVector I64PairRegisters(RegARM32::Reg_NUM); | 284 llvm::SmallBitVector I64PairRegisters(RegARM32::Reg_NUM); |
285 llvm::SmallBitVector Float32Registers(RegARM32::Reg_NUM); | 285 llvm::SmallBitVector Float32Registers(RegARM32::Reg_NUM); |
286 llvm::SmallBitVector Float64Registers(RegARM32::Reg_NUM); | 286 llvm::SmallBitVector Float64Registers(RegARM32::Reg_NUM); |
287 llvm::SmallBitVector VectorRegisters(RegARM32::Reg_NUM); | 287 llvm::SmallBitVector VectorRegisters(RegARM32::Reg_NUM); |
(...skipping 6165 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6453 // Technically R9 is used for TLS with Sandboxing, and we reserve it. | 6453 // Technically R9 is used for TLS with Sandboxing, and we reserve it. |
6454 // However, for compatibility with current NaCl LLVM, don't claim that. | 6454 // However, for compatibility with current NaCl LLVM, don't claim that. |
6455 Str << ".eabi_attribute 14, 3 @ Tag_ABI_PCS_R9_use: Not used\n"; | 6455 Str << ".eabi_attribute 14, 3 @ Tag_ABI_PCS_R9_use: Not used\n"; |
6456 } | 6456 } |
6457 | 6457 |
6458 llvm::SmallBitVector TargetARM32::TypeToRegisterSet[IceType_NUM]; | 6458 llvm::SmallBitVector TargetARM32::TypeToRegisterSet[IceType_NUM]; |
6459 llvm::SmallBitVector TargetARM32::RegisterAliases[RegARM32::Reg_NUM]; | 6459 llvm::SmallBitVector TargetARM32::RegisterAliases[RegARM32::Reg_NUM]; |
6460 | 6460 |
6461 } // end of namespace ARM32 | 6461 } // end of namespace ARM32 |
6462 } // end of namespace Ice | 6462 } // end of namespace Ice |
OLD | NEW |