librelist archives

« back to archive

dump module out to bitcode?

dump module out to bitcode?

From:
Jun Koi
Date:
2012-07-26 @ 16:33
hi,

anybody pls tell me how can i dump out a module to the bitcode file?
the below code can only print out to console the IR.


my_module = Module.new('my_module')
print(my_module)


thanks,
Jun

Re: [numba] dump module out to bitcode?

From:
Siu Kwan Lam
Date:
2012-07-26 @ 16:41
Hi Jun,

What you need is the `Module.to_bitcode` method.
You can refer to the new online documentation here:
http://numba.github.com/llvm-py/doc/llvm.core.Module.html

Regards,
Siu


On 07/26/2012 09:33 AM, Jun Koi wrote:
> hi,
>
> anybody pls tell me how can i dump out a module to the bitcode file?
> the below code can only print out to console the IR.
>
>
> my_module = Module.new('my_module')
> print(my_module)
>
>
> thanks,
> Jun

Re: [numba] dump module out to bitcode?

From:
Travis Oliphant
Date:
2012-07-26 @ 16:52
Hey all, 

We are migrating to numba-users@continuum.io  and will be shutting this 
list off.   Here is the google-group... 
https://groups.google.com/a/continuum.io/d/forum/numba-users


On Jul 26, 2012, at 11:41 AM, Siu Kwan Lam wrote:

> Hi Jun,
> 
> What you need is the `Module.to_bitcode` method.
> You can refer to the new online documentation here: 
> http://numba.github.com/llvm-py/doc/llvm.core.Module.html
> 
> Regards,
> Siu
> 
> 
> On 07/26/2012 09:33 AM, Jun Koi wrote:
>> hi,
>> 
>> anybody pls tell me how can i dump out a module to the bitcode file?
>> the below code can only print out to console the IR.
>> 
>> 
>> my_module = Module.new('my_module')
>> print(my_module)
>> 
>> 
>> thanks,
>> Jun
>