Displaying 2 results from an estimated 2 matches for "c59e62ca".
2011 May 12
0
[LLVMdev] Extract operations as function
Hi Manish,
> Great!! Thanks Duncan.
> By step 1 that you mentioned it seems I can write my function func(x,y,op) in
> mypass.cpp itself. Please elaborate how can add it to the module?
the minimum is to add a prototype for "func" to the module. For that you can
use getOrInsertFunction. If you want to insert the code defining "func" too,
then insert the prototype,
2011 May 12
2
[LLVMdev] Extract operations as function
Great!! Thanks Duncan.
By step 1 that you mentioned it seems I can write my function func(x,y,op)
in mypass.cpp itself. Please elaborate how can add it to the module?
On Thu, May 12, 2011 at 1:22 AM, Duncan Sands <baldrick at free.fr> wrote:
> Hi Manish,
>
> > I am planning to extract every operation as function.
> >
> > eg. z=x+y; ==> z=func(x,y,op);
> >