Miasm2
 All Classes Namespaces Files Functions Variables Typedefs Properties Macros
Functions | Variables
Jitllvm.c File Reference
#include <Python.h>
#include <inttypes.h>
#include <stdint.h>
+ Include dependency graph for Jitllvm.c:

Go to the source code of this file.

Functions

PyObject * llvm_exec_bloc (PyObject *self, PyObject *args)
 
PyMODINIT_FUNC initJitllvm (void)
 

Variables

static PyMethodDef LLVMMethods []
 

Function Documentation

PyMODINIT_FUNC initJitllvm ( void  )

Definition at line 28 of file Jitllvm.c.

29 {
30  PyObject *m;
31 
32  m = Py_InitModule("Jitllvm", LLVMMethods);
33  if (m == NULL)
34  return;
35 
36 }
static PyMethodDef LLVMMethods[]
Definition: Jitllvm.c:21
PyObject* llvm_exec_bloc ( PyObject *  self,
PyObject *  args 
)

Definition at line 7 of file Jitllvm.c.

8 {
9  uint64_t (*func)(void*, void*);
10  uint64_t vm;
11  uint64_t cpu;
12  uint64_t ret;
13 
14  if (!PyArg_ParseTuple(args, "KKK", &func, &cpu, &vm))
15  return NULL;
16  ret = func((void*)cpu, (void*)vm);
17  return PyLong_FromUnsignedLongLong( (uint64_t)ret);
18 }

+ Here is the call graph for this function:

Variable Documentation

PyMethodDef LLVMMethods[]
static
Initial value:
= {
{"llvm_exec_bloc", llvm_exec_bloc, METH_VARARGS,
"llvm exec bloc"},
{NULL, NULL, 0, NULL}
}
PyObject * llvm_exec_bloc(PyObject *self, PyObject *args)
Definition: Jitllvm.c:7

Definition at line 21 of file Jitllvm.c.