[all-commits] [llvm/llvm-project] dd16cd: [mlir][gpu] Add a pattern for transforming gpu.glo...
Fabian Mora via All-commits
all-commits at lists.llvm.org
Thu May 25 13:25:48 PDT 2023
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: dd16cd731dfb4746a351380edc848199cf9631e8
https://github.com/llvm/llvm-project/commit/dd16cd731dfb4746a351380edc848199cf9631e8
Author: Fabian Mora <fmora.dev at gmail.com>
Date: 2023-05-25 (Thu, 25 May 2023)
Changed paths:
M mlir/include/mlir/Dialect/GPU/Transforms/Passes.h
M mlir/lib/Dialect/GPU/CMakeLists.txt
A mlir/lib/Dialect/GPU/Transforms/GlobalIdRewriter.cpp
A mlir/test/Dialect/GPU/globalId-rewrite.mlir
M mlir/test/lib/Dialect/GPU/TestGpuRewrite.cpp
Log Message:
-----------
[mlir][gpu] Add a pattern for transforming gpu.global_id to thread + blockId * blockDim
This patch implements a rewrite pattern for transforming gpu.global_id x
to gpu.thread_id + gpu.block_id * gpu.block_dim.
Reviewed By: makslevental
Differential Revision: https://reviews.llvm.org/D148978
More information about the All-commits
mailing list