| OLD | NEW |
| 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 589 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 600 | 600 |
| 601 void TargetMIPS32::lowerLoad(const InstLoad *Inst) { | 601 void TargetMIPS32::lowerLoad(const InstLoad *Inst) { |
| 602 (void)Inst; | 602 (void)Inst; |
| 603 UnimplementedError(Func->getContext()->getFlags()); | 603 UnimplementedError(Func->getContext()->getFlags()); |
| 604 } | 604 } |
| 605 | 605 |
| 606 void TargetMIPS32::doAddressOptLoad() { | 606 void TargetMIPS32::doAddressOptLoad() { |
| 607 UnimplementedError(Func->getContext()->getFlags()); | 607 UnimplementedError(Func->getContext()->getFlags()); |
| 608 } | 608 } |
| 609 | 609 |
| 610 void TargetMIPS32::randomlyInsertNop(float Probability) { | 610 void TargetMIPS32::randomlyInsertNop(float Probability, |
| 611 RandomNumberGeneratorWrapper RNG(Ctx->getRNG()); | 611 RandomNumberGenerator &RNG) { |
| 612 if (RNG.getTrueWithProbability(Probability)) { | 612 RandomNumberGeneratorWrapper RNGW(RNG); |
| 613 if (RNGW.getTrueWithProbability(Probability)) { |
| 613 UnimplementedError(Func->getContext()->getFlags()); | 614 UnimplementedError(Func->getContext()->getFlags()); |
| 614 } | 615 } |
| 615 } | 616 } |
| 616 | 617 |
| 617 void TargetMIPS32::lowerPhi(const InstPhi * /*Inst*/) { | 618 void TargetMIPS32::lowerPhi(const InstPhi * /*Inst*/) { |
| 618 Func->setError("Phi found in regular instruction list"); | 619 Func->setError("Phi found in regular instruction list"); |
| 619 } | 620 } |
| 620 | 621 |
| 621 void TargetMIPS32::lowerRet(const InstRet *Inst) { | 622 void TargetMIPS32::lowerRet(const InstRet *Inst) { |
| 622 Variable *Reg = nullptr; | 623 Variable *Reg = nullptr; |
| (...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 714 void TargetDataMIPS32::lowerJumpTables() { | 715 void TargetDataMIPS32::lowerJumpTables() { |
| 715 if (Ctx->getFlags().getDisableTranslation()) | 716 if (Ctx->getFlags().getDisableTranslation()) |
| 716 return; | 717 return; |
| 717 UnimplementedError(Ctx->getFlags()); | 718 UnimplementedError(Ctx->getFlags()); |
| 718 } | 719 } |
| 719 | 720 |
| 720 TargetHeaderMIPS32::TargetHeaderMIPS32(GlobalContext *Ctx) | 721 TargetHeaderMIPS32::TargetHeaderMIPS32(GlobalContext *Ctx) |
| 721 : TargetHeaderLowering(Ctx) {} | 722 : TargetHeaderLowering(Ctx) {} |
| 722 | 723 |
| 723 } // end of namespace Ice | 724 } // end of namespace Ice |
| OLD | NEW |