[Mlir-commits] [mlir] [mlir][XeGPU] Update utils for LayoutAttr and SliceAttr support (PR #154819)

Sang Ik Lee llvmlistbot at llvm.org
Tue Aug 26 10:23:59 PDT 2025


================
@@ -388,6 +403,24 @@ def XeGPU_LayoutAttr : XeGPUAttr<"Layout", "layout", [DistributeLayoutAttr]> {
       return std::nullopt;
     }
 
+    std::optional<SmallVector<int64_t>> getInstDataAsInt() const {
----------------
silee2 wrote:

Just curious. 
Do we have cases of valid empty SmallVector?
If not, checking for std::nullopt could be replaced with a size check?

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


More information about the Mlir-commits mailing list