llvm-project
07896d44 - [OpenMP] Emit aggregate kernel prototypes and remove libffi dependency (#186261)

Commit
3 days ago
[OpenMP] Emit aggregate kernel prototypes and remove libffi dependency (#186261) Summary: This PR changes the handling of the emitted kernels when targeting a CPU to be a pointer struct. The old handling emitted a standard function prototype, this necessitated a target specific ABI to call it because the signature differed with the number of arguments. Instead, this PR emits a void pointer to a naturally aligned struct, this is what APIs like `pthreads` assert. This allows us to remove all the complexity around launching host kernels and just pass the argument list.
Author
Parents
Loading