|
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().
| bool jit_compile_expr | ( | struct ExprState * | state | ) |
Definition at line 151 of file jit.c.
References PGJIT_EXPR, PGJIT_PERFORM, and provider_init().
Referenced by ExecReadyExpr().
| void jit_release_context | ( | JitContext * | context | ) |
Definition at line 137 of file jit.c.
References pfree(), and provider_successfully_loaded.
Referenced by FreeExecutorState(), and ResOwnerReleaseJitContext().
| void jit_reset_after_error | ( | void | ) |
Definition at line 127 of file jit.c.
References provider_successfully_loaded.
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_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().
| bool jit_debugging_support = false |
Definition at line 34 of file jit.c.
Referenced by llvm_create_object_layer().
| bool jit_dump_bitcode = false |
Definition at line 35 of file jit.c.
Referenced by llvm_compile_module().
| bool jit_enabled = true |
Definition at line 32 of file jit.c.
Referenced by provider_init(), and standard_planner().
| bool jit_expressions = true |
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().
| bool jit_profiling_support = false |
Definition at line 37 of file jit.c.
Referenced by llvm_create_object_layer().
| char* jit_provider = NULL |
Definition at line 33 of file jit.c.
Referenced by provider_init().
| bool jit_tuple_deforming = true |
Definition at line 38 of file jit.c.
Referenced by standard_planner().
|
static |
Definition at line 43 of file jit.c.
Referenced by pg_collation_actual_version(), and register_label_provider().
|
static |
Definition at line 45 of file jit.c.
Referenced by provider_init().
|
static |
Definition at line 44 of file jit.c.
Referenced by jit_release_context(), jit_reset_after_error(), and provider_init().