search for: createfpext

Displaying 13 results from an estimated 13 matches for "createfpext".

2011 Nov 14
2
[LLVMdev] Transferring value* in LLVM
It doesnt work it fails with assertation that cast is invalid .What could be done? On 11/14/11, Duncan Sands <baldrick at free.fr> wrote: > Hi Yakov, that looks correct to me. You can also use CreateFPExt which is > slightly simpler. > > Ciao, Duncan. > > >> 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,...
2011 Nov 14
2
[LLVMdev] Transferring value* in LLVM
...t cast is invalid .What >> could be done? >> > > Maybe src doesn't have Float type? > > Ciao, Duncan. > > > >> >> On 11/14/11, Duncan Sands<baldrick at free.fr> wrote: >> >>> Hi Yakov, that looks correct to me. You can also use CreateFPExt which >>> is >>> slightly simpler. >>> >>> Ciao, Duncan. >>> >>> >>> 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...
2011 Nov 14
2
[LLVMdev] Transferring value* in LLVM
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
2011 Nov 14
0
[LLVMdev] Transferring value* in LLVM
Hi Yakov, that looks correct to me. You can also use CreateFPExt which is slightly simpler. Ciao, Duncan. > 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),””)...
2011 Nov 14
0
[LLVMdev] Transferring value* in LLVM
...vich wrote: > It doesnt work it fails with assertation that cast is invalid .What > could be done? Maybe src doesn't have Float type? Ciao, Duncan. > > > On 11/14/11, Duncan Sands<baldrick at free.fr> wrote: >> Hi Yakov, that looks correct to me. You can also use CreateFPExt which is >> slightly simpler. >> >> Ciao, Duncan. >> >> >>> 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....
2011 Nov 14
2
[LLVMdev] Transferring value* in LLVM
...t;> Ciao, Duncan. >> >> >> >> >> On 11/14/11, Duncan Sands<baldrick at free.fr <mailto: >> baldrick at free.fr>> >> >> wrote: >> >> Hi Yakov, that looks correct to me. You can also use >> CreateFPExt >> which is >> slightly simpler. >> >> Ciao, Duncan. >> >> >> I want to transfer value (Value* src) of the type >> `FloatTyID` to >> `DoubleTyID`(I >> need all f...
2011 Nov 14
0
[LLVMdev] Transferring value* in LLVM
...> > Maybe src doesn't have Float type? > > Ciao, Duncan. > > > > > On 11/14/11, Duncan Sands<baldrick at free.fr <mailto:baldrick at free.fr>> > wrote: > > Hi Yakov, that looks correct to me. You can also use CreateFPExt > which is > slightly simpler. > > Ciao, Duncan. > > > 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 tr...
2011 Nov 14
2
[LLVMdev] Transferring value* in LLVM
...;> >>> >>> >>> On 11/14/11, Duncan Sands<baldrick at free.fr <mailto: >>> baldrick at free.fr>> >>> >>> wrote: >>> >>> Hi Yakov, that looks correct to me. You can also use >>> CreateFPExt >>> which is >>> slightly simpler. >>> >>> Ciao, Duncan. >>> >>> >>> I want to transfer value (Value* src) of the type >>> `FloatTyID` to >>> `DoubleTyID`(...
2011 Nov 14
0
[LLVMdev] Transferring value* in LLVM
...t; Maybe src doesn't have Float type? > > Ciao, Duncan. > > > > > On 11/14/11, Duncan Sands<baldrick at free.fr <mailto:baldrick at free.fr>> > > wrote: > > Hi Yakov, that looks correct to me. You can also use CreateFPExt > which is > slightly simpler. > > Ciao, Duncan. > > > 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...
2011 Nov 14
0
[LLVMdev] Transferring value* in LLVM
...<mailto:baldrick at free.fr> <mailto:baldrick at free.fr >> <mailto:baldrick at free.fr>>> >> >> wrote: >> >> Hi Yakov, that looks correct to me. You can also use >> CreateFPExt >> which is >> slightly simpler. >> >> Ciao, Duncan. >> >> >> I want to transfer value (Value* src) of the type >> `FloatTyID` to >>...
2011 Nov 14
1
[LLVMdev] Transferring value* in LLVM
...;mailto:baldrick at free.fr >>> >>> <mailto:baldrick at free.fr>>> >>> >>> wrote: >>> >>> Hi Yakov, that looks correct to me. You can also >>> use >>> CreateFPExt >>> which is >>> slightly simpler. >>> >>> Ciao, Duncan. >>> >>> >>> I want to transfer value (Value* src) of the >>> type >>>...
2007 Dec 17
0
[LLVMdev] Elsa and LLVM and LLVM submissions
...> + return CreateCast(Instruction::SIToFP, V, DestTy, Name); > + } > + Value *CreateFPTrunc(Value *V, const Type *DestTy, > + const char *Name = "") { > + return CreateCast(Instruction::FPTrunc, V, DestTy, Name); > + } > + Value *CreateFPExt(Value *V, const Type *DestTy, const char *Name > = "") { > + return CreateCast(Instruction::FPExt, V, DestTy, Name); > + } > + Value *CreatePtrToInt(Value *V, const Type *DestTy, > + const char *Name = "") { > + return Cr...
2007 Dec 17
2
[LLVMdev] Elsa and LLVM and LLVM submissions
Devang Patel wrote: > On Dec 15, 2007, at 12:15 PM, Richard Pennington wrote: > >> I got the current version of LLVM via svn yesterday and modified my >> code to >> use the LLVMFoldingBuilder. Very nice! >> >> My question is this: I noticed that the folding builder doesn't fold >> some >> operations, e.g. casts. Is there some reason why? If