jit: Reference function pointer types via llvmjit_types.c.
Andres Freund <andres@anarazel.de>
jit: Reference function pointer types via llvmjit_types.c. It is error prone (see 5da871bfa1b) and verbose to manually create function types. Add a helper that can reference a function pointer type via llvmjit_types.c and and convert existing instances of manual creation. Author: Andres Freund <andres@anarazel.de> Reviewed-By: Tom Lane <tgl@sss.pgh.pa.us> Discussion: https://postgr.es/m/20201207212142.wz5tnbk2jsaqzogb@alap3.anarazel.de
Files
| Path | Change | +/− |
|---|---|---|
| src/backend/jit/llvm/llvmjit.c | modified | +58 −37 |
| src/backend/jit/llvm/llvmjit_expr.c | modified | +7 −26 |
| src/backend/jit/llvm/llvmjit_types.c | modified | +2 −0 |
| src/include/jit/llvmjit.h | modified | +2 −0 |
Discussion
- [PATCH] Generic type subscripting 276 messages · 2017-02-28 → 2021-02-01