The GPU port of the LLVM C library needs to export a few extensions to
the interface such that users can interface with it. This patch adds the
necessary logic to define a GPU extension. Currently, this only exports
a rpc_reset_client function. This allows us to use the server in
D147054 to set up the RPC interface outside of libc.
Depends on https://reviews.llvm.org/D147054
The CMake machinery will look for an entrypoint named reset but more importantly, libc-hdrgen will also look for a function named reset in a spec. Since you do not have a function with name reset, I would have expected libc-hdrgen to error out somewhere. To solve your problem, rename the entrypoint target to match the function name.