How does OrcJIT or MCJIT implement function-level parallel compilation on a huge module? (original) (raw)
September 13, 2023, 9:22am 1
I have a huge module with about 800 functions in it. Now I want to use MCJIT or OrcJIT for multi-thread compilation. I plan to use 8 worker threads and compile 100 functions per thread.
But I found that MCJIT cannot achieve parallel compilation, while OrcJIT can only perform parallel compilation at the Module level.
So can OrcJIT achieve function-level parallel compilation? Can you give some sample code?