forked from M-Labs/artiq
1
0
Fork 0
artiq/artiq/py2llvm/__init__.py

7 lines
183 B
Python

from artiq.py2llvm.module import Module
def get_runtime_binary(env, func_def):
module = Module(env)
module.compile_function(func_def, dict())
return module.emit_object()