https://github.com/arsenm created https://github.com/llvm/llvm-project/pull/147914
SjLjEHPrepare and WasmEHPrepare directly emit calls to these by name, and these are not tracked in RuntimeLibcalls. It will be easier to fix this when RuntimeLibcalls is turned into an analysis, so just add the entries for now. >From ed4c2aa093671da9ee9153d25eb66725bd233dd7 Mon Sep 17 00:00:00 2001 From: Matt Arsenault <matthew.arsena...@amd.com> Date: Thu, 10 Jul 2025 14:42:17 +0900 Subject: [PATCH] RuntimeLibcalls: Add entries for some exception related functions SjLjEHPrepare and WasmEHPrepare directly emit calls to these by name, and these are not tracked in RuntimeLibcalls. It will be easier to fix this when RuntimeLibcalls is turned into an analysis, so just add the entries for now. --- llvm/include/llvm/IR/RuntimeLibcalls.td | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/llvm/include/llvm/IR/RuntimeLibcalls.td b/llvm/include/llvm/IR/RuntimeLibcalls.td index f7598979ca4c5..29de1206a8974 100644 --- a/llvm/include/llvm/IR/RuntimeLibcalls.td +++ b/llvm/include/llvm/IR/RuntimeLibcalls.td @@ -263,6 +263,9 @@ foreach MemSize = [1, 2, 4, 8, 16] in { // Exception handling def UNWIND_RESUME : RuntimeLibcall; +def UNWIND_REGISTER : RuntimeLibcall; +def UNWIND_UNREGISTER : RuntimeLibcall; +def UNWIND_CALL_PERSONALITY : RuntimeLibcall; def CXA_END_CLEANUP : RuntimeLibcall; // Note: there are two sets of atomics libcalls; see @@ -918,6 +921,9 @@ defm sincos : LibmLongDoubleLibCall; def bzero : RuntimeLibcallImpl<BZERO>; def __bzero : RuntimeLibcallImpl<BZERO>; def _Unwind_SjLj_Resume : RuntimeLibcallImpl<UNWIND_RESUME>; +def _Unwind_SjLj_Register : RuntimeLibcallImpl<UNWIND_REGISTER>; +def _Unwind_SjLj_Unregister : RuntimeLibcallImpl<UNWIND_UNREGISTER>; +def _Unwind_CallPersonality : RuntimeLibcallImpl<UNWIND_CALL_PERSONALITY>; // Used on OpenBSD def __stack_smash_handler : RuntimeLibcallImpl<STACK_SMASH_HANDLER>; _______________________________________________ llvm-branch-commits mailing list llvm-branch-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits