[all-commits] [llvm/llvm-project] 091152: clang: Construct toolchains with normalized triples

Matt Arsenault via All-commits all-commits at lists.llvm.org
Fri Jun 5 08:52:34 PDT 2026


  Branch: refs/heads/users/arsenm/clang/construct-toolchain-normalized-triple
  Home:   https://github.com/llvm/llvm-project
  Commit: 091152ebc9cda1794308aa182479ad13876f082b
      https://github.com/llvm/llvm-project/commit/091152ebc9cda1794308aa182479ad13876f082b
  Author: Matt Arsenault <Matthew.Arsenault at amd.com>
  Date:   2026-06-05 (Fri, 05 Jun 2026)

  Changed paths:
    M clang/lib/Driver/Driver.cpp
    M clang/lib/Driver/ToolChain.cpp
    M clang/lib/Driver/ToolChains/Clang.cpp
    M clang/lib/Driver/ToolChains/HIPUtility.cpp
    M clang/lib/Driver/ToolChains/Hexagon.cpp
    M clang/test/Driver/aarch64-cortex-a35.c
    M clang/test/Driver/aarch64-cortex-a53.c
    M clang/test/Driver/aarch64-cortex-a55.c
    M clang/test/Driver/aarch64-cortex-a57.c
    M clang/test/Driver/aarch64-cortex-a72.c
    M clang/test/Driver/aarch64-cortex-a73.c
    M clang/test/Driver/aarch64-cortex-a75.c
    M clang/test/Driver/aarch64-cortex-a76.c
    M clang/test/Driver/aarch64-fp16.c
    M clang/test/Driver/aarch64-march.c
    M clang/test/Driver/aarch64-mcpu.c
    M clang/test/Driver/aarch64-oryon-1.c
    M clang/test/Driver/aarch64-thunderx2t99.c
    M clang/test/Driver/aarch64-thunderx3t110.c
    M clang/test/Driver/aarch64-v81a.c
    M clang/test/Driver/aarch64-v83a.c
    M clang/test/Driver/aarch64-v84a.c
    M clang/test/Driver/aarch64-v8a.c
    M clang/test/Driver/print-enabled-extensions/aarch64-grace.c

  Log Message:
  -----------
  clang: Construct toolchains with normalized triples

Avoid littering calls to normalize around by ensuring toolchains
always use a normalized triple. The test changes are due to
inconsistencies in the behavior of the triple APIs. If the arch name
is empty, normalize leaves it unchanged. If the triple is archname--,
normalize will expand the empty groups to be unknown. setArchName
will introduce the empty groups, which occurs in some of the triple
modifying driver path (mostly the handling of the endianness -m flags).

Driver is still holding onto a raw, unnormalized string triple but
leave that for a later cleanup.

Co-authored-by: Claude Sonnet 4 <noreply at anthropic.com>



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