On Tue, Oct 25, 2016 at 3:55 PM, wrote:
> I need some part of my julia code to be executed at run time and be loaded
> as llvm IR (or assembly). It is allowed to be IR or assembly code but not
> julia source code or c source code.
Why does it have to be IR or assembly?
>
> Are there other optio
I need some part of my julia code to be executed at run time and be loaded
as llvm IR (or assembly). It is allowed to be IR or assembly code but not
julia source code or c source code.
Are there other options like the output-bc option that can work for me?
What other approaches I can consider?
Julia can already generate static code:
- http://juliacomputing.com/blog/2016/02/09/static-julia.html
- http://juliacomputing.com/blog/2016/03/10/j2c-announcement.html
However, Julia's @code_llvm output is not meant to be compilable. What are
you trying to do?
On Tue, Oct 25, 2016 at 1:11
Thanks, is it possible for julia to avoid generating jl_value_t
When I use a scalar Int64 julia generates code with i64 as input and no
jl_value_t appears. is it possible to do the same with arrays?
Array{Float32,2} genrates a jl_value_t? Is there an array type that can
do this? For example
On Mon, Oct 24, 2016 at 8:15 PM, wrote:
> Hi All,
>
> I am trying to call llvm ir generated from julia.
>
> Here is my function:
>
> function incr(a::Array{Int64}) a+1; end
>
>
> thus:
>
> @code_llvm(incr([1 2 5 6 7]))
>
> returns:
>
> define %jl_value_t* @julia_incr_62127(%jl_value_t*) #0 {
> t
Hi All,
I am trying to call llvm ir generated from julia.
Here is my function:
function incr(a::Array{Int64}) a+1; end
thus:
@code_llvm(incr([1 2 5 6 7]))
returns:
define %jl_value_t* @julia_incr_62127(%jl_value_t*) #0 {
top:
%1 = call %jl_value_t* @"julia_.+_62128"(%jl_value_t* %0, i64