Run LLVM verify pass on IR in assert builds.

Thomas Munro <tmunro@postgresql.org>

Commit: 8583b1f99340f4de24661dc50ab63ec6965f6759
Author: Thomas Munro <tmunro@postgresql.org>
Date: 2024-07-15T09:48:48Z
Releases: 18.0
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

Files

PathChange+/−
src/backend/jit/llvm/llvmjit.c modified +5 −0
src/backend/jit/llvm/llvmjit_expr.c modified +1 −1

Discussion