mirror of
https://github.com/RPCS3/llvm.git
synced 2024-12-27 22:55:15 +00:00
add support for custom lowering SINT_TO_FP
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@24531 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
e26673143a
commit
5b5b8c2755
@ -1956,6 +1956,19 @@ SDOperand SelectionDAGLegalize::LegalizeOp(SDOperand Op) {
|
||||
return Result;
|
||||
case TargetLowering::Legal:
|
||||
break;
|
||||
case TargetLowering::Custom: {
|
||||
Tmp1 = LegalizeOp(Node->getOperand(0));
|
||||
SDOperand Tmp =
|
||||
DAG.getNode(Node->getOpcode(), Node->getValueType(0), Tmp1);
|
||||
Tmp = TLI.LowerOperation(Tmp, DAG);
|
||||
if (Tmp.Val) {
|
||||
AddLegalizedOperand(Op, Tmp);
|
||||
NeedsAnotherIteration = true;
|
||||
return Tmp;
|
||||
} else {
|
||||
assert(0 && "Target Must Lower this");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Tmp1 = LegalizeOp(Node->getOperand(0));
|
||||
|
Loading…
Reference in New Issue
Block a user