| OLD | NEW |
| 1 //===- subzero/src/IceTargetLoweringX8632.cpp - x86-32 lowering -----------===// | 1 //===- subzero/src/IceTargetLoweringX8632.cpp - x86-32 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 // This file implements the TargetLoweringX8632 class, which | 10 // This file implements the TargetLoweringX8632 class, which |
| (...skipping 4101 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4112 NextCast->getSrc(0) == SignExtendedResult) { | 4112 NextCast->getSrc(0) == SignExtendedResult) { |
| 4113 NextCast->setDeleted(); | 4113 NextCast->setDeleted(); |
| 4114 _movp(NextCast->getDest(), legalizeToVar(SignExtendedResult)); | 4114 _movp(NextCast->getDest(), legalizeToVar(SignExtendedResult)); |
| 4115 // Skip over the instruction. | 4115 // Skip over the instruction. |
| 4116 Context.advanceNext(); | 4116 Context.advanceNext(); |
| 4117 } | 4117 } |
| 4118 } | 4118 } |
| 4119 } | 4119 } |
| 4120 | 4120 |
| 4121 void TargetX8632::lowerUnreachable(const InstUnreachable * /*Inst*/) { | 4121 void TargetX8632::lowerUnreachable(const InstUnreachable * /*Inst*/) { |
| 4122 const SizeT MaxSrcs = 0; | 4122 _ud2(); |
| 4123 Variable *Dest = nullptr; | |
| 4124 InstCall *Call = makeHelperCall("ice_unreachable", Dest, MaxSrcs); | |
| 4125 lowerCall(Call); | |
| 4126 } | 4123 } |
| 4127 | 4124 |
| 4128 // Turn an i64 Phi instruction into a pair of i32 Phi instructions, to | 4125 // Turn an i64 Phi instruction into a pair of i32 Phi instructions, to |
| 4129 // preserve integrity of liveness analysis. Undef values are also | 4126 // preserve integrity of liveness analysis. Undef values are also |
| 4130 // turned into zeroes, since loOperand() and hiOperand() don't expect | 4127 // turned into zeroes, since loOperand() and hiOperand() don't expect |
| 4131 // Undef input. | 4128 // Undef input. |
| 4132 void TargetX8632::prelowerPhis() { | 4129 void TargetX8632::prelowerPhis() { |
| 4133 CfgNode *Node = Context.getNode(); | 4130 CfgNode *Node = Context.getNode(); |
| 4134 for (Inst &I : Node->getPhis()) { | 4131 for (Inst &I : Node->getPhis()) { |
| 4135 auto Phi = llvm::dyn_cast<InstPhi>(&I); | 4132 auto Phi = llvm::dyn_cast<InstPhi>(&I); |
| (...skipping 635 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4771 case FT_Asm: | 4768 case FT_Asm: |
| 4772 case FT_Iasm: { | 4769 case FT_Iasm: { |
| 4773 OstreamLocker L(Ctx); | 4770 OstreamLocker L(Ctx); |
| 4774 emitConstantPool<PoolTypeConverter<float>>(Ctx); | 4771 emitConstantPool<PoolTypeConverter<float>>(Ctx); |
| 4775 emitConstantPool<PoolTypeConverter<double>>(Ctx); | 4772 emitConstantPool<PoolTypeConverter<double>>(Ctx); |
| 4776 } break; | 4773 } break; |
| 4777 } | 4774 } |
| 4778 } | 4775 } |
| 4779 | 4776 |
| 4780 } // end of namespace Ice | 4777 } // end of namespace Ice |
| OLD | NEW |