Patchpoint intrinsic is not recognized

I assume I’m doing something wrong, but the llvm.experimental.patchpoint.* intrinsic seems to not be functional at all.

In my example, I use both the stackmap and patchpoint intrinsics. The stack map intrinsic seems to work and adds information to the stack map, but the patchpoint intrinsic generates a simple function call (call llvm.experimental.patchpoint.i32@PLT).

Here’s a link to the example: Compiler Explorer

I found the problem myself by looking at the source code. The patchpoint intrinsic is not in fact an overloaded intrinsic; actually there are just two of them, one returning void, and one i64.