VEX/VEX_VexOp.h File Reference

#include "VEX_API.h"
#include "VEX_VexTypes.h"

Go to the source code of this file.

Classes

class  VEX_VexOp
 Use this class to extend VEX by adding custom VEX functions. More...

Defines

#define VEX_OPTIMIZE_0   0
#define VEX_OPTIMIZE_1   1
#define VEX_OPTIMIZE_2   2
#define MAX_VEXOP_ARGS   4096

Typedefs

typedef void *(* VEX_VexOpInit )()
typedef void(* VEX_VexOpCallback )(int argc, void *argv[], void *data)
typedef void(* VEX_VexOpCleanup )(void *data)
 VEX operator cleanup callback. When called, it should deallocate the data.

Functions

SYS_VISIBILITY_EXPORT void newVEXOp (void *)
 Function called in DSO to install new functions.


Define Documentation

#define MAX_VEXOP_ARGS   4096

The maximum number of arguments that a VEXOp can take

Definition at line 129 of file VEX_VexOp.h.

#define VEX_OPTIMIZE_0   0

Perform no optimization on the VEX function

Warning:
this may impact performance severely.
Examples:
VEX/VEX_Ops.C.

Definition at line 104 of file VEX_VexOp.h.

#define VEX_OPTIMIZE_1   1

Minimal optimization

Examples:
VEX/VEX_Example.C, and VEX/VEX_Ops.C.

Definition at line 105 of file VEX_VexOp.h.

#define VEX_OPTIMIZE_2   2

Full optimization (preferred mode)

Definition at line 106 of file VEX_VexOp.h.


Typedef Documentation

typedef void(* VEX_VexOpCallback)(int argc, void *argv[], void *data)

VEX operator evaluation callback. When called, the data returned by the VEX_VexOpInit function will be passed as the "data" argument.

Definition at line 80 of file VEX_VexOp.h.

typedef void(* VEX_VexOpCleanup)(void *data)

VEX operator cleanup callback. When called, it should deallocate the data.

Definition at line 82 of file VEX_VexOp.h.

typedef void*(* VEX_VexOpInit)()

VEX operator initialization callback. When called, it should allocated and initialize custom state data.

Definition at line 77 of file VEX_VexOp.h.


Function Documentation

SYS_VISIBILITY_EXPORT void newVEXOp ( void *   ) 

Function called in DSO to install new functions.

Examples:
VEX/VEX_Example.C, VEX/VEX_Ops.C, and VEX/VEX_Sort.C.

Definition at line 114 of file VEX_Example.C.


Generated on Mon Jan 28 00:27:57 2013 for HDK by  doxygen 1.5.9