search for: malinkovich

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

2011 Nov 14
2
[LLVMdev] Transferring value* in LLVM
...her <echristo at apple.com>wrote: > You'll probably need to dump both the source and the dest and show the > code that's being generated. A lot of guessing here that's not getting us > very far very fast. > > -eric > > > On Nov 14, 2011, at 10:56 AM, Yakov Malinkovich wrote: > > yes - i checked that the src->getType()->isFloatTy() is true > Yakov > > > On Mon, Nov 14, 2011 at 8:24 PM, Duncan Sands <baldrick at free.fr> wrote: > >> On 14/11/11 19:20, Yakov Malinkovich wrote: >> >>> I sure that is. >>>...
2011 Nov 14
1
[LLVMdev] Transferring value* in LLVM
So what do you think the problem is? Thank you. Yakov On Mon, Nov 14, 2011 at 10:20 PM, Duncan Sands <baldrick at free.fr> wrote: > On 14/11/11 21:11, Yakov Malinkovich wrote: > >> Here is the error that I get: >> Assertion failed: (i >= FTy->getNumParams() || FTy->getParamType(i) == >> Params[i]->getType()) && "Calling a function with a bad signature!" >> > > That's not being generated by the Crea...
2011 Nov 14
0
[LLVMdev] Transferring value* in LLVM
On 14/11/11 21:11, Yakov Malinkovich wrote: > Here is the error that I get: > Assertion failed: (i >= FTy->getNumParams() || FTy->getParamType(i) == > Params[i]->getType()) && "Calling a function with a bad signature!" That's not being generated by the CreateCast, so it looks like your descr...
2011 Nov 14
2
[LLVMdev] Transferring value* in LLVM
yes - i checked that the src->getType()->isFloatTy() is true Yakov On Mon, Nov 14, 2011 at 8:24 PM, Duncan Sands <baldrick at free.fr> wrote: > On 14/11/11 19:20, Yakov Malinkovich wrote: > >> I sure that is. >> > > Did you test it? Can you do: src->getType()->isFloatTy() > > > What could be other reasons for such error? > > The only other possibility I can think of is that src was created > using a different context. > > Ci...
2011 Nov 14
0
[LLVMdev] Transferring value* in LLVM
You'll probably need to dump both the source and the dest and show the code that's being generated. A lot of guessing here that's not getting us very far very fast. -eric On Nov 14, 2011, at 10:56 AM, Yakov Malinkovich wrote: > yes - i checked that the src->getType()->isFloatTy() is true > Yakov > > > On Mon, Nov 14, 2011 at 8:24 PM, Duncan Sands <baldrick at free.fr> wrote: > On 14/11/11 19:20, Yakov Malinkovich wrote: > I sure that is. > > Did you test it? Can you do:...
2011 Nov 14
2
[LLVMdev] Transferring value* in LLVM
I sure that is.What could be other reasons for such error? Yakov On Mon, Nov 14, 2011 at 5:44 PM, Duncan Sands <baldrick at free.fr> wrote: > On 14/11/11 16:39, Yakov Malinkovich 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: >> &...
2011 Nov 14
0
[LLVMdev] Transferring value* in LLVM
On 14/11/11 19:20, Yakov Malinkovich wrote: > I sure that is. Did you test it? Can you do: src->getType()->isFloatTy() What could be other reasons for such error? The only other possibility I can think of is that src was created using a different context. Ciao, Duncan. > Yakov > > > On Mon, Nov 14, 2011 at 5...
2011 Nov 14
0
[LLVMdev] Transferring value* in LLVM
On 14/11/11 16:39, Yakov Malinkovich 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 Crea...
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
2011 Nov 07
1
[LLVMdev] Get a vector value.
Hello I have a pointer to llvm::Value *,I know its a pointer to some llvm::CompositeType (vector) Could you please tell me how can I get a value of specific index in the vector. Thank you. Yakov -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20111107/0b475afd/attachment.html>
2011 Dec 13
1
[LLVMdev] Changing the operands in the CallInst
I implement the following function,which gets CallInst * and should perform the following: 1. Change the value of the argument if condition1 takes place 2. Change the type of the argument if condition2 takes place 3. Add addition argument/s if condition3 takes place void argChange(CallInst * I) { for (unsigned index = 0; index < I->getNumOperands(); ++index) {
2012 May 04
2
[LLVMdev] Convert a vector size
> %temp = shufflevector <3 x i16> %incoming, <3 x i16> undef, <4 x i32> > <i32 0, i32 1, i32 2, i32 undef> > %out = bitcast <4 x i16> %temp to i64 I seem to have misread the destination type, you'd obviously want "<1 x i64>" instead of "i64" in everything I've written. Tim.
2012 May 04
0
[LLVMdev] Convert a vector size
I have a function that should work only with vector types having element type as a power of 2. So if I get total 48 bit vector I should force it to be rounded to total 64 bit vector Yakov On Fri, May 4, 2012 at 10:37 PM, Tim Northover <t.p.northover at gmail.com> wrote: > > > %temp = shufflevector <3 x i16> %incoming, <3 x i16> undef, <4 x i32> > >
2011 Oct 16
0
[LLVMdev] llvm and stream error
Here is the code of the functions: int getStream()     {            int fd = _dup(fileno(stdout));            freopen("tmp","w",stdout);            return fd;     } void freeStream(int fd) {        _dup2(fd,fileno(stdout));        close(fd); } The code of main program: printf(“start tets”); int fd = getStream(); printf(“redirection”); freeStream(fd); This is a part of
2011 Oct 26
1
[LLVMdev] AddressSpace question
Hellp One of the data members of class PointerType  is [unsigned] AddressSpace What is its role? I didn`t find sufficient description about it in the LLVM documentation. Could someone please point me where can I get description about different AddressSpaces? What I saw that address spaces may affect how optimizations are performed –Where can I get more information about this issue. Thank you
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 13
0
[LLVMdev] llvm::Value
Hello I have a llvm::Value* v; the type of *v is FloteTypeId.I know that it corresponds to some value float value,but during llvm IR generation this value should be changed,based on some conditions. For example I will need to set the value to corespond to 5.7. How can I do it? Thank you. -------------- next part -------------- An HTML attachment was scrubbed... URL:
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 -------------- An
2011 Dec 12
0
[LLVMdev] Function path and check implementation if the value are infinite or NAN
Hello I write functionPath,for function which get floats and makes some calculations for them ,can I add in the functionPath check if this float values are infinite or NAN if yes what is the best way to do it. Thank you Yakov -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20111212/4ca544ab/attachment.html>
2011 Dec 16
1
[LLVMdev] Transfer between function passes
Hello I need to transfer data(array of structures) between 2 llvm function passes. One of the passes runs during optimization phase(the array is generated during this phase), another one runs during code generation phase. How can it be implemented?(I don`t want to transfer the array as an argument to the function pass of code generation phase) Thank you. Yakov -------------- next part