diff options
author | Mehdi Amini <joker.eph@gmail.com> | 2023-10-20 04:53:37 -0700 |
---|---|---|
committer | Mehdi Amini <joker.eph@gmail.com> | 2024-01-17 08:51:41 -0800 |
commit | 74cf9bcf71d94f4df80578bccec6ed6d51dd9682 (patch) | |
tree | b3fd09a4b7d826b4bc531c6b7beecc7d77906e5b /mlir | |
parent | 5b65f6f5864ff23e4d87ab1d954a77be343b4c4b (diff) | |
download | llvm-74cf9bcf71d94f4df80578bccec6ed6d51dd9682.zip llvm-74cf9bcf71d94f4df80578bccec6ed6d51dd9682.tar.gz llvm-74cf9bcf71d94f4df80578bccec6ed6d51dd9682.tar.bz2 |
Apply clang-tidy fixes for performance-unnecessary-value-param in Utils.cpp (NFC)
Diffstat (limited to 'mlir')
-rw-r--r-- | mlir/include/mlir/Dialect/GPU/TransformOps/Utils.h | 2 | ||||
-rw-r--r-- | mlir/lib/Dialect/GPU/TransformOps/Utils.cpp | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/mlir/include/mlir/Dialect/GPU/TransformOps/Utils.h b/mlir/include/mlir/Dialect/GPU/TransformOps/Utils.h index 6ec5fc5..c65f522 100644 --- a/mlir/include/mlir/Dialect/GPU/TransformOps/Utils.h +++ b/mlir/include/mlir/Dialect/GPU/TransformOps/Utils.h @@ -66,7 +66,7 @@ struct GpuIdBuilder { GpuIdBuilder() = default; GpuIdBuilder(MLIRContext *ctx, bool useLinearMapping, - MappingIdBuilderFnType builder); + const MappingIdBuilderFnType &builder); /// The mapping attributes targeted by this generator. SmallVector<DeviceMappingAttrInterface> mappingAttributes; diff --git a/mlir/lib/Dialect/GPU/TransformOps/Utils.cpp b/mlir/lib/Dialect/GPU/TransformOps/Utils.cpp index df63388..02a61ed 100644 --- a/mlir/lib/Dialect/GPU/TransformOps/Utils.cpp +++ b/mlir/lib/Dialect/GPU/TransformOps/Utils.cpp @@ -169,7 +169,7 @@ namespace transform { namespace gpu { GpuIdBuilder::GpuIdBuilder(MLIRContext *ctx, bool useLinearMapping, - MappingIdBuilderFnType fn) + const MappingIdBuilderFnType &fn) : mappingAttributes(), idBuilder() { if (useLinearMapping) { for (uint64_t d = static_cast<uint64_t>(MappingId::LinearDim0), |