Displaying 1 result from an estimated 1 matches for "cfunctype".
Did you mean:
functype
2017 Jun 21
2
question about llvmlite
...llvmlite:
for stmt in irsb.statements: if isinstance(stmt, pyvex.IRStmt.Store): print "ST%s(%s) = %s" % (self.endness[-2:].lower(), self.addr, self.data) (which gets the 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(),...