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

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: Fix nits. 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
« no previous file with comments | « src/IceTargetLoweringARM32.h ('k') | tests_lit/llvm2ice_tests/nop-insertion.ll » ('j') | no next file with comments »
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 5342 matching lines...) Expand 10 before | Expand all | Expand 10 after
5353 formAddressingMode(Dest->getType(), Func, Instr, Addr)) { 5353 formAddressingMode(Dest->getType(), Func, Instr, Addr)) {
5354 Instr->setDeleted(); 5354 Instr->setDeleted();
5355 Context.insert<InstLoad>(Dest, Mem); 5355 Context.insert<InstLoad>(Dest, Mem);
5356 } 5356 }
5357 } 5357 }
5358 5358
5359 void TargetARM32::randomlyInsertNop(float Probability, 5359 void TargetARM32::randomlyInsertNop(float Probability,
5360 RandomNumberGenerator &RNG) { 5360 RandomNumberGenerator &RNG) {
5361 RandomNumberGeneratorWrapper RNGW(RNG); 5361 RandomNumberGeneratorWrapper RNGW(RNG);
5362 if (RNGW.getTrueWithProbability(Probability)) { 5362 if (RNGW.getTrueWithProbability(Probability)) {
5363 UnimplementedError(Func->getContext()->getFlags()); 5363 _nop();
5364 } 5364 }
5365 } 5365 }
5366 5366
5367 void TargetARM32::lowerPhi(const InstPhi * /*Instr*/) { 5367 void TargetARM32::lowerPhi(const InstPhi * /*Instr*/) {
5368 Func->setError("Phi found in regular instruction list"); 5368 Func->setError("Phi found in regular instruction list");
5369 } 5369 }
5370 5370
5371 void TargetARM32::lowerRet(const InstRet *Instr) { 5371 void TargetARM32::lowerRet(const InstRet *Instr) {
5372 Variable *Reg = nullptr; 5372 Variable *Reg = nullptr;
5373 if (Instr->hasRetValue()) { 5373 if (Instr->hasRetValue()) {
(...skipping 1197 matching lines...) Expand 10 before | Expand all | Expand 10 after
6571 Str << ".eabi_attribute 14, 3 @ Tag_ABI_PCS_R9_use: Not used\n"; 6571 Str << ".eabi_attribute 14, 3 @ Tag_ABI_PCS_R9_use: Not used\n";
6572 } 6572 }
6573 6573
6574 llvm::SmallBitVector TargetARM32::TypeToRegisterSet[RegARM32::RCARM32_NUM]; 6574 llvm::SmallBitVector TargetARM32::TypeToRegisterSet[RegARM32::RCARM32_NUM];
6575 llvm::SmallBitVector 6575 llvm::SmallBitVector
6576 TargetARM32::TypeToRegisterSetUnfiltered[RegARM32::RCARM32_NUM]; 6576 TargetARM32::TypeToRegisterSetUnfiltered[RegARM32::RCARM32_NUM];
6577 llvm::SmallBitVector TargetARM32::RegisterAliases[RegARM32::Reg_NUM]; 6577 llvm::SmallBitVector TargetARM32::RegisterAliases[RegARM32::Reg_NUM];
6578 6578
6579 } // end of namespace ARM32 6579 } // end of namespace ARM32
6580 } // end of namespace Ice 6580 } // end of namespace Ice
OLDNEW
« no previous file with comments | « src/IceTargetLoweringARM32.h ('k') | tests_lit/llvm2ice_tests/nop-insertion.ll » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698