[llvm-dev] Multi-Threading Compilers
David Chisnall via llvm-dev
llvm-dev at lists.llvm.org
Thu Mar 26 04:09:18 PDT 2020
On 26/03/2020 11:06, Florian Hahn via llvm-dev wrote:
> One problem is that function passes can add new global, e.g. new declarations if they introduce new calls. I guess that would require some locking, but should happen quite infrequently.
Can they? I have had to make a pass a ModulePass in the past, because
it added a global to hold a cache. The global was used in only the
function being modified, but the fact that it was a global prevented the
pass from being a FunctionPass.
More information about the llvm-dev