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

Side by Side Diff: src/IceTargetLoweringARM32.cpp

Issue 1670413002: Add NOP to ARM IR lowering. (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: Add test case. Created 4 years, 10 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
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 5295 matching lines...) Expand 10 before | Expand all | Expand 10 after
5306 formAddressingMode(Dest->getType(), Func, Instr, Addr)) { 5306 formAddressingMode(Dest->getType(), Func, Instr, Addr)) {
5307 Instr->setDeleted(); 5307 Instr->setDeleted();
5308 Context.insert<InstLoad>(Dest, Mem); 5308 Context.insert<InstLoad>(Dest, Mem);
5309 } 5309 }
5310 } 5310 }
5311 5311
5312 void TargetARM32::randomlyInsertNop(float Probability, 5312 void TargetARM32::randomlyInsertNop(float Probability,
5313 RandomNumberGenerator &RNG) { 5313 RandomNumberGenerator &RNG) {
5314 RandomNumberGeneratorWrapper RNGW(RNG); 5314 RandomNumberGeneratorWrapper RNGW(RNG);
5315 if (RNGW.getTrueWithProbability(Probability)) { 5315 if (RNGW.getTrueWithProbability(Probability)) {
5316 UnimplementedError(Func->getContext()->getFlags()); 5316 _nop();
5317 } 5317 }
5318 } 5318 }
5319 5319
5320 void TargetARM32::lowerPhi(const InstPhi * /*Instr*/) { 5320 void TargetARM32::lowerPhi(const InstPhi * /*Instr*/) {
5321 Func->setError("Phi found in regular instruction list"); 5321 Func->setError("Phi found in regular instruction list");
5322 } 5322 }
5323 5323
5324 void TargetARM32::lowerRet(const InstRet *Instr) { 5324 void TargetARM32::lowerRet(const InstRet *Instr) {
5325 Variable *Reg = nullptr; 5325 Variable *Reg = nullptr;
5326 if (Instr->hasRetValue()) { 5326 if (Instr->hasRetValue()) {
(...skipping 1197 matching lines...) Expand 10 before | Expand all | Expand 10 after
6524 Str << ".eabi_attribute 14, 3 @ Tag_ABI_PCS_R9_use: Not used\n"; 6524 Str << ".eabi_attribute 14, 3 @ Tag_ABI_PCS_R9_use: Not used\n";
6525 } 6525 }
6526 6526
6527 llvm::SmallBitVector TargetARM32::TypeToRegisterSet[RegARM32::RCARM32_NUM]; 6527 llvm::SmallBitVector TargetARM32::TypeToRegisterSet[RegARM32::RCARM32_NUM];
6528 llvm::SmallBitVector 6528 llvm::SmallBitVector
6529 TargetARM32::TypeToRegisterSetUnfiltered[RegARM32::RCARM32_NUM]; 6529 TargetARM32::TypeToRegisterSetUnfiltered[RegARM32::RCARM32_NUM];
6530 llvm::SmallBitVector TargetARM32::RegisterAliases[RegARM32::Reg_NUM]; 6530 llvm::SmallBitVector TargetARM32::RegisterAliases[RegARM32::Reg_NUM];
6531 6531
6532 } // end of namespace ARM32 6532 } // end of namespace ARM32
6533 } // end of namespace Ice 6533 } // end of namespace Ice
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698