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

Side by Side Diff: src/IceTargetLoweringMIPS32.cpp

Issue 1253833002: Subzero: Cleanly implement register allocation after phi lowering. (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: Cleanup Created 5 years, 5 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/IceTargetLoweringMIPS32.cpp - MIPS32 lowering ----------===// 1 //===- subzero/src/IceTargetLoweringMIPS32.cpp - MIPS32 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 630 matching lines...) Expand 10 before | Expand all | Expand 10 after
641 } 641 }
642 642
643 // Turn an i64 Phi instruction into a pair of i32 Phi instructions, to 643 // Turn an i64 Phi instruction into a pair of i32 Phi instructions, to
644 // preserve integrity of liveness analysis. Undef values are also 644 // preserve integrity of liveness analysis. Undef values are also
645 // turned into zeroes, since loOperand() and hiOperand() don't expect 645 // turned into zeroes, since loOperand() and hiOperand() don't expect
646 // Undef input. 646 // Undef input.
647 void TargetMIPS32::prelowerPhis() { 647 void TargetMIPS32::prelowerPhis() {
648 UnimplementedError(Func->getContext()->getFlags()); 648 UnimplementedError(Func->getContext()->getFlags());
649 } 649 }
650 650
651 // Lower the pre-ordered list of assignments into mov instructions.
652 // Also has to do some ad-hoc register allocation as necessary.
653 void TargetMIPS32::lowerPhiAssignments(CfgNode *Node,
654 const AssignList &Assignments) {
655 (void)Node;
656 (void)Assignments;
657 UnimplementedError(Func->getContext()->getFlags());
658 }
659
660 void TargetMIPS32::postLower() { 651 void TargetMIPS32::postLower() {
661 if (Ctx->getFlags().getOptLevel() == Opt_m1) 652 if (Ctx->getFlags().getOptLevel() == Opt_m1)
662 return; 653 return;
663 // Find two-address non-SSA instructions where Dest==Src0, and set 654 // Find two-address non-SSA instructions where Dest==Src0, and set
664 // the DestNonKillable flag to keep liveness analysis consistent. 655 // the DestNonKillable flag to keep liveness analysis consistent.
665 UnimplementedError(Func->getContext()->getFlags()); 656 UnimplementedError(Func->getContext()->getFlags());
666 } 657 }
667 658
668 void TargetMIPS32::makeRandomRegisterPermutation( 659 void TargetMIPS32::makeRandomRegisterPermutation(
669 llvm::SmallVectorImpl<int32_t> &Permutation, 660 llvm::SmallVectorImpl<int32_t> &Permutation,
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
709 void TargetDataMIPS32::lowerConstants() { 700 void TargetDataMIPS32::lowerConstants() {
710 if (Ctx->getFlags().getDisableTranslation()) 701 if (Ctx->getFlags().getDisableTranslation())
711 return; 702 return;
712 UnimplementedError(Ctx->getFlags()); 703 UnimplementedError(Ctx->getFlags());
713 } 704 }
714 705
715 TargetHeaderMIPS32::TargetHeaderMIPS32(GlobalContext *Ctx) 706 TargetHeaderMIPS32::TargetHeaderMIPS32(GlobalContext *Ctx)
716 : TargetHeaderLowering(Ctx) {} 707 : TargetHeaderLowering(Ctx) {}
717 708
718 } // end of namespace Ice 709 } // end of namespace Ice
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698