llvm-6502/include
Erik Eckstein 953be88190 Add a lock() function in PassRegistry to speed up multi-thread synchronization.
When calling lock() after all passes are registered, the PassRegistry doesn't need a mutex anymore to look up passes.
This speeds up multithreaded llvm execution by ~5% (tested with 4 threads).
In an asserts build of llvm this has an even bigger impact.

Note that it's not required to use the lock function.



git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@231276 91177308-0d34-0410-b5e6-96231b3b80d8
2015-03-04 18:57:11 +00:00
..
llvm Add a lock() function in PassRegistry to speed up multi-thread synchronization. 2015-03-04 18:57:11 +00:00
llvm-c Restore LLVMLinkModules C API until it is properly deprecated. 2015-03-02 18:59:38 +00:00