[Mlir-commits] [mlir] 7830572 - [mlir][transform][nfc] typo fix
Guray Ozen
llvmlistbot at llvm.org
Wed Oct 5 04:05:57 PDT 2022
Author: Guray Ozen
Date: 2022-10-05T13:05:46+02:00
New Revision: 78305720f387ba5c86810a02155bd6c58d22c97c
URL: https://github.com/llvm/llvm-project/commit/78305720f387ba5c86810a02155bd6c58d22c97c
DIFF: https://github.com/llvm/llvm-project/commit/78305720f387ba5c86810a02155bd6c58d22c97c.diff
LOG: [mlir][transform][nfc] typo fix
fix typo
Reviewed By: nicolasvasilache, ftynse
Differential Revision: https://reviews.llvm.org/D135242
Added:
Modified:
mlir/include/mlir/Dialect/GPU/TransformOps/GPUTransformOps.h
mlir/lib/Dialect/GPU/TransformOps/GPUTransformOps.cpp
Removed:
################################################################################
diff --git a/mlir/include/mlir/Dialect/GPU/TransformOps/GPUTransformOps.h b/mlir/include/mlir/Dialect/GPU/TransformOps/GPUTransformOps.h
index fc263aba07949..94595153700b9 100644
--- a/mlir/include/mlir/Dialect/GPU/TransformOps/GPUTransformOps.h
+++ b/mlir/include/mlir/Dialect/GPU/TransformOps/GPUTransformOps.h
@@ -41,17 +41,17 @@ namespace gpu {
/// predication. Dynamic, `scf.foreach_thread` trip counts are currently not
/// supported. Dynamic block dim sizes are currently not supported.
DiagnosedSilenceableFailure
-mapNestedForeachToThreadsImp(RewriterBase &rewriter, Operation *target,
- const SmallVectorImpl<int64_t> &blockDim,
- bool syncAfterDistribute,
- llvm::Optional<TransformOpInterface> transformOp);
+mapNestedForeachToThreadsImpl(RewriterBase &rewriter, Operation *target,
+ const SmallVectorImpl<int64_t> &blockDim,
+ bool syncAfterDistribute,
+ llvm::Optional<TransformOpInterface> transformOp);
/// Maps the top level `scf.foreach_thread` op to GPU Thread Blocks. Mapping is
/// one-to-one and the induction variables of `scf.foreach_thread` are rewritten
/// to gpu.block_id according to the thread_dim_apping attribute. Dynamic,
/// `scf.foreach_thread` trip counts are currently not supported. Dynamic block
/// dim sizes are currently not supported.
-DiagnosedSilenceableFailure mapForeachToBlocksImp(
+DiagnosedSilenceableFailure mapForeachToBlocksImpl(
RewriterBase &rewriter, scf::ForeachThreadOp foreachThreadOp,
function_ref<void(RewriterBase &, scf::ForeachThreadOp,
SmallVectorImpl<Value> &)>
diff --git a/mlir/lib/Dialect/GPU/TransformOps/GPUTransformOps.cpp b/mlir/lib/Dialect/GPU/TransformOps/GPUTransformOps.cpp
index f76e5de7cb211..3c1ef3df840d2 100644
--- a/mlir/lib/Dialect/GPU/TransformOps/GPUTransformOps.cpp
+++ b/mlir/lib/Dialect/GPU/TransformOps/GPUTransformOps.cpp
@@ -151,7 +151,7 @@ alterGpuLaunch(SimpleRewriter &rewriter, LaunchOp gpuLaunch,
// MapForeachToBlocks
//===----------------------------------------------------------------------===//
-DiagnosedSilenceableFailure mlir::transform::gpu::mapForeachToBlocksImp(
+DiagnosedSilenceableFailure mlir::transform::gpu::mapForeachToBlocksImpl(
RewriterBase &rewriter, scf::ForeachThreadOp foreachThreadOp,
function_ref<void(RewriterBase &, scf::ForeachThreadOp,
SmallVectorImpl<Value> &)>
@@ -291,7 +291,7 @@ transform::MapForeachToBlocks::applyToOne(Operation *target,
}
SmallVector<int64_t> gridDim = extractFromI64ArrayAttr(getGridDim());
- diag = mlir::transform::gpu::mapForeachToBlocksImp(
+ diag = mlir::transform::gpu::mapForeachToBlocksImpl(
rewriter, topLevelForeachThreadOp, generateGpuBlockIds, gridDim,
transformOp);
if (diag.succeeded()) {
@@ -422,7 +422,7 @@ static DiagnosedSilenceableFailure rewriteOneForeachThreadToGpuThreads(
return DiagnosedSilenceableFailure::success();
}
-DiagnosedSilenceableFailure mlir::transform::gpu::mapNestedForeachToThreadsImp(
+DiagnosedSilenceableFailure mlir::transform::gpu::mapNestedForeachToThreadsImpl(
RewriterBase &rewriter, Operation *target,
const SmallVectorImpl<int64_t> &blockDim, bool syncAfterDistribute,
llvm::Optional<TransformOpInterface> transformOp) {
@@ -463,7 +463,7 @@ DiagnosedSilenceableFailure transform::MapNestedForeachToThreads::applyToOne(
SimpleRewriter rewriter(getContext());
rewriter.setInsertionPoint(target);
- diag = mlir::transform::gpu::mapNestedForeachToThreadsImp(
+ diag = mlir::transform::gpu::mapNestedForeachToThreadsImpl(
rewriter, target, blockDim, getSyncAfterDistribute(), llvm::None);
if (diag.succeeded()) {
diag =
More information about the Mlir-commits
mailing list