mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-04-02 07:41:38 +00:00
Unbreak and fix indentation
llvm-svn: 55904
This commit is contained in:
parent
0da56882db
commit
5ea45bb9eb
@ -3115,7 +3115,7 @@ SelectionDAGLowering::visitIntrinsicCall(CallInst &I, unsigned Intrinsic) {
|
|||||||
MachineModuleInfo *MMI = DAG.getMachineModuleInfo();
|
MachineModuleInfo *MMI = DAG.getMachineModuleInfo();
|
||||||
MVT VT = (Intrinsic == Intrinsic::eh_typeid_for_i32 ?
|
MVT VT = (Intrinsic == Intrinsic::eh_typeid_for_i32 ?
|
||||||
MVT::i32 : MVT::i64);
|
MVT::i32 : MVT::i64);
|
||||||
|
|
||||||
if (MMI) {
|
if (MMI) {
|
||||||
// Find the type id for the given typeinfo.
|
// Find the type id for the given typeinfo.
|
||||||
GlobalVariable *GV = ExtractTypeInfo(I.getOperand(1));
|
GlobalVariable *GV = ExtractTypeInfo(I.getOperand(1));
|
||||||
@ -3130,10 +3130,9 @@ SelectionDAGLowering::visitIntrinsicCall(CallInst &I, unsigned Intrinsic) {
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
case Intrinsic::eh_return: {
|
case Intrinsic::eh_return_i32:
|
||||||
MachineModuleInfo *MMI = DAG.getMachineModuleInfo();
|
case Intrinsic::eh_return_i64:
|
||||||
|
if (MachineModuleInfo *MMI = DAG.getMachineModuleInfo()) {
|
||||||
if (MMI) {
|
|
||||||
MMI->setCallsEHReturn(true);
|
MMI->setCallsEHReturn(true);
|
||||||
DAG.setRoot(DAG.getNode(ISD::EH_RETURN,
|
DAG.setRoot(DAG.getNode(ISD::EH_RETURN,
|
||||||
MVT::Other,
|
MVT::Other,
|
||||||
@ -3145,39 +3144,36 @@ SelectionDAGLowering::visitIntrinsicCall(CallInst &I, unsigned Intrinsic) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
case Intrinsic::eh_unwind_init:
|
||||||
|
if (MachineModuleInfo *MMI = DAG.getMachineModuleInfo()) {
|
||||||
|
MMI->setCallsUnwindInit(true);
|
||||||
|
}
|
||||||
|
|
||||||
case Intrinsic::eh_unwind_init: {
|
return 0;
|
||||||
if (MachineModuleInfo *MMI = DAG.getMachineModuleInfo()) {
|
|
||||||
MMI->setCallsUnwindInit(true);
|
|
||||||
}
|
|
||||||
|
|
||||||
return 0;
|
case Intrinsic::eh_dwarf_cfa: {
|
||||||
}
|
MVT VT = getValue(I.getOperand(1)).getValueType();
|
||||||
|
SDValue CfaArg;
|
||||||
|
if (VT.bitsGT(TLI.getPointerTy()))
|
||||||
|
CfaArg = DAG.getNode(ISD::TRUNCATE,
|
||||||
|
TLI.getPointerTy(), getValue(I.getOperand(1)));
|
||||||
|
else
|
||||||
|
CfaArg = DAG.getNode(ISD::SIGN_EXTEND,
|
||||||
|
TLI.getPointerTy(), getValue(I.getOperand(1)));
|
||||||
|
|
||||||
case Intrinsic::eh_dwarf_cfa: {
|
SDValue Offset = DAG.getNode(ISD::ADD,
|
||||||
MVT VT = getValue(I.getOperand(1)).getValueType();
|
TLI.getPointerTy(),
|
||||||
SDValue CfaArg;
|
DAG.getNode(ISD::FRAME_TO_ARGS_OFFSET,
|
||||||
if (VT.bitsGT(TLI.getPointerTy()))
|
TLI.getPointerTy()),
|
||||||
CfaArg = DAG.getNode(ISD::TRUNCATE,
|
CfaArg);
|
||||||
TLI.getPointerTy(), getValue(I.getOperand(1)));
|
setValue(&I, DAG.getNode(ISD::ADD,
|
||||||
else
|
TLI.getPointerTy(),
|
||||||
CfaArg = DAG.getNode(ISD::SIGN_EXTEND,
|
DAG.getNode(ISD::FRAMEADDR,
|
||||||
TLI.getPointerTy(), getValue(I.getOperand(1)));
|
TLI.getPointerTy(),
|
||||||
|
DAG.getConstant(0,
|
||||||
SDValue Offset = DAG.getNode(ISD::ADD,
|
TLI.getPointerTy())),
|
||||||
TLI.getPointerTy(),
|
Offset));
|
||||||
DAG.getNode(ISD::FRAME_TO_ARGS_OFFSET,
|
return 0;
|
||||||
TLI.getPointerTy()),
|
|
||||||
CfaArg);
|
|
||||||
setValue(&I, DAG.getNode(ISD::ADD,
|
|
||||||
TLI.getPointerTy(),
|
|
||||||
DAG.getNode(ISD::FRAMEADDR,
|
|
||||||
TLI.getPointerTy(),
|
|
||||||
DAG.getConstant(0,
|
|
||||||
TLI.getPointerTy())),
|
|
||||||
Offset));
|
|
||||||
return 0;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
case Intrinsic::sqrt:
|
case Intrinsic::sqrt:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user