[Mlir-commits] [mlir] [MLIR][XeVM] Rewrite llvm.alloca if addr_space is not 0 (PR #183417)

Artem Kroviakov llvmlistbot at llvm.org
Thu Feb 26 04:12:36 PST 2026


================
@@ -836,6 +838,46 @@ class SubgroupOpWorkitemOpToOCLPattern : public OpConversionPattern<OpType> {
   }
 };
 
+static unsigned getNextGlobalIdx() {
----------------
akroviakov wrote:

Does it need to be a standalone utility instead of a pattern-local static variable? As in, the variable is tightly coupled with the symbol it appends to.

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


More information about the Mlir-commits mailing list