search for: floattyid

Displaying 20 results from an estimated 21 matches for "floattyid".

Did you mean: floatty
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 ----------...
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 -...
2011 Nov 14
2
[LLVMdev] Transferring value* in LLVM
...at 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, >> llvm::Type::getDoubleTy(llvmContext),””) >> >> I don`t know if I use CreateCast correctly and if this approach is...
2009 Nov 25
0
[LLVMdev] JVM Backend
...big question is: how you're planning to deal with arbitrary precision stuff which might come from LLVM IR. Currently all the things seems to behave different in case of receiving e.g. i31: - functions like getTypeName() return some junk (the case Type::IntegerTypeID just falls through to Type::FloatTyID) - other functions just assert -- With best regards, Anton Korobeynikov Faculty of Mathematics and Mechanics, Saint Petersburg State University
2011 Nov 14
2
[LLVMdev] Transferring value* in LLVM
...rick 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...
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...
2011 Nov 14
0
[LLVMdev] Transferring value* in LLVM
...gt; > > 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 corre...
2009 Nov 24
2
[LLVMdev] JVM Backend
Hi, I've written a backend for LLVM that allows LLVM IR to be transformed to a Java/JVM class file (llvm-jvm.patch.gz attached). Indirect function calls don't work yet, and there's probably some minor bugs in it, but it works well for the test cases that I've run through it. Also, several instructions are emulated by method calls due to deficiencies in the JVM instruction set
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),””) >> >> >...
2011 Nov 14
0
[LLVMdev] Transferring value* in LLVM
...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...
2009 Nov 26
2
[LLVMdev] JVM Backend
...hat. Would arbitrary precision support be required for the initial commit of the backend? > Currently all > the things seems to behave different in case of receiving e.g. i31: > - functions like getTypeName() return some junk (the case > Type::IntegerTypeID just falls through to Type::FloatTyID) getBitWidth raises an assertion before this can happen. -- David Roberts http://da.vidr.cc/ On Wed, Nov 25, 2009 at 21:03, Anton Korobeynikov <anton at korobeynikov.info> wrote: > Hello, David > > First of all, thanks for the backend submission. I let Chris comment > about th...
2011 Nov 14
2
[LLVMdev] Transferring value* in LLVM
...rrect 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),””) &g...
2011 Nov 14
0
[LLVMdev] Transferring value* in LLVM
...t;> > > 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 k...
2007 Sep 19
2
[LLVMdev] Building current llvm-gcc-4.0 TOT fails on darwin x86
...typeid: Value *TreeToLLVM::EmitBuiltinUnaryFPOp(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: ../ll...
2011 Nov 14
0
[LLVMdev] Transferring value* in LLVM
...gt; 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
1
[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, >>>...
2010 Apr 23
1
[LLVMdev] How to get the Operand type
...[1000 x double]* %C, i64 0, i64 %indvar67 ; <double*> [#uses=1] I tried (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...
2007 Sep 19
0
[LLVMdev] Building current llvm-gcc-4.0 TOT fails on darwin x86
...uiltinUnaryFPOp(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, "tm...
2007 Feb 05
0
[LLVMdev] automatically generating intrinsic declarations
On Mon, 5 Feb 2007, Dan Gohman wrote: > LLVM knows what all the types of the intrinsic functions are; I thought, > why are users (including llvm-gcc...) required to duplicate all this > information in order to use them? I mean in order to call > getOrInsertFunction to get declarations for them. That is an excellent question! :) In the bad old days, we used to allow intrinsics
2007 Feb 06
1
[LLVMdev] automatically generating intrinsic declarations
...: LLVMType<isVoid, "Type::VoidTyID">; def llvm_bool_ty : LLVMIntegerType<i1, 1>; def llvm_i8_ty : LLVMIntegerType<i8 , 8>; @@ -76,9 +85,10 @@ def llvm_i64_ty : LLVMIntegerType<i64, 64>; def llvm_float_ty : LLVMType<f32, "Type::FloatTyID">; def llvm_double_ty : LLVMType<f64, "Type::DoubleTyID">; -def llvm_ptr_ty : LLVMType<iPTR, "Type::PointerTyID">; // i8* -def llvm_ptrptr_ty : LLVMType<iPTR, "Type::PointerTyID">; // i8** -def llvm_descriptor_ty : LLVM...