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

Side by Side Diff: src/IceTargetLoweringARM32.h

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.h - ARM32 lowering ----*- C++ -*-===// 1 //===- subzero/src/IceTargetLoweringARM32.h - ARM32 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 395 matching lines...) Expand 10 before | Expand all | Expand 10 after
406 auto *Instr = Context.insert<InstARM32Mov>(Dest, Src0, Pred); 406 auto *Instr = Context.insert<InstARM32Mov>(Dest, Src0, Pred);
407 Instr->setDestRedefined(); 407 Instr->setDestRedefined();
408 if (Instr->isMultiDest()) { 408 if (Instr->isMultiDest()) {
409 // If Instr is multi-dest, then Dest must be a Variable64On32. We add a 409 // If Instr is multi-dest, then Dest must be a Variable64On32. We add a
410 // fake-def for Instr.DestHi here. 410 // fake-def for Instr.DestHi here.
411 assert(llvm::isa<Variable64On32>(Dest)); 411 assert(llvm::isa<Variable64On32>(Dest));
412 Context.insert<InstFakeDef>(Instr->getDestHi()); 412 Context.insert<InstFakeDef>(Instr->getDestHi());
413 } 413 }
414 } 414 }
415 415
416 void _nop() { Context.insert<InstARM32Nop>(); }
417
416 // -------------------------------------------------------------------------- 418 // --------------------------------------------------------------------------
417 // Begin bool folding machinery. 419 // Begin bool folding machinery.
418 // 420 //
419 // There are three types of boolean lowerings handled by this target: 421 // There are three types of boolean lowerings handled by this target:
420 // 422 //
421 // 1) Boolean expressions leading to a boolean Variable definition 423 // 1) Boolean expressions leading to a boolean Variable definition
422 // --------------------------------------------------------------- 424 // ---------------------------------------------------------------
423 // 425 //
424 // Whenever a i1 Variable is live out (i.e., its live range extends beyond 426 // Whenever a i1 Variable is live out (i.e., its live range extends beyond
425 // the defining basic block) we do not fold the operation. We instead 427 // the defining basic block) we do not fold the operation. We instead
(...skipping 790 matching lines...) Expand 10 before | Expand all | Expand 10 after
1216 private: 1218 private:
1217 ~TargetHeaderARM32() = default; 1219 ~TargetHeaderARM32() = default;
1218 1220
1219 TargetARM32Features CPUFeatures; 1221 TargetARM32Features CPUFeatures;
1220 }; 1222 };
1221 1223
1222 } // end of namespace ARM32 1224 } // end of namespace ARM32
1223 } // end of namespace Ice 1225 } // end of namespace Ice
1224 1226
1225 #endif // SUBZERO_SRC_ICETARGETLOWERINGARM32_H 1227 #endif // SUBZERO_SRC_ICETARGETLOWERINGARM32_H
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698