aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/Sema/SemaModule.cpp
diff options
context:
space:
mode:
authorPierre van Houtryve <pierre.vanhoutryve@amd.com>2024-06-24 08:46:53 +0200
committerGitHub <noreply@github.com>2024-06-24 08:46:53 +0200
commit1c025fb02d0fa15b76ca816d8414d532a687ebeb (patch)
tree836afd3659390073da5cfc0eba61ecab1478c567 /clang/lib/Sema/SemaModule.cpp
parent9e8ccf6b6410a598f94d2ce4c29d753b8609c907 (diff)
downloadllvm-1c025fb02d0fa15b76ca816d8414d532a687ebeb.zip
llvm-1c025fb02d0fa15b76ca816d8414d532a687ebeb.tar.gz
llvm-1c025fb02d0fa15b76ca816d8414d532a687ebeb.tar.bz2
[AMDGPU][SplitModule] Allow non-kernels to be treated as roots (#95902)
I initially assumed only kernels could be roots, but that is wrong. A function with no callers also needs to be a root to ensure it is correctly handled. They're very rare because we usually internalize everything, and internal functions with no callers would be deleted. When they are present, we need to also consider their dependencies and act accordingly. Previously, we could put a function "by default" in P0, but it could call another function with internal linkage defined in another module which was of course incorrect. Fixes SWDEV-467695
Diffstat (limited to 'clang/lib/Sema/SemaModule.cpp')
0 files changed, 0 insertions, 0 deletions