mirror of
https://github.com/postgres/postgres.git
synced 2025-09-02 04:21:28 +03:00
Pre-beta mechanical code beautification.
Run pgindent, pgperltidy, and reformat-dat-files. This set of diffs is a bit larger than typical. We've updated to pg_bsd_indent 2.1.2, which properly indents variable declarations that have multi-line initialization expressions (the continuation lines are now indented one tab stop). We've also updated to perltidy version 20230309 and changed some of its settings, which reduces its desire to add whitespace to lines to make assignments etc. line up. Going forward, that should make for fewer random-seeming changes to existing code. Discussion: https://postgr.es/m/20230428092545.qfb3y5wcu4cm75ur@alvherre.pgsql
This commit is contained in:
@@ -799,9 +799,9 @@ llvm_session_initialize(void)
|
||||
LLVMInitializeNativeAsmParser();
|
||||
|
||||
/*
|
||||
* When targeting an LLVM version with opaque pointers enabled by
|
||||
* default, turn them off for the context we build our code in. We don't
|
||||
* need to do so for other contexts (e.g. llvm_ts_context). Once the IR is
|
||||
* When targeting an LLVM version with opaque pointers enabled by default,
|
||||
* turn them off for the context we build our code in. We don't need to
|
||||
* do so for other contexts (e.g. llvm_ts_context). Once the IR is
|
||||
* generated, it carries the necessary information.
|
||||
*/
|
||||
#if LLVM_VERSION_MAJOR > 14
|
||||
@@ -1118,7 +1118,7 @@ llvm_resolve_symbol(const char *symname, void *ctx)
|
||||
|
||||
static LLVMErrorRef
|
||||
llvm_resolve_symbols(LLVMOrcDefinitionGeneratorRef GeneratorObj, void *Ctx,
|
||||
LLVMOrcLookupStateRef * LookupState, LLVMOrcLookupKind Kind,
|
||||
LLVMOrcLookupStateRef *LookupState, LLVMOrcLookupKind Kind,
|
||||
LLVMOrcJITDylibRef JD, LLVMOrcJITDylibLookupFlags JDLookupFlags,
|
||||
LLVMOrcCLookupSet LookupSet, size_t LookupSetSize)
|
||||
{
|
||||
@@ -1175,7 +1175,7 @@ static LLVMOrcObjectLayerRef
|
||||
llvm_create_object_layer(void *Ctx, LLVMOrcExecutionSessionRef ES, const char *Triple)
|
||||
{
|
||||
LLVMOrcObjectLayerRef objlayer =
|
||||
LLVMOrcCreateRTDyldObjectLinkingLayerWithSectionMemoryManager(ES);
|
||||
LLVMOrcCreateRTDyldObjectLinkingLayerWithSectionMemoryManager(ES);
|
||||
|
||||
#if defined(HAVE_DECL_LLVMCREATEGDBREGISTRATIONLISTENER) && HAVE_DECL_LLVMCREATEGDBREGISTRATIONLISTENER
|
||||
if (jit_debugging_support)
|
||||
|
@@ -650,7 +650,7 @@ slot_compile_deform(LLVMJitContext *context, TupleDesc desc,
|
||||
{
|
||||
LLVMValueRef v_tmp_loaddata;
|
||||
LLVMTypeRef vartypep =
|
||||
LLVMPointerType(LLVMIntType(att->attlen * 8), 0);
|
||||
LLVMPointerType(LLVMIntType(att->attlen * 8), 0);
|
||||
|
||||
v_tmp_loaddata =
|
||||
LLVMBuildPointerCast(b, v_attdatap, vartypep, "");
|
||||
|
@@ -1047,7 +1047,7 @@ llvm_compile_expr(ExprState *state)
|
||||
else
|
||||
{
|
||||
LLVMValueRef v_value =
|
||||
LLVMBuildLoad(b, v_resvaluep, "");
|
||||
LLVMBuildLoad(b, v_resvaluep, "");
|
||||
|
||||
v_value = LLVMBuildZExt(b,
|
||||
LLVMBuildICmp(b, LLVMIntEQ,
|
||||
@@ -2127,8 +2127,7 @@ llvm_compile_expr(ExprState *state)
|
||||
|
||||
/*
|
||||
* pergroup = &aggstate->all_pergroups
|
||||
* [op->d.agg_trans.setoff]
|
||||
* [op->d.agg_trans.transno];
|
||||
* [op->d.agg_trans.setoff] [op->d.agg_trans.transno];
|
||||
*/
|
||||
v_allpergroupsp =
|
||||
l_load_struct_gep(b, v_aggstatep,
|
||||
|
Reference in New Issue
Block a user