[Mlir-commits] [mlir] [mlir][gpu][transforms] Add support for mapping to lanes (PR #146912)
Nicolas Vasilache
llvmlistbot at llvm.org
Mon Jul 7 05:56:44 PDT 2025
================
@@ -106,6 +106,20 @@ int64_t GPUThreadMappingAttr::getRelativeIndex() const {
: getMappingId();
}
+int64_t GPULaneMappingAttr::getMappingId() const {
+ return static_cast<int64_t>(getLane());
+}
+
+bool GPULaneMappingAttr::isLinearMapping() const {
+ return getMappingId() >= static_cast<int64_t>(MappingId::LinearDim0);
+}
+
+int64_t GPULaneMappingAttr::getRelativeIndex() const {
----------------
nicolasvasilache wrote:
in `DeviceMappingAttrInterface` @ mlir/include/mlir/Dialect/SCF/IR/DeviceMappingInterface.td
https://github.com/llvm/llvm-project/pull/146912
More information about the Mlir-commits
mailing list