[clang] [llvm] [TargetParser][PGO] NVPTX does not support COMDAT (PR #245705)
Matt Arsenault via cfe-commits
cfe-commits at lists.llvm.org
Tue Dec 1 14:53:05 PST 2026
================
@@ -1,9 +1,6 @@
-; ptxas and nvlink do not support COMDAT (see Triple::supportsCOMDAT): A COMDAT
-; group set in LLVM IR is thus simply dropped when lowered, leaving only the
-; linkage upgrade from weak to external that LLVM bundles with COMDAT. If these
-; variables took that upgrade, linking more than one translation unit together
-; would then trigger an nvlink "multiple definition" error on the resulting
-; plain, non-weak duplicate symbol.
+; Check that these variables are not COMDAT for NVPTX. ptxas and nvlink do not
+; support it, so lowering would drop it. External linkage among multiple
----------------
arsenm wrote:
Double spaces
https://github.com/llvm/llvm-project/pull/245705
More information about the cfe-commits
mailing list