[LLVMdev] transfer value from FloatTyID to DoubleTyID

Yakov Malinkovich yakovm3 at gmail.com
Mon Nov 14 04:40:40 PST 2011


Hello

I want to transfer value (Value* src) of the type FloatTyID to DoubleTyID(I
need all floats to be saved as 8 bytes)

I tried  emit[..]->builder.CreateCast(llvm::Instruction::FPExt, src,
llvm::Type::getDoubleTy(llvmContext),””)

I don`t know which emit to use and if this approach is correct .

How can I do the above  correctly?
Thank you.
Yakov
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20111114/ea66be07/attachment.html>


More information about the llvm-dev mailing list