diff options
author | Andrew Lenharth <andrewl@lenharth.org> | 2005-11-30 06:43:03 +0000 |
---|---|---|
committer | Andrew Lenharth <andrewl@lenharth.org> | 2005-11-30 06:43:03 +0000 |
commit | 5b5b8c27556e5dc8792e37436e4ddd7ab157192d (patch) | |
tree | 37374add1ae79673133934edfc2ef1a4919e7e34 /lib | |
parent | e26673143add7d07b1f2f2c112a29d8db3cb4e5c (diff) |
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
Diffstat (limited to 'lib')
-rw-r--r-- | lib/CodeGen/SelectionDAG/LegalizeDAG.cpp | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp b/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp index 2f3d21d81b..e12e69a4dc 100644 --- a/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp +++ b/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp @@ -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)); |