[Mlir-commits] [mlir] [mlir] Add strided metadata range dataflow analysis (PR #161280)

Fabian Mora llvmlistbot at llvm.org
Thu Oct 2 06:05:29 PDT 2025


================
@@ -0,0 +1,54 @@
+//===- StridedMetadataRange.h - Strided metadata range analysis -*- C++ -*-===//
+//
+// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
+// See https://llvm.org/LICENSE.txt for license information.
+// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
+//
+//===----------------------------------------------------------------------===//
+
+#ifndef MLIR_ANALYSIS_DATAFLOW_STRIDEDMETADATARANGE_H
+#define MLIR_ANALYSIS_DATAFLOW_STRIDEDMETADATARANGE_H
+
+#include "mlir/Analysis/DataFlow/SparseAnalysis.h"
+#include "mlir/Interfaces/InferStridedMetadataInterface.h"
+
+namespace mlir {
+namespace dataflow {
+
+/// This lattice element represents the strided metadata of an SSA value.
----------------
fabianmcg wrote:

Not really, if someone wanted to implement for tensor, eg. `tensor.extract_slice` they could.

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


More information about the Mlir-commits mailing list