[mlir] Refactor transform dialect's gpu block func
authorGuray Ozen <guray.ozen@gmail.com>
Tue, 27 Sep 2022 10:23:18 +0000 (12:23 +0200)
committerGuray Ozen <guray.ozen@gmail.com>
Tue, 27 Sep 2022 10:27:17 +0000 (12:27 +0200)
commitf8ad6eaf92ac241420ef99db855d003d5b6d274e
treeb80e77e4823644a9dc2d9fc17838f99ed825a347
parentf4991bfa891eaf9f36aa3b79da6fed4228b69de9
[mlir] Refactor transform dialect's gpu block func

This revision refactors gpu block id generator lambda that is used in the transform dialect. It removes the lambda  and instead uses a static function that's name generateGpuBlockIds.

It also simplifies arguments that the function takes.

Reviewed By: nicolasvasilache

Differential Revision: https://reviews.llvm.org/D134724
mlir/include/mlir/Dialect/Linalg/Transforms/Transforms.h
mlir/lib/Dialect/Linalg/TransformOps/LinalgTransformOps.cpp