[LLVMdev] how to do make a FP_ROUND need/operattion

Ahmed Bougacha ahmed.bougacha at gmail.com
Mon May 11 18:46:44 PDT 2015


The problem is that FP_ROUND has two operands, per ISDOpcodes.h:

-Ahmed


On Mon, May 11, 2015 at 5:26 PM, Zhang, Kewu <Kewu.Zhang at amd.com> wrote:
> Hi Guys,
>
> I and trying to covert a float to a f16.
> calling
>
>  DAG.getNode(ISD::FP_ROUND, DL, Op->getValueType(0), FloatNode);
>
>
> will get the error message:"Invalid method to make FP_ROUND node"
>
>
> what is the "right" way to make this work?
>
>
> best
>
> Kevin
>
>
> _______________________________________________
> LLVM Developers mailing list
> LLVMdev at cs.uiuc.edu         http://llvm.cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev
>



More information about the llvm-dev mailing list