search for: makewritetofil

Displaying 9 results from an estimated 9 matches for "makewritetofil".

Did you mean: makewritetofile
2008 Nov 16
1
[LLVMdev] How do I get the result of an instruction?
...ile. Using llc -march=cpp option I figured out how to add a function(say writeToFile) which takes char* parameter and writes to file. Now, I need put in a CallInst which calls writeToFile passing the Instruction result as parameter. How do I do this? So, in my optimization pass... Func *myprint = makewriteToFile() //creates a function which writes to file for (Function::iterator i = func->begin(), e = func->end(); i != e; ++i) { blk=i; for (BasicBlock::iterator j = blk->begin(), k = blk->end(); j != k; ++j){ Instruction *inst = j; //if inst satisfies my...
2008 Nov 17
2
[LLVMdev] Assertion `castIsValid(getOpcode(), S, Ty) && "Illegal BitCast"' failed.
...out how to add a function(say writeToFile) which > takes char* parameter and writes to file. Now, I need put in > a CallInst which calls writeToFile passing the Instruction > result as parameter. How do I do this? > > > > So, in my optimization pass... > > Func *myprint = makewriteToFile() //creates a function > which writes to file > > for (Function::iterator i = func->begin(), e = > func->end(); i != e; ++i) > > { > > blk=i; > > for (BasicBlock::iterator j = blk->begin(), > k = blk->end(); j != k; ++j){ > >...
2008 Nov 17
1
[LLVMdev] Assertion `InReg && "Value not in map!"' failed
...which > >> takes char* parameter and writes to file. Now, I > need put in > >> a CallInst which calls writeToFile passing the > Instruction > >> result as parameter. How do I do this? > >>> So, in my optimization pass... > >>> Func *myprint = makewriteToFile() //creates a > function > >> which writes to file > >>> for (Function::iterator i = func->begin(), > e = > >> func->end(); i != e; ++i) > >>> { > >>> blk=i; > >>> for (BasicBlock::iterator j = > blk-&gt...
2008 Nov 17
1
[LLVMdev] Assertion `InReg && "Value not in map!"' failed
.... > Now, I > >> need put in > >>>> a CallInst which calls writeToFile passing > the > >> Instruction > >>>> result as parameter. How do I do this? > >>>>> So, in my optimization pass... > >>>>> Func *myprint = makewriteToFile() > //creates a > >> function > >>>> which writes to file > >>>>> for (Function::iterator i = > func->begin(), > >> e = > >>>> func->end(); i != e; ++i) > >>>>> { > >>>>> blk=i;...
2008 Nov 16
0
[LLVMdev] How do I get the result of an instruction?
On Sat, Nov 15, 2008 at 3:58 PM, bhavani krishnan <bhavi63 at yahoo.com> wrote: > Thanks! > > How do I cast the result to a string? I basically need to store the results of some instructions in a file. If you're confused about how the IR works, http://llvm.org/demo/ can be useful. The question you're asking doesn't really seem to make sense. -Eli
2008 Nov 17
0
[LLVMdev] How do I get the result of an instruction?
...out how to add a function(say writeToFile) which > takes char* parameter and writes to file. Now, I need put in > a CallInst which calls writeToFile passing the Instruction > result as parameter. How do I do this? > > > > So, in my optimization pass... > > Func *myprint = makewriteToFile() //creates a function > which writes to file > > for (Function::iterator i = func->begin(), e = > func->end(); i != e; ++i) > > { > > blk=i; > > for (BasicBlock::iterator j = blk->begin(), > k = blk->end(); j != k; ++j){ > >...
2008 Nov 17
1
[LLVMdev] How do I get the result of an instruction?
...t; which > > takes char* parameter and writes to file. Now, I need > put in > > a CallInst which calls writeToFile passing the > Instruction > > result as parameter. How do I do this? > > > > > > So, in my optimization pass... > > > Func *myprint = makewriteToFile() //creates a > function > > which writes to file > > > for (Function::iterator i = func->begin(), e = > > func->end(); i != e; ++i) > > > { > > > blk=i; > > > for (BasicBlock::iterator j = > blk->begin(), > > k = b...
2008 Nov 15
2
[LLVMdev] How do I get the result of an instruction?
Thanks! How do I cast the result to a string? I basically need to store the results of some instructions in a file. Thanks, Bhavani --- On Sun, 11/16/08, John Criswell <criswell at uiuc.edu> wrote: > From: John Criswell <criswell at uiuc.edu> > Subject: Re: [LLVMdev] How do I get the result of an instruction? > To: "bhavi63 at yahoo.com" <bhavi63 at
2008 Nov 17
0
[LLVMdev] Assertion `InReg && "Value not in map!"' failed
...;> a CallInst which calls writeToFile > passing > >> the > >>>> Instruction > >>>>>> result as parameter. How do I do > this? > >>>>>>> So, in my optimization pass... > >>>>>>> Func *myprint = > makewriteToFile() > >> //creates a > >>>> function > >>>>>> which writes to file > >>>>>>> for (Function::iterator i = > >> func->begin(), > >>>> e = > >>>>>> func->end(); i != e; ++i) > >...