Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(742)

Side by Side Diff: src/IceTargetLoweringARM32.cpp

Issue 2432373002: [SubZero] Fix f64 to/from i64 moves (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: Created 4 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | src/IceTargetLoweringMIPS32.cpp » ('j') | src/IceTargetLoweringMIPS32.cpp » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 4954 matching lines...) Expand 10 before | Expand all | Expand 10 after
4965 legalize(Ctx->getConstantZero(IceType_i32), Legal_Reg | Legal_Flex); 4965 legalize(Ctx->getConstantZero(IceType_i32), Legal_Reg | Legal_Flex);
4966 _mov(T, _0); 4966 _mov(T, _0);
4967 _mov(DestHi, T); 4967 _mov(DestHi, T);
4968 } 4968 }
4969 4969
4970 void TargetARM32::lowerIntrinsicCall(const InstIntrinsicCall *Instr) { 4970 void TargetARM32::lowerIntrinsicCall(const InstIntrinsicCall *Instr) {
4971 Variable *Dest = Instr->getDest(); 4971 Variable *Dest = Instr->getDest();
4972 Type DestTy = (Dest != nullptr) ? Dest->getType() : IceType_void; 4972 Type DestTy = (Dest != nullptr) ? Dest->getType() : IceType_void;
4973 Intrinsics::IntrinsicID ID = Instr->getIntrinsicInfo().ID; 4973 Intrinsics::IntrinsicID ID = Instr->getIntrinsicInfo().ID;
4974 switch (ID) { 4974 switch (ID) {
4975 default:
4976 llvm::report_fatal_error("Unexpected intrinsic");
4977 return;
4978 case Intrinsics::AtomicFence: 4975 case Intrinsics::AtomicFence:
4979 case Intrinsics::AtomicFenceAll: 4976 case Intrinsics::AtomicFenceAll:
4980 assert(Dest == nullptr); 4977 assert(Dest == nullptr);
4981 _dmb(); 4978 _dmb();
4982 return; 4979 return;
4983 case Intrinsics::AtomicIsLockFree: { 4980 case Intrinsics::AtomicIsLockFree: {
4984 Operand *ByteSize = Instr->getArg(0); 4981 Operand *ByteSize = Instr->getArg(0);
4985 auto *CI = llvm::dyn_cast<ConstantInteger32>(ByteSize); 4982 auto *CI = llvm::dyn_cast<ConstantInteger32>(ByteSize);
4986 if (CI == nullptr) { 4983 if (CI == nullptr) {
4987 // The PNaCl ABI requires the byte size to be a compile-time constant. 4984 // The PNaCl ABI requires the byte size to be a compile-time constant.
(...skipping 2170 matching lines...) Expand 10 before | Expand all | Expand 10 after
7158 // However, for compatibility with current NaCl LLVM, don't claim that. 7155 // However, for compatibility with current NaCl LLVM, don't claim that.
7159 Str << ".eabi_attribute 14, 3 @ Tag_ABI_PCS_R9_use: Not used\n"; 7156 Str << ".eabi_attribute 14, 3 @ Tag_ABI_PCS_R9_use: Not used\n";
7160 } 7157 }
7161 7158
7162 SmallBitVector TargetARM32::TypeToRegisterSet[RegARM32::RCARM32_NUM]; 7159 SmallBitVector TargetARM32::TypeToRegisterSet[RegARM32::RCARM32_NUM];
7163 SmallBitVector TargetARM32::TypeToRegisterSetUnfiltered[RegARM32::RCARM32_NUM]; 7160 SmallBitVector TargetARM32::TypeToRegisterSetUnfiltered[RegARM32::RCARM32_NUM];
7164 SmallBitVector TargetARM32::RegisterAliases[RegARM32::Reg_NUM]; 7161 SmallBitVector TargetARM32::RegisterAliases[RegARM32::Reg_NUM];
7165 7162
7166 } // end of namespace ARM32 7163 } // end of namespace ARM32
7167 } // end of namespace Ice 7164 } // end of namespace Ice
OLDNEW
« no previous file with comments | « no previous file | src/IceTargetLoweringMIPS32.cpp » ('j') | src/IceTargetLoweringMIPS32.cpp » ('J')

Powered by Google App Engine
This is Rietveld 408576698