[all-commits] [llvm/llvm-project] 099245: clang: Use Triple::isCompatibleWith to match OpenM...

Matt Arsenault via All-commits all-commits at lists.llvm.org
Mon May 4 13:01:02 PDT 2026


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 099245af4e70268acbeea72064b755b4e6e025be
      https://github.com/llvm/llvm-project/commit/099245af4e70268acbeea72064b755b4e6e025be
  Author: Matt Arsenault <Matthew.Arsenault at amd.com>
  Date:   2026-05-04 (Mon, 04 May 2026)

  Changed paths:
    M clang/lib/Driver/ToolChain.cpp
    M clang/test/Driver/openmp-offload.c

  Log Message:
  -----------
  clang: Use Triple::isCompatibleWith to match OpenMP arguments (#195724)

Previously this was performing an exact string comparison
of the triple. Use the triple predicate so that in the future
amdgpu triples without a subarch will be considered compatible
with triples that do. This preserves compatibility with existing
uses without a subarch.

Note that if you swap the triples, there's an assert in
buildCompilerRTBasename but this appears to be a pre-existing
issue I can reproduce without the patch (but I can't reproduce
on godbolt for some reason).



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list