PostgreSQL Source Code
git master
|
#include "postgres.h"
#include <sys/types.h>
#include <sys/stat.h>
#include <unistd.h>
#include "fmgr.h"
#include "jit/jit.h"
#include "miscadmin.h"
#include "nodes/execnodes.h"
#include "portability/instr_time.h"
#include "utils/fmgrprotos.h"
Go to the source code of this file.
Functions | |
static bool | provider_init (void) |
Datum | pg_jit_available (PG_FUNCTION_ARGS) |
void | jit_reset_after_error (void) |
void | jit_release_context (JitContext *context) |
bool | jit_compile_expr (struct ExprState *state) |
void | InstrJitAgg (JitInstrumentation *dst, JitInstrumentation *add) |
Variables | |
bool | jit_enabled = true |
char * | jit_provider = NULL |
bool | jit_debugging_support = false |
bool | jit_dump_bitcode = false |
bool | jit_expressions = true |
bool | jit_profiling_support = false |
bool | jit_tuple_deforming = true |
double | jit_above_cost = 100000 |
double | jit_inline_above_cost = 500000 |
double | jit_optimize_above_cost = 500000 |
static JitProviderCallbacks | provider |
static bool | provider_successfully_loaded = false |
static bool | provider_failed_loading = false |
void InstrJitAgg | ( | JitInstrumentation * | dst, |
JitInstrumentation * | add | ||
) |
Definition at line 182 of file jit.c.
References JitInstrumentation::created_functions, JitInstrumentation::deform_counter, JitInstrumentation::emission_counter, JitInstrumentation::generation_counter, JitInstrumentation::inlining_counter, INSTR_TIME_ADD, and JitInstrumentation::optimization_counter.
Referenced by ExecParallelRetrieveJitInstrumentation(), and ExplainPrintJITSummary().
Definition at line 151 of file jit.c.
References JitProviderCallbacks::compile_expr, PGJIT_EXPR, PGJIT_PERFORM, provider, and provider_init().
Referenced by ExecReadyExpr().
void jit_release_context | ( | JitContext * | context | ) |
Definition at line 137 of file jit.c.
References context, pfree(), provider, provider_successfully_loaded, and JitProviderCallbacks::release_context.
Referenced by FreeExecutorState(), and ResOwnerReleaseJitContext().
void jit_reset_after_error | ( | void | ) |
Definition at line 127 of file jit.c.
References provider, provider_successfully_loaded, and JitProviderCallbacks::reset_after_error.
Referenced by PostgresMain().
Datum pg_jit_available | ( | PG_FUNCTION_ARGS | ) |
|
static |
Definition at line 67 of file jit.c.
References DEBUG1, elog, init, jit_enabled, jit_provider, load_external_function(), MAXPGPATH, pg_file_exists(), pkglib_path, provider, provider_failed_loading, provider_successfully_loaded, and snprintf.
Referenced by jit_compile_expr(), and pg_jit_available().
double jit_above_cost = 100000 |
Definition at line 39 of file jit.c.
Referenced by standard_planner().
Definition at line 34 of file jit.c.
Referenced by llvm_session_initialize().
Definition at line 35 of file jit.c.
Referenced by llvm_compile_module().
Definition at line 32 of file jit.c.
Referenced by provider_init(), and standard_planner().
Definition at line 36 of file jit.c.
Referenced by standard_planner().
double jit_inline_above_cost = 500000 |
Definition at line 40 of file jit.c.
Referenced by standard_planner().
double jit_optimize_above_cost = 500000 |
Definition at line 41 of file jit.c.
Referenced by standard_planner().
Definition at line 37 of file jit.c.
Referenced by llvm_session_initialize().
char* jit_provider = NULL |
Definition at line 33 of file jit.c.
Referenced by provider_init().
Definition at line 38 of file jit.c.
Referenced by standard_planner().
|
static |
Definition at line 43 of file jit.c.
Referenced by CATALOG(), dumpSecLabel(), dumpTableSecLabel(), emitShSecLabels(), ExecSecLabelStmt(), GetSecurityLabel(), GetSharedSecurityLabel(), jit_compile_expr(), jit_release_context(), jit_reset_after_error(), pg_collation_actual_version(), provider_init(), register_label_provider(), SetSecurityLabel(), and SetSharedSecurityLabel().
Definition at line 45 of file jit.c.
Referenced by provider_init().
Definition at line 44 of file jit.c.
Referenced by jit_release_context(), jit_reset_after_error(), and provider_init().