extern "C" {
#endif
+struct lp_cached_code;
struct gallivm_state
{
char *module_name;
LLVMBuilderRef builder;
LLVMMCJITMemoryManagerRef memorymgr;
struct lp_generated_code *code;
+ struct lp_cached_code *cache;
unsigned compiled;
LLVMValueRef coro_malloc_hook;
LLVMValueRef coro_free_hook;
+ LLVMValueRef debug_printf_hook;
};
struct gallivm_state *
-gallivm_create(const char *name, LLVMContextRef context);
+gallivm_create(const char *name, LLVMContextRef context,
+ struct lp_cached_code *cache);
void
gallivm_destroy(struct gallivm_state *gallivm);