llvm-project/llvm/unittests/ExecutionEngine/MCJIT
Juergen Ributzka 34390c70a5 Add C API for thread yielding callback.
Sometimes a LLVM compilation may take more time then a client would like to
wait for. The problem is that it is not possible to safely suspend the LLVM
thread from the outside. When the timing is bad it might be possible that the
LLVM thread holds a global mutex and this would block any progress in any other
thread.

This commit adds a new yield callback function that can be registered with a
context. LLVM will try to yield by calling this callback function, but there is
no guaranteed frequency. LLVM will only do so if it can guarantee that
suspending the thread won't block any forward progress in other LLVM contexts
in the same process.

Once the client receives the call back it can suspend the thread safely and
resume it at another time.

Related to <rdar://problem/16728690>

llvm-svn: 208945
2014-05-16 02:33:15 +00:00
..
CMakeLists.txt Stackmaps are used for OSR exits, which is a custom kind of unwinding. Hence, they 2014-02-20 23:57:31 +00:00
MCJITCAPITest.cpp Add C API for thread yielding callback. 2014-05-16 02:33:15 +00:00
MCJITMemoryManagerTest.cpp Replace OwningPtr<T> with std::unique_ptr<T>. 2014-03-06 05:51:42 +00:00
MCJITMultipleModuleTest.cpp Replace OwningPtr<T> with std::unique_ptr<T>. 2014-03-06 05:51:42 +00:00
MCJITObjectCacheTest.cpp Replace OwningPtr<T> with std::unique_ptr<T>. 2014-03-06 05:51:42 +00:00
MCJITTest.cpp [C++11] Replace OwningPtr::take() with OwningPtr::release(). 2014-03-05 10:19:29 +00:00
MCJITTestAPICommon.h MCJIT: ensure that cygwin is identified properly 2014-03-31 23:42:23 +00:00
MCJITTestBase.h MCJIT: ensure that cygwin is identified properly 2014-03-31 23:42:23 +00:00
MCJITTests.def
Makefile Stackmaps are used for OSR exits, which is a custom kind of unwinding. Hence, they 2014-02-20 23:57:31 +00:00