)]}'
{
  "commit": "a774e7f7b15dbc1a7d4811f155b3a8834b6b7ff8",
  "tree": "5e2880bf85662b48404899b31d0cbd7298cb530b",
  "parents": [
    "66acb2694655321b37a1ee3ff19207a111756562"
  ],
  "author": {
    "name": "Vyacheslav Levytskyy",
    "email": "vyacheslav.levytskyy@intel.com",
    "time": "Tue Jan 07 11:14:10 2025 +0100"
  },
  "committer": {
    "name": "GitHub",
    "email": "noreply@github.com",
    "time": "Tue Jan 07 11:14:10 2025 +0100"
  },
  "message": "[SPIR-V] Fix OpName and LinkageAttributes decoration of global variables (#120492)\n\nThis PR changes `getGlobalIdentifier()` into `getName()` value when\r\ncreating a name of a global variable, and fixes generation of\r\nLinkageAttributes decoration of global variables by taking into account\r\nPrivate Linkage in addition to Internal.\r\n\r\nPrevious implementation led to an issue with back translation of SPIR-V\r\nto LLVM IR, e.g.:\r\n\r\n```\r\n@__const.G1 \u003d private unnamed_addr addrspace(1) constant %my_type undef\r\n...\r\nFails to verify module: \u0027common\u0027 global may not be marked constant!\r\nptr addrspace(1) @\"llvm-link;__const.G1\"\r\n```\r\n\r\nA reproducer is included as a new test case.",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "77b54219a9acc4f7de16a5affef9a5087f8e55e2",
      "old_mode": 33188,
      "old_path": "llvm/lib/Target/SPIRV/SPIRVEmitIntrinsics.cpp",
      "new_id": "d2b14d6d058c92969e93134fe30e2f5fe6238839",
      "new_mode": 33188,
      "new_path": "llvm/lib/Target/SPIRV/SPIRVEmitIntrinsics.cpp"
    },
    {
      "type": "modify",
      "old_id": "db970275ebd5b4555126bc481899cf690115335b",
      "old_mode": 33188,
      "old_path": "llvm/lib/Target/SPIRV/SPIRVInstructionSelector.cpp",
      "new_id": "237f71a1b70e50a5398febee156fa259852f0519",
      "new_mode": 33188,
      "new_path": "llvm/lib/Target/SPIRV/SPIRVInstructionSelector.cpp"
    },
    {
      "type": "modify",
      "old_id": "da2e24c0c9abe950e2f901b77a58c61fb443fa41",
      "old_mode": 33188,
      "old_path": "llvm/lib/Target/SPIRV/SPIRVUtils.h",
      "new_id": "60649eac6281510ad50e98422b9ac706719df934",
      "new_mode": 33188,
      "new_path": "llvm/lib/Target/SPIRV/SPIRVUtils.h"
    },
    {
      "type": "add",
      "old_id": "0000000000000000000000000000000000000000",
      "old_mode": 0,
      "old_path": "/dev/null",
      "new_id": "4501819ce4940376101379fba4b29da06a344170",
      "new_mode": 33188,
      "new_path": "llvm/test/CodeGen/SPIRV/global-var-name-linkage.ll"
    }
  ]
}
