[Mlir-commits] [mlir] [MLIR][XeGPU] Add support for subgroup_id_range (PR #148661)

Chao Chen llvmlistbot at llvm.org
Mon Jul 21 07:44:31 PDT 2025


================
@@ -315,4 +315,32 @@ def XeGPU_LayoutAttr : XeGPUAttr<"Layout", "layout"> {
   let genVerifyDecl = 1;
 }
 
+def XeGPU_RangeAttr : XeGPUAttr<"Range", "range"> {
+  let summary = [{Specifies a half-open range}];
+  let description = [{
+    `RangeAttr` is an attribute that defines a half-open range [start, end).
----------------
chencha3 wrote:

It seems to me RangeAttr currently doesn't limits itself with the math interpretation of half-open. It is its users (e.g., sgId) to interpret it.

https://github.com/llvm/llvm-project/pull/148661


More information about the Mlir-commits mailing list