)]}'
{
  "commit": "17fb04de33a91c8d2ddc69bee6ca7990d75b2407",
  "tree": "f621d45ca3ba60ee9d9d5904d311424b7184e5f2",
  "parents": [
    "6daf6ea060b9a9ea33871e276d3a2516577107d2"
  ],
  "author": {
    "name": "purnima shrivastava",
    "email": "purnimashrivastava05@gmail.com",
    "time": "Tue Oct 13 23:10:59 2026 +0530"
  },
  "committer": {
    "name": "GitHub",
    "email": "noreply@github.com",
    "time": "Tue Oct 13 19:40:59 2026 +0200"
  },
  "message": "[HAL] Add command buffer flush and invalidate operations (#24945)\n\nThis PR adds HAL and runtime plumbing for ordered command-buffer buffer\nflush and invalidate operations.\n\nIt introduces:\n\n* `hal.command_buffer.flush_buffer`\n* `hal.command_buffer.invalidate_buffer`\n* HAL-to-VM lowering and VM imports\n* runtime command-buffer API and vtable hooks\n* VM module/shim plumbing\n* inline command-buffer support\n* deferred command-buffer recording/replay support\n* HAL IR and HAL-to-VM test coverage\n\nThe operations carry a buffer reference, offset, and length and are\nintended to represent execution-ordered cache maintenance for shared\nnon-coherent memory.\n\nStream-to-HAL lowering is intentionally left unchanged in this PR. Some\nbackends, especially Vulkan, require queue/submission-level handling to\npreserve execution-time ordering because a HAL command buffer is\ncurrently replayed into a single native `VkCommandBuffer`. Enabling\nStream lowering before that backend support exists could cause\nunsupported runtime paths.\n\nThis PR therefore focuses on establishing the HAL/runtime infrastructure\nfirst. Backend-specific execution support and Stream lowering can follow\nseparately.\n\nRelated to #24930.\n\nAI Tool Disclosure\nAssisted by codex for code base exploration\n\nSigned-off-by: purnima \u003cpurnima.shrivastava@sandlogic.com\u003e",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "bc85f199348f9cb1eed24d18da2ed4587c72a35e",
      "old_mode": 33188,
      "old_path": "compiler/src/iree/compiler/Dialect/HAL/Conversion/HALToVM/ConvertCommandBufferOps.cpp",
      "new_id": "2d24473c73c50d0277b41e4894605bc6135b0966",
      "new_mode": 33188,
      "new_path": "compiler/src/iree/compiler/Dialect/HAL/Conversion/HALToVM/ConvertCommandBufferOps.cpp"
    },
    {
      "type": "modify",
      "old_id": "1bd04e7d7148243d85f5196561fe5cb7b884556e",
      "old_mode": 33188,
      "old_path": "compiler/src/iree/compiler/Dialect/HAL/Conversion/HALToVM/test/command_buffer_ops.mlir",
      "new_id": "25cff866971d00d7235b066b7e3b913b50c84365",
      "new_mode": 33188,
      "new_path": "compiler/src/iree/compiler/Dialect/HAL/Conversion/HALToVM/test/command_buffer_ops.mlir"
    },
    {
      "type": "modify",
      "old_id": "0a99931e8f9432311efb792019738279a727bf41",
      "old_mode": 33188,
      "old_path": "compiler/src/iree/compiler/Dialect/HAL/IR/HALOps.td",
      "new_id": "0f50c565c298d759d3042d5b7de7c888b07db437",
      "new_mode": 33188,
      "new_path": "compiler/src/iree/compiler/Dialect/HAL/IR/HALOps.td"
    },
    {
      "type": "modify",
      "old_id": "357fee3fd45592cc95bace121125a06dafedac32",
      "old_mode": 33188,
      "old_path": "compiler/src/iree/compiler/Dialect/HAL/IR/test/command_buffer_ops.mlir",
      "new_id": "83e49bb6c7cd7edfa31c7c10717f3357bab608bc",
      "new_mode": 33188,
      "new_path": "compiler/src/iree/compiler/Dialect/HAL/IR/test/command_buffer_ops.mlir"
    },
    {
      "type": "modify",
      "old_id": "6bad0005c2669f87c1c01c40a969a96b65898b16",
      "old_mode": 33188,
      "old_path": "compiler/src/iree/compiler/Dialect/HAL/hal.imports.mlir",
      "new_id": "2279e4902a49abd15bcce4135788c5d69f746cc8",
      "new_mode": 33188,
      "new_path": "compiler/src/iree/compiler/Dialect/HAL/hal.imports.mlir"
    },
    {
      "type": "modify",
      "old_id": "021b83ac730b5afb051806e8fa147aedd47dc1da",
      "old_mode": 33188,
      "old_path": "runtime/src/iree/hal/BUILD.bazel",
      "new_id": "feb5b1841f0a374744dfbbb2923163f85ba69127",
      "new_mode": 33188,
      "new_path": "runtime/src/iree/hal/BUILD.bazel"
    },
    {
      "type": "modify",
      "old_id": "a6b2e957fab97b2e90d6d6c09f14833489604444",
      "old_mode": 33188,
      "old_path": "runtime/src/iree/hal/CMakeLists.txt",
      "new_id": "601ad64a18499022481fd8abfdd761d8555c8d04",
      "new_mode": 33188,
      "new_path": "runtime/src/iree/hal/CMakeLists.txt"
    },
    {
      "type": "modify",
      "old_id": "986d0d512c192c145f71bb48ae318f198c89de22",
      "old_mode": 33188,
      "old_path": "runtime/src/iree/hal/command_buffer.c",
      "new_id": "311709d634b877509699893d43abe5d3c29fd4e9",
      "new_mode": 33188,
      "new_path": "runtime/src/iree/hal/command_buffer.c"
    },
    {
      "type": "modify",
      "old_id": "a73b7f2708511226efe5575662d94d1f7c755408",
      "old_mode": 33188,
      "old_path": "runtime/src/iree/hal/command_buffer.h",
      "new_id": "7a78a2b40421c81ac4f319619f704cdbd0d17733",
      "new_mode": 33188,
      "new_path": "runtime/src/iree/hal/command_buffer.h"
    },
    {
      "type": "add",
      "old_id": "0000000000000000000000000000000000000000",
      "old_mode": 0,
      "old_path": "/dev/null",
      "new_id": "a2bc5d528cfac5323e3b76ebc0044c2b622e8ce8",
      "new_mode": 33188,
      "new_path": "runtime/src/iree/hal/command_buffer_test.cc"
    },
    {
      "type": "modify",
      "old_id": "ed96fb3fc0fe55f69daaccf87f8f5f8c9f7c1d52",
      "old_mode": 33188,
      "old_path": "runtime/src/iree/hal/command_buffer_validation.c",
      "new_id": "138bae6d1aa9b00e8717f31315f26bcce00eb0fa",
      "new_mode": 33188,
      "new_path": "runtime/src/iree/hal/command_buffer_validation.c"
    },
    {
      "type": "modify",
      "old_id": "a91c01cd851ac99af0b28596d8231967e9121462",
      "old_mode": 33188,
      "old_path": "runtime/src/iree/hal/command_buffer_validation.h",
      "new_id": "95770b99559748a439b6b74020d76a7438f59f14",
      "new_mode": 33188,
      "new_path": "runtime/src/iree/hal/command_buffer_validation.h"
    },
    {
      "type": "modify",
      "old_id": "3f5e1be4ed821f74c455d1f7c9149dce6d36d9a3",
      "old_mode": 33188,
      "old_path": "runtime/src/iree/hal/local/BUILD.bazel",
      "new_id": "78b5ca798c27caa9779176fda77bf0f9d4615f2d",
      "new_mode": 33188,
      "new_path": "runtime/src/iree/hal/local/BUILD.bazel"
    },
    {
      "type": "modify",
      "old_id": "bf4ad5ccf03fa9c5e00354dc3b85ef3227d60142",
      "old_mode": 33188,
      "old_path": "runtime/src/iree/hal/local/CMakeLists.txt",
      "new_id": "de5c8a8c719df698fc4ff31ec11a37659868e68d",
      "new_mode": 33188,
      "new_path": "runtime/src/iree/hal/local/CMakeLists.txt"
    },
    {
      "type": "modify",
      "old_id": "e67a1a2647205b63c03052397a92af2621862cff",
      "old_mode": 33188,
      "old_path": "runtime/src/iree/hal/local/inline_command_buffer.c",
      "new_id": "1aaf1a1221788c551a271f6d356a22b74e22e50e",
      "new_mode": 33188,
      "new_path": "runtime/src/iree/hal/local/inline_command_buffer.c"
    },
    {
      "type": "add",
      "old_id": "0000000000000000000000000000000000000000",
      "old_mode": 0,
      "old_path": "/dev/null",
      "new_id": "f67577cfa1339fa153557dd822eafbab1d28ce18",
      "new_mode": 33188,
      "new_path": "runtime/src/iree/hal/local/inline_command_buffer_test.cc"
    },
    {
      "type": "modify",
      "old_id": "ee0f7151fac5a80575538874ae06a413e9c1dc39",
      "old_mode": 33188,
      "old_path": "runtime/src/iree/hal/utils/BUILD.bazel",
      "new_id": "8de98c4a4c0f39e95860fb26d0111ba9f8b9cf80",
      "new_mode": 33188,
      "new_path": "runtime/src/iree/hal/utils/BUILD.bazel"
    },
    {
      "type": "modify",
      "old_id": "42c1de8f06fb383a19b498fa65b4d43c5c497950",
      "old_mode": 33188,
      "old_path": "runtime/src/iree/hal/utils/CMakeLists.txt",
      "new_id": "54fe20b8d8a17e9c9fa92a65b59a0cb9e02b17d9",
      "new_mode": 33188,
      "new_path": "runtime/src/iree/hal/utils/CMakeLists.txt"
    },
    {
      "type": "modify",
      "old_id": "034a4c767343af7ee40e5658d45a5ac00224068c",
      "old_mode": 33188,
      "old_path": "runtime/src/iree/hal/utils/deferred_command_buffer.c",
      "new_id": "ed49c5eb292bdd0753045e3e9f732508aa46dd6f",
      "new_mode": 33188,
      "new_path": "runtime/src/iree/hal/utils/deferred_command_buffer.c"
    },
    {
      "type": "add",
      "old_id": "0000000000000000000000000000000000000000",
      "old_mode": 0,
      "old_path": "/dev/null",
      "new_id": "a5a59524d5b631a18e74b45f39b1cc90491b431c",
      "new_mode": 33188,
      "new_path": "runtime/src/iree/hal/utils/deferred_command_buffer_test.cc"
    },
    {
      "type": "modify",
      "old_id": "75c47bd5f1df0ab8e2f005077768a4ad15a8c227",
      "old_mode": 33188,
      "old_path": "runtime/src/iree/modules/hal/exports.inl",
      "new_id": "8515dd61d128b8aba527ed4a824ef3634a03ca5f",
      "new_mode": 33188,
      "new_path": "runtime/src/iree/modules/hal/exports.inl"
    },
    {
      "type": "modify",
      "old_id": "f7cf8482c1b9c2db5382dbaed4613aa912801799",
      "old_mode": 33188,
      "old_path": "runtime/src/iree/modules/hal/module.c",
      "new_id": "f5f63a9e1f8d1b9677f8d19e4fa9e6fce7b64483",
      "new_mode": 33188,
      "new_path": "runtime/src/iree/modules/hal/module.c"
    },
    {
      "type": "modify",
      "old_id": "99d764fbc053615afb718b0ae296bfe25be88481",
      "old_mode": 33188,
      "old_path": "runtime/src/iree/vm/shims.c",
      "new_id": "01923f26354cee2697760b77342f6aa0f4a20f47",
      "new_mode": 33188,
      "new_path": "runtime/src/iree/vm/shims.c"
    },
    {
      "type": "modify",
      "old_id": "abaae20ae58fee24a1f8c4834db0ff9614c571b5",
      "old_mode": 33188,
      "old_path": "runtime/src/iree/vm/shims.h",
      "new_id": "e2fd51165e9a36698af55a78588199df0af0a436",
      "new_mode": 33188,
      "new_path": "runtime/src/iree/vm/shims.h"
    }
  ]
}
