llvm-project/llvm/test/ExecutionEngine
Sunho Kim 7d101e43cd [ORC][LLJIT] Define atexit symbol in GenericLLVMIRPlatformSupport.
Define atexit symbol in GenericLLVMIRPlatformSupport so that it doesn't need to be defined by user.

On windows, llvm codegen emits atexit runtime calls to support global deinitializers as there is no lower function like cxa_atexit as in Itanium C++ ABI. ORC JIT user had to define custom atexit symbol manually. This was a hassle as it has to deal with dso_handle and cxa_atexit internals of LLJIT. If client didn't provide atexit definition, the default behaviour is just linking with host atexit function which is destined to fail as it calls dtors when the host program exits. This is after jit instances and buffers are freed, so users would see weird access violation exception from the uknown location. (in console application, the debugger thinks exception happened in scrt_common_main_seh)

This is a hack that has some caveats. (e.g. memory address is not identical) But, it's better than the situation described in the above. Ultimately, we will move on to ORC runtime that is able to solve the memory address issue properly.

Reviewed By: sgraenitz

Differential Revision: https://reviews.llvm.org/D128037
2022-06-26 03:50:08 +09:00
..
Interpreter
JITLink [JITLink][ELF][AArch64] Implement R_AARCH64_MOVW_UABS_G*_NC. 2022-06-14 14:06:59 +09:00
MCJIT [NFC] Disabled few tests with MemoryWithOrigins 2021-11-04 18:18:03 -07:00
Orc [ORC] Fix handling of casts in llvm.global_ctors. 2022-04-07 17:06:38 -07:00
OrcLazy [ORC][LLJIT] Define atexit symbol in GenericLLVMIRPlatformSupport. 2022-06-26 03:50:08 +09:00
RuntimeDyld RuntimeDyldELF: Don't abort on R_AARCH64_NONE relocation 2022-01-13 11:54:48 +03:00
2010-01-15-UndefValue.ll
fma3-jit.ll
frem.ll
lit.local.cfg [RISCV] Make old JIT ExecutionEngine tests unsupported 2022-05-24 03:01:00 +02:00
mov64zext32.ll
test-interp-vec-arithm_float.ll
test-interp-vec-arithm_int.ll
test-interp-vec-cast.ll
test-interp-vec-insertelement.ll
test-interp-vec-insertextractvalue.ll
test-interp-vec-loadstore.ll
test-interp-vec-logical.ll
test-interp-vec-select.ll
test-interp-vec-setcond-fp.ll
test-interp-vec-setcond-int.ll
test-interp-vec-shift.ll
test-interp-vec-shuffle.ll