Miasm2
 All Classes Namespaces Files Functions Variables Typedefs Properties Macros
Public Member Functions | Static Public Attributes | List of all members
miasm2.jitter.llvmconvert.LLVMType Class Reference
+ Inheritance diagram for miasm2.jitter.llvmconvert.LLVMType:
+ Collaboration diagram for miasm2.jitter.llvmconvert.LLVMType:

Public Member Functions

def int
 
def pointer
 
def generic
 

Static Public Attributes

dictionary int_cache = {}
 

Detailed Description

Definition at line 23 of file llvmconvert.py.

Member Function Documentation

def miasm2.jitter.llvmconvert.LLVMType.generic (   cls,
  e 
)

Definition at line 43 of file llvmconvert.py.

43 
44  def generic(cls, e):
45  "Generic value for execution"
46  if isinstance(e, m2_expr.ExprInt):
47  return llvm_e.GenericValue.int(LLVMType.int(e.size), int(e.arg))
48  elif isinstance(e, llvm_e.GenericValue):
49  return e
50  else:
51  raise ValueError()
52 

+ Here is the call graph for this function:

def miasm2.jitter.llvmconvert.LLVMType.int (   cls,
  size = 32 
)

Definition at line 30 of file llvmconvert.py.

30 
31  def int(cls, size=32):
32  try:
33  return cls.int_cache[size]
34  except KeyError:
35  cls.int_cache[size] = llvm_c.Type.int(size)
36  return cls.int_cache[size]

+ Here is the caller graph for this function:

def miasm2.jitter.llvmconvert.LLVMType.pointer (   cls,
  addr 
)

Definition at line 38 of file llvmconvert.py.

38 
39  def pointer(cls, addr):
40  "Generic pointer for execution"
41  return llvm_e.GenericValue.pointer(addr)

Member Data Documentation

dictionary miasm2.jitter.llvmconvert.LLVMType.int_cache = {}
static

Definition at line 27 of file llvmconvert.py.


The documentation for this class was generated from the following file: