[Mlir-commits] [mlir] 4940794 - [MLIR] Apply clang-tidy fixes for misc-use-internal-linkage in Partition.cpp (NFC)
Mehdi Amini
llvmlistbot at llvm.org
Sat Aug 30 12:23:46 PDT 2025
Author: Mehdi Amini
Date: 2025-08-30T12:23:09-07:00
New Revision: 494079416080717fba23461f7208f2eae7bd4fb1
URL: https://github.com/llvm/llvm-project/commit/494079416080717fba23461f7208f2eae7bd4fb1
DIFF: https://github.com/llvm/llvm-project/commit/494079416080717fba23461f7208f2eae7bd4fb1.diff
LOG: [MLIR] Apply clang-tidy fixes for misc-use-internal-linkage in Partition.cpp (NFC)
Added:
Modified:
mlir/lib/Dialect/Shard/Transforms/Partition.cpp
Removed:
################################################################################
diff --git a/mlir/lib/Dialect/Shard/Transforms/Partition.cpp b/mlir/lib/Dialect/Shard/Transforms/Partition.cpp
index 3e3d4768853e5..5dc61a2147038 100644
--- a/mlir/lib/Dialect/Shard/Transforms/Partition.cpp
+++ b/mlir/lib/Dialect/Shard/Transforms/Partition.cpp
@@ -477,10 +477,10 @@ reshardOn1DGrid(ImplicitLocOpBuilder &builder, GridOp grid,
return targetShard;
}
-TypedValue<ShapedType> reshard(ImplicitLocOpBuilder &builder, GridOp grid,
- Sharding sourceSharding, Sharding targetSharding,
- TypedValue<ShapedType> sourceUnshardedValue,
- TypedValue<ShapedType> sourceShard) {
+static TypedValue<ShapedType>
+reshard(ImplicitLocOpBuilder &builder, GridOp grid, Sharding sourceSharding,
+ Sharding targetSharding, TypedValue<ShapedType> sourceUnshardedValue,
+ TypedValue<ShapedType> sourceShard) {
// If source and destination sharding are the same, no need to do anything.
if (sourceSharding == targetSharding || (isFullReplication(sourceSharding) &&
isFullReplication(targetSharding))) {
@@ -535,7 +535,7 @@ using UnshardedToShardedValueMap = DenseMap<Value, Value>;
// Get the types of block arguments for an partitioned block.
// Reads the sharding annotations of the arguments to deduce the sharded types.
// Types that are not ranked tensors are left unchanged.
-SmallVector<Type>
+static SmallVector<Type>
shardedBlockArgumentTypes(Block &block,
SymbolTableCollection &symbolTableCollection) {
SmallVector<Type> res;
More information about the Mlir-commits
mailing list