search for: doubletyid

Displaying 20 results from an estimated 24 matches for "doubletyid".

Did you mean: doublety
2011 Nov 14
0
[LLVMdev] transfer value from FloatTyID to DoubleTyID
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...
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...
2011 Nov 14
2
[LLVMdev] Transferring value* in LLVM
...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, >> llvm::Type::getDoubleTy(llvmContext),””) >> >> I don`t know if I use CreateCast correctly and if this approach is >> correct at all....
2010 May 28
2
[LLVMdev] Retrieving Underlying Type from AllocaInst
...nstruction so I can see if I need to do type conversion before the store instruction, However, I cannot simply use: alloca->getType()->isDoubleTy() etc. because this doesn't return true in the above case. The ID of the Ty member of the VTy member of the alloca is PointerTyID instead of DoubleTyID as the construction for AllocaInst::AllocaInst seems to create a PointerType pointing to the original type. I was hoping for a member function of the alloca that would return the original type that was passed to CreateAlloca. I can test for a PointerTyID and then perform a cast to PointerType and...
2011 Nov 14
2
[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),””) >>>> >>>> I don`t know if I use CreateCast correct...
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),””) > > I don`t know if I use CreateCast correctly and if this approach is correct at all. > > Thank you. > > Y...
2011 Nov 14
0
[LLVMdev] Transferring value* in LLVM
...uncan 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, >>> llvm::Type::getDoubleTy(llvmContext),””) >>> >>> I don`t know if I use CreateCast correctly and if this approach is...
2011 Nov 14
2
[LLVMdev] Transferring value* in LLVM
...ct 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),””) >> >> >> I don`t know if I us...
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),””) > > I don`t know if I use CreateCast correctly and i...
2010 May 28
0
[LLVMdev] Retrieving Underlying Type from AllocaInst
...d to do type conversion before the > store instruction, However, I cannot simply use: > > alloca->getType()->isDoubleTy() etc. > > because this doesn't return true in the above case. The ID of the Ty > member of the VTy member of the alloca is PointerTyID instead of > DoubleTyID as the construction for AllocaInst::AllocaInst seems to > create a PointerType pointing to the original type. > > I was hoping for a member function of the alloca that would return the > original type that was passed to CreateAlloca. I can test for a > PointerTyID and then perform a...
2010 May 28
2
[LLVMdev] Retrieving Underlying Type from AllocaInst
...the >> store instruction, However, I cannot simply use: >> >> alloca->getType()->isDoubleTy() etc. >> >> because this doesn't return true in the above case. The ID of the Ty >> member of the VTy member of the alloca is PointerTyID instead of >> DoubleTyID as the construction for AllocaInst::AllocaInst seems to >> create a PointerType pointing to the original type. >> >> I was hoping for a member function of the alloca that would return the >> original type that was passed to CreateAlloca. I can test for a >> PointerTyI...
2011 Nov 14
2
[LLVMdev] Transferring value* in LLVM
...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
...gt; > 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),””) > > > I don`t know if I use CreateCast correctly a...
2010 May 28
0
[LLVMdev] Retrieving Underlying Type from AllocaInst
...nversion before the > > store instruction, However, I cannot simply use: > > alloca->getType()->isDoubleTy() etc. > > because this doesn't return true in the above case. The ID of the Ty > > member of the VTy member of the alloca is PointerTyID instead of > > DoubleTyID as the construction for AllocaInst::AllocaInst seems to > > create a PointerType pointing to the original type. > > I was hoping for a member function of the alloca that would return the > > original type that was passed to CreateAlloca. I can test for a > > PointerTyID and...
2007 Sep 19
2
[LLVMdev] Building current llvm-gcc-4.0 TOT fails on darwin x86
...Op(Value *Amt, const char *F32Name, const char *F64Name) { const char *Name = 0; switch (Amt->getType()->getTypeID()) { default: assert(0 && "Unknown FP type!"); case Type::FloatTyID: Name = F32Name; break; case Type::DoubleTyID: Name = F64Name; break; } return Builder.CreateCall(cast<Function>( TheModule->getOrInsertFunction(Name, Amt->getType(), Amt->getType (), NULL)), Amt, "tmp"); } my configures: ../llvm-gcc-4.0/configure --prefix=/Users/arnold/Desk...
2011 Nov 14
0
[LLVMdev] Transferring value* in LLVM
...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
1
[LLVMdev] Transferring value* in LLVM
...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:...
2010 Apr 23
1
[LLVMdev] How to get the Operand type
...(II->getOperand(0))->getType() ) but this give me an adress (I think) (some think like 0x1253.. ) also I tried to get the type of the instruction with switch (II->getType()->getTypeID()) { case Type::FloatTyID: case Type::DoubleTyID: case Type::IntegerTyID: default: ; } It works well exept for the getelementptr instruction !!! ?? so Please how to get the O...
2004 Aug 16
2
[LLVMdev] Bytecode file bugs / doc bugs
Dear Reid and Chris, I thought I should send this to the list in case anyone else is struggling to interpret bytecode files with the new docs. (1) First a bug I already mentioned to Reid. Unlike the other new module headers module 0x01 still uses the old 32-bit and 32-bit format instead of the new 5-bit and 27-bit format. Thus the first module in the file will be 0x00000001 followed by
2007 Sep 19
0
[LLVMdev] Building current llvm-gcc-4.0 TOT fails on darwin x86
..., > const char *F64Name) { > const char *Name = 0; > > switch (Amt->getType()->getTypeID()) { > default: assert(0 && "Unknown FP type!"); > case Type::FloatTyID: Name = F32Name; break; > case Type::DoubleTyID: Name = F64Name; break; > } > > return Builder.CreateCall(cast<Function>( > TheModule->getOrInsertFunction(Name, Amt->getType(), Amt->getType > (), NULL)), > Amt, "tmp"); > } > > my configures: > ../llvm-...