FluxML / IRTools.jl

Mike's Little Intermediate Representation
MIT License
111 stars 35 forks source link

How @code_ir be converted to lower IR or runnable IR and how can I get @code_lowered IR with script code not with REPL #66

Closed agdkyang closed 4 years ago

agdkyang commented 4 years ago

how @code_ir be converted to lower IR such as @code_typed or runnable IR

MikeInnes commented 4 years ago

As mentioned in the readme, you can use IRTools.func to get a runnable Julia function from IR. You can then use @code_lowered or @code_typed on that function.

agdkyang commented 4 years ago

As mentioned in the readme, you can use IRTools.func to get a runnable Julia function from IR. You can then use @code_lowered or @code_typed on that function.