|
Serene Runtime 1.0.0-dev
C runtime for the Serene programming language
|
#include "serene/jit/jit.h"#include <llvm-c/Core.h>#include <llvm-c/Error.h>#include <llvm-c/LLJIT.h>#include <llvm-c/Support.h>#include <llvm-c/Target.h>#include <stdio.h>#include <string.h>#include "serene/rt/context.h"#include "serene/rt/engine.h"#include "serene/rt/mm/interface.h"#include "serene/utils.h"Go to the source code of this file.
Functions | |
| static int | handle_error (LLVMErrorRef err) |
| srn_jit_t * | srn_jit_make (srn_mm_t *mm) |
| int | srn_jit_init (srn_jit_t *result) |
| Creates a jit engine and sets the given result to it. | |
| int | srn_jit_shutdown (srn_jit_t *jit) |
| srn_error_t * | srn_jit_add_module (srn_context_t *ctx, srn_jit_module_t *module) |
| Add a module to the jit compiler. | |
|
inlinestatic |
| srn_error_t * srn_jit_add_module | ( | srn_context_t * | ctx, |
| srn_jit_module_t * | module ) |
Add a module to the jit compiler.
Definition at line 88 of file jit.c.
| int srn_jit_init | ( | srn_jit_t * | result | ) |
Creates a jit engine and sets the given result to it.
Definition at line 52 of file jit.c.
Definition at line 43 of file jit.c.
| int srn_jit_shutdown | ( | srn_jit_t * | jit | ) |
Definition at line 74 of file jit.c.