[all-commits] [llvm/llvm-project] 6f48ec: clang: Stop assuming one toolchain covers all GPUA...

Matt Arsenault via All-commits all-commits at lists.llvm.org
Fri Apr 3 10:33:26 PDT 2026


  Branch: refs/heads/users/arsenm/clang/driver-stop-assuming-one-toolchain-all-gpu-arches
  Home:   https://github.com/llvm/llvm-project
  Commit: 6f48ec2579360623d879a61a535f807d05945780
      https://github.com/llvm/llvm-project/commit/6f48ec2579360623d879a61a535f807d05945780
  Author: Matt Arsenault <Matthew.Arsenault at amd.com>
  Date:   2026-04-03 (Fri, 03 Apr 2026)

  Changed paths:
    M clang/lib/Driver/Driver.cpp

  Log Message:
  -----------
  clang: Stop assuming one toolchain covers all GPUArchs

Previously there was a vector of toolchains, but a number of
places assumed there was only a single toolchain. I'm also not
sure how you were supposed to identify which toolchain to use from
this array. Make this parallel to the stored GpuArches. For
the fat binary cases, we still need to pick a toolchain so that
still just picks the first one; it probably should use
the most neutral available triple.

This also doesn't feel like a complete fix. The various Actions
all contain a reference to an OffloadingToolChain, which seems
to frequently be missing and isn't set at construction time.



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