[LLVMdev] Transferring value* in LLVM

Yakov Malinkovich yakovm3 at gmail.com
Mon Nov 14 05:49:59 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 have tried:

    builder.CreateCast(llvm::Instruction::FPExt, src,
llvm::Type::getDoubleTy(llvmContext),””)

I don`t know if I use CreateCast correctly  and if this approach is correct
at all.

Thank you.

Yakov
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20111114/8fe292a5/attachment.html>


More information about the llvm-dev mailing list