)]}'
{
  "commit": "951c67d4dbed4f87f366f1f911bc061bc6da1912",
  "tree": "4aff6a10a49a31f20019590e219afae9b430cbb1",
  "parents": [
    "a80153ea4f7dfcd6e0dcf2b415f9ace3cd54015a"
  ],
  "author": {
    "name": "Matt Arsenault",
    "email": "Matthew.Arsenault@amd.com",
    "time": "Fri Jun 12 11:22:36 2026 +0200"
  },
  "committer": {
    "name": "GitHub",
    "email": "noreply@github.com",
    "time": "Fri Jun 12 11:22:36 2026 +0200"
  },
  "message": "clang/AMDGPU: Use TranslateArgs from the base toolchain instead of the host (#198627)\n\nThis fixes -Xopenmp-target / -Xarch for arbitrary arguments. HIP and\nOpenMP had cargo-cult broken implementations of TranslateArgs, which called the\nhost toolchain\u0027s implementation, and then special case transferred either\n-march or -mcpu to the device argument list. The respective device forwarding\nflags should work for any argument, not just this one. The main feature that\nneeds to be preserved is the shared filtering of unsupported sanitizers to\ndegrade them into warnings.\n\nMost of the changes here are dealing with fallout observed when\nthe host target is darwin. The darwin toolchain happens to have\nsome hacky statefulness tracking the compile target version, which\ngets written and rewritten on argument parsing. To maintain this hack,\nthere are a few unused calls to getArgsForToolChain; start passing\nOFK_Host to these so the offload toolchains don\u0027t get confused and think \nthey\u0027re in a non-offload context.",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "5cbf98fc074b66742f1f22e2495acc72e475c5e7",
      "old_mode": 33188,
      "old_path": "clang/lib/Driver/Driver.cpp",
      "new_id": "165a1e2a6c29f878574e8b4fbdc6cd1736c30c2b",
      "new_mode": 33188,
      "new_path": "clang/lib/Driver/Driver.cpp"
    },
    {
      "type": "modify",
      "old_id": "fc4bcfc2fe8657e0c9fbbcb84fb0f7a3ce94a843",
      "old_mode": 33188,
      "old_path": "clang/lib/Driver/ToolChain.cpp",
      "new_id": "8db726cedfe90cbc3617e8662c78a3240628b787",
      "new_mode": 33188,
      "new_path": "clang/lib/Driver/ToolChain.cpp"
    },
    {
      "type": "modify",
      "old_id": "b51ad4e66edb7afe000d218715143b18d7c50c65",
      "old_mode": 33188,
      "old_path": "clang/lib/Driver/ToolChains/AMDGPU.cpp",
      "new_id": "b0421f795bf41461e62cc90c41b7bbf7e14a0554",
      "new_mode": 33188,
      "new_path": "clang/lib/Driver/ToolChains/AMDGPU.cpp"
    },
    {
      "type": "modify",
      "old_id": "2c3465a162dfc19cf7e6a829aace294394eb7061",
      "old_mode": 33188,
      "old_path": "clang/lib/Driver/ToolChains/AMDGPU.h",
      "new_id": "66b269ca8aa05e4d7adf53120654041939fe6fc5",
      "new_mode": 33188,
      "new_path": "clang/lib/Driver/ToolChains/AMDGPU.h"
    },
    {
      "type": "modify",
      "old_id": "e7a169a37446494f14cd266f81dec324338d6898",
      "old_mode": 33188,
      "old_path": "clang/lib/Driver/ToolChains/AMDGPUOpenMP.cpp",
      "new_id": "9a90e491bb27d1496e0d5f15d17632a5ff6df2d5",
      "new_mode": 33188,
      "new_path": "clang/lib/Driver/ToolChains/AMDGPUOpenMP.cpp"
    },
    {
      "type": "modify",
      "old_id": "7e212f15a9ebcb973bc12e8c2931ee9c6fd43e05",
      "old_mode": 33188,
      "old_path": "clang/lib/Driver/ToolChains/AMDGPUOpenMP.h",
      "new_id": "bc8b195383c6fe609fc81ac4ee4a0e366c617e2e",
      "new_mode": 33188,
      "new_path": "clang/lib/Driver/ToolChains/AMDGPUOpenMP.h"
    },
    {
      "type": "modify",
      "old_id": "c489a1bddcb26a5ebccb705bbb792d9c387fbcb9",
      "old_mode": 33188,
      "old_path": "clang/lib/Driver/ToolChains/Gnu.cpp",
      "new_id": "0bb51de630c9978aefec1b408237763d232eee8f",
      "new_mode": 33188,
      "new_path": "clang/lib/Driver/ToolChains/Gnu.cpp"
    },
    {
      "type": "modify",
      "old_id": "4adb84f353d25cdfa05cff5c0b370aa2eae34be0",
      "old_mode": 33188,
      "old_path": "clang/lib/Driver/ToolChains/HIPAMD.cpp",
      "new_id": "01cb23d0aa230fd6d7930cd1ea4a7cfd91d6042b",
      "new_mode": 33188,
      "new_path": "clang/lib/Driver/ToolChains/HIPAMD.cpp"
    },
    {
      "type": "modify",
      "old_id": "8277119bf93481269cde7de47b98f62abb76d73c",
      "old_mode": 33188,
      "old_path": "clang/lib/Driver/ToolChains/HIPAMD.h",
      "new_id": "628124f4bc71c3511fc3ed83792f15afd147069b",
      "new_mode": 33188,
      "new_path": "clang/lib/Driver/ToolChains/HIPAMD.h"
    },
    {
      "type": "add",
      "old_id": "0000000000000000000000000000000000000000",
      "old_mode": 0,
      "old_path": "/dev/null",
      "new_id": "3a3ab7267bd704d81756b52ab0dfed8d14c1e601",
      "new_mode": 33188,
      "new_path": "clang/test/Driver/offload-darwin-host.hip"
    },
    {
      "type": "add",
      "old_id": "0000000000000000000000000000000000000000",
      "old_mode": 0,
      "old_path": "/dev/null",
      "new_id": "5749df973ed78b722603a63645d77f88dd81e5b4",
      "new_mode": 33188,
      "new_path": "clang/test/Driver/openmp-Xopenmp-target-forward-args.c"
    }
  ]
}
