[compiler-rt] [llvm] [PGO][AMDGPU] Add basic HIP offload PGO support (PR #177665)
Yaxun Liu via llvm-commits
llvm-commits at lists.llvm.org
Mon Apr 27 07:06:11 PDT 2026
================
@@ -99,6 +99,20 @@ def get_required_attr(config, attr_name):
clang_asan_cflags = clang_asan_static_cflags + asan_dynamic_flags
clang_asan_cxxflags = clang_asan_static_cxxflags + asan_dynamic_flags
+# PR A can build clang_rt.profile with /MD on Windows when it merges
+# RTInterception / RTSanitizerCommon. Tests that combine ASan with -coverage
+# link that profile archive too, so give them the same CRT model override that
+# check-profile already uses.
+asan_profile_flags = []
+if platform.system() == "Windows" and target_is_msvc:
----------------
yxsamliu wrote:
Thanks for taking a look.
This substitution is used by an existing lit test in this PR: asan_and_llvm_coverage_test.cpp switches from %clangxx_asan to %clangxx_asan_with_profile. That test uses -coverage, so it links clang_rt.profile in addition to ASan.
The change is only necessary together with the profile runtime change in this PR. This PR needs clang_rt.profile to use RTInterception / RTSanitizerCommon for the ROCm profile collection path, and on Windows those objects use the dynamic CRT. The ASan coverage test then needs the same CRT model to avoid the profile runtime link mismatch, just like the Profile-* tests.
So if I split this out, it would become a preparatory change without a real current need. I kept it here because the need is introduced by this PR. I can make the comment/name clearer if that would help.
https://github.com/llvm/llvm-project/pull/177665
More information about the llvm-commits
mailing list