[Mlir-commits] [mlir] [uArch][XeGPU] Add XeGPU uArch definition. (PR #153706)

Artem Kroviakov llvmlistbot at llvm.org
Tue Sep 2 07:38:51 PDT 2025


https://github.com/akroviakov commented:

The choice of runtime vs static allocations and data structures can be optimized in the subsequent iterations.
The "string vs enum" is more of a structure/API decision, so it can be discussed in this PR. Is there any particular reason to favor strings over enums?
 
The uarch has some non-obvious structure (`no_of_component` for _lower_ level, hierarchy level inclusion in cache info struct). Without any motivating example these seem overcomplicated and are likely to be replaced/moved anyway when a concrete use case appears. 

How about a lightweight definition first (e.g., excluding `num_matrix_units`), but with at least one practical usage in any part of xegpu (e.g., dpas)? As you noted, there are quite a number of fields that can be added, so why not let use cases decide which fields should actually be added.



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


More information about the Mlir-commits mailing list