)]}'
{
  "commit": "807da25704b2605177cefb449d2df9901674f166",
  "tree": "19e024aedd51dc8d10c3ba4e96c9fe8bf3a50bef",
  "parents": [
    "cc43680728795cb7aa87999ffecca8ec10bed682"
  ],
  "author": {
    "name": "qcolombet",
    "email": "quentin.colombet@gmail.com",
    "time": "Mon Jun 12 10:59:46 2023 +0200"
  },
  "committer": {
    "name": "GitHub",
    "email": "noreply@github.com",
    "time": "Mon Jun 12 10:59:46 2023 +0200"
  },
  "message": "[ConvertToLLVM] Don\u0027t choke on alloc of memref of index (#14002)\n\nPrior to this patch the compiler would crash on alloc of memrefs of\r\nindex on shared memory, because we would try to get the bitwidth of the\r\nindex type as if it was an integer or a floating point type.\r\n\r\nThe bitwidth of the index type is actually carried by the datalayout of\r\nthe module.\r\n\r\nUpdate the code to query the datalayout to get the bitwidth.\r\n\r\nNote: This particular pattern is called as part of convert-to-nvvm. In\r\nthat pass we actually lower the index type to an integer type, but we do\r\nit after having lowered the `alloc`s from shared memory, i.e., where the\r\ncode is choking.",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "13bcd1108746558ca5efe6404f8d771cf50dcb94",
      "old_mode": 33188,
      "old_path": "compiler/src/iree/compiler/Codegen/LLVMGPU/ConvertToLLVM.cpp",
      "new_id": "2ad79f48eddd80c2dce881a77e005250244a98b3",
      "new_mode": 33188,
      "new_path": "compiler/src/iree/compiler/Codegen/LLVMGPU/ConvertToLLVM.cpp"
    },
    {
      "type": "modify",
      "old_id": "07c9073290bd005b046f524e3ce301a34418586f",
      "old_mode": 33188,
      "old_path": "compiler/src/iree/compiler/Codegen/LLVMGPU/test/convert_to_nvvm.mlir",
      "new_id": "47370342d46eaa9accaf040bc1fa8287c3b3986b",
      "new_mode": 33188,
      "new_path": "compiler/src/iree/compiler/Codegen/LLVMGPU/test/convert_to_nvvm.mlir"
    }
  ]
}
