Skip to content

Commit 74cf9bc

Browse files
committed
Apply clang-tidy fixes for performance-unnecessary-value-param in Utils.cpp (NFC)
1 parent 5b65f6f commit 74cf9bc

File tree

2 files changed

+2
-2
lines changed
  • mlir
    • include/mlir/Dialect/GPU/TransformOps
    • lib/Dialect/GPU/TransformOps

2 files changed

+2
-2
lines changed

mlir/include/mlir/Dialect/GPU/TransformOps/Utils.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ struct GpuIdBuilder {
6666

6767
GpuIdBuilder() = default;
6868
GpuIdBuilder(MLIRContext *ctx, bool useLinearMapping,
69-
MappingIdBuilderFnType builder);
69+
const MappingIdBuilderFnType &builder);
7070

7171
/// The mapping attributes targeted by this generator.
7272
SmallVector<DeviceMappingAttrInterface> mappingAttributes;

mlir/lib/Dialect/GPU/TransformOps/Utils.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,7 @@ namespace transform {
169169
namespace gpu {
170170

171171
GpuIdBuilder::GpuIdBuilder(MLIRContext *ctx, bool useLinearMapping,
172-
MappingIdBuilderFnType fn)
172+
const MappingIdBuilderFnType &fn)
173173
: mappingAttributes(), idBuilder() {
174174
if (useLinearMapping) {
175175
for (uint64_t d = static_cast<uint64_t>(MappingId::LinearDim0),

0 commit comments

Comments
 (0)