]> git.ipfire.org Git - thirdparty/postgresql.git/commit
Run LLVM verify pass on IR in assert builds.
authorThomas Munro <tmunro@postgresql.org>
Mon, 15 Jul 2024 04:20:09 +0000 (16:20 +1200)
committerThomas Munro <tmunro@postgresql.org>
Mon, 15 Jul 2024 09:48:48 +0000 (21:48 +1200)
commit8583b1f99340f4de24661dc50ab63ec6965f6759
tree4a18c92b90612f218725b0c2bbe50b35388f1b79
parent91651347bae1026afefc648ff939e286878c1cf3
Run LLVM verify pass on IR in assert builds.

The problem fixed by commit 53c8d6c9 would have been noticed if we'd
been running LLVM's verify pass on generated IR.  Doing so also reveals
a complaint about incorrect name mangling, fixed here.  Only enabled for
LLVM 17+ because it uses the new pass manager API.

Suggested-by: Dmitry Dolgov <9erthalion6@gmail.com>
Discussion: https://postgr.es/m/CAFj8pRACpVFr7LMdVYENUkScG5FCYMZDDdSGNU-tch%2Bw98OxYg%40mail.gmail.com
src/backend/jit/llvm/llvmjit.c
src/backend/jit/llvm/llvmjit_expr.c