Skip to content

Commit 4940794

Browse files
committed
[MLIR] Apply clang-tidy fixes for misc-use-internal-linkage in Partition.cpp (NFC)
1 parent 5d74c04 commit 4940794

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

mlir/lib/Dialect/Shard/Transforms/Partition.cpp

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -477,10 +477,10 @@ reshardOn1DGrid(ImplicitLocOpBuilder &builder, GridOp grid,
477477
return targetShard;
478478
}
479479

480-
TypedValue<ShapedType> reshard(ImplicitLocOpBuilder &builder, GridOp grid,
481-
Sharding sourceSharding, Sharding targetSharding,
482-
TypedValue<ShapedType> sourceUnshardedValue,
483-
TypedValue<ShapedType> sourceShard) {
480+
static TypedValue<ShapedType>
481+
reshard(ImplicitLocOpBuilder &builder, GridOp grid, Sharding sourceSharding,
482+
Sharding targetSharding, TypedValue<ShapedType> sourceUnshardedValue,
483+
TypedValue<ShapedType> sourceShard) {
484484
// If source and destination sharding are the same, no need to do anything.
485485
if (sourceSharding == targetSharding || (isFullReplication(sourceSharding) &&
486486
isFullReplication(targetSharding))) {
@@ -535,7 +535,7 @@ using UnshardedToShardedValueMap = DenseMap<Value, Value>;
535535
// Get the types of block arguments for an partitioned block.
536536
// Reads the sharding annotations of the arguments to deduce the sharded types.
537537
// Types that are not ranked tensors are left unchanged.
538-
SmallVector<Type>
538+
static SmallVector<Type>
539539
shardedBlockArgumentTypes(Block &block,
540540
SymbolTableCollection &symbolTableCollection) {
541541
SmallVector<Type> res;

0 commit comments

Comments
 (0)