summaryrefslogtreecommitdiff
path: root/src/include/jit
diff options
context:
space:
mode:
authorAndres Freund2018-11-16 06:00:30 +0000
committerAndres Freund2018-11-16 06:00:30 +0000
commit7ef04e4d2cb287e4e28b87f24b4b36ef4e07530b (patch)
treee878bcae3a3007b491525796a45f26b9b6655938 /src/include/jit
parent15d8f83128e15de97de61430d0b9569f5ebecc26 (diff)
Don't generate tuple deforming functions for virtual slots.
Virtual tuple table slots never need tuple deforming. Therefore, if we know at expression compilation time, that a certain slot will always be virtual, there's no need to create a tuple deforming routine for it. Author: Andres Freund Discussion: https://postgr.es/m/20181105210039.hh4vvi4vwoq5ba2q@alap3.anarazel.de
Diffstat (limited to 'src/include/jit')
-rw-r--r--src/include/jit/llvmjit.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/include/jit/llvmjit.h b/src/include/jit/llvmjit.h
index f3ea249283..3eae5e6831 100644
--- a/src/include/jit/llvmjit.h
+++ b/src/include/jit/llvmjit.h
@@ -111,7 +111,9 @@ extern void llvm_inline(LLVMModuleRef mod);
****************************************************************************
*/
extern bool llvm_compile_expr(struct ExprState *state);
-extern LLVMValueRef slot_compile_deform(struct LLVMJitContext *context, TupleDesc desc, int natts);
+struct TupleTableSlotOps;
+extern LLVMValueRef slot_compile_deform(struct LLVMJitContext *context, TupleDesc desc,
+ const struct TupleTableSlotOps *ops, int natts);
/*
****************************************************************************