Displaying 3 results from an estimated 3 matches for "initialize_native_target".
2017 Jun 21
2
question about llvmlite
...e data in a register and store it in another register)
I translate it in llvmlite as follows:
from ctypes import CFUNCTYPE, c_intimport archinfoimport llvmlite.ir as llimport llvmlite.binding as llvmimport pyvex
CODE = b"\x55\x48\x8b\x05\xb8\x13\x00\x00"mehran = -100
llvm.initialize()llvm.initialize_native_target()llvm.initialize_native_asmprinter()
module = ll.Module()func_ty = ll.FunctionType(ll.VoidType(), [])func = ll.Function(module, func_ty, name='read_instructions')a = func.argsbb_entry = func.append_basic_block('entry')irbuilder = ll.IRBuilder(bb_entry)int_type = ll.IntType(64);irsb...
2009 Oct 27
0
[LLVMdev] HLVM updated for LLVM 2.6
I have committed the changes to HLVM that bring it up to date with respect to
the new LLVM 2.6 release:
http://hlvm.forge.ocamlcore.org/
This required handling of llcontexts and the injection of a call to the new
Llvm_executionengine.initialize_native_target function (that is undocumented)
*before* the JIT EE is created, otherwise LLVM resorts to the LLVM
interpreter which breaks at run-time because it does not fully implement the
IR generated by HLVM.
I've also replaced the garbage collector with a more conventional in-heap
mark-sweep GC. Thi...
2010 Jan 22
3
[LLVMdev] Kaleidoscope-tutorial: Fails to create the JIT
Hello All
I 'm studing LLVM/Clang and trying to follow the Kaleidoscope tutorial
(Release 2.6 version).
I found some minir docu-bugs and added them to Bugzilla.
However, Now I found a show-stopper for me, the toy (v4) demo does
build, but does crash, on any input. Even a simpe ';'!
Looking into the (demo-code) found the that the JIT can't be build/
created,/loaded/...
Which