search for: initialize_native_asmprinter

Displaying 1 result from an estimated 1 matches for "initialize_native_asmprinter".

2017 Jun 21
2
question about llvmlite
...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 = pyvex.block.IRSB(CODE, 0x400400,...