[all-commits] [llvm/llvm-project] b25bc3: clang: Construct toolchains with normalized triple...

Matt Arsenault via All-commits all-commits at lists.llvm.org
Wed Jun 10 10:31:35 PDT 2026


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: b25bc371ac5a97b4e91b5b4632923007e33f20f1
      https://github.com/llvm/llvm-project/commit/b25bc371ac5a97b4e91b5b4632923007e33f20f1
  Author: Matt Arsenault <Matthew.Arsenault at amd.com>
  Date:   2026-06-10 (Wed, 10 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

  Log Message:
  -----------
  clang: Construct toolchains with normalized triples (#201869)

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