[Mlir-commits] [mlir] 4237ec3 - [MLIR] Apply clang-tidy fixes for readability-avoid-const-params-in-decls in MPIToLLVM.cpp (NFC)
Mehdi Amini
llvmlistbot at llvm.org
Fri Nov 28 05:36:39 PST 2025
Author: Mehdi Amini
Date: 2025-11-28T05:35:44-08:00
New Revision: 4237ec343a7f0c0d3717972b14ae22ec10ff74cd
URL: https://github.com/llvm/llvm-project/commit/4237ec343a7f0c0d3717972b14ae22ec10ff74cd
DIFF: https://github.com/llvm/llvm-project/commit/4237ec343a7f0c0d3717972b14ae22ec10ff74cd.diff
LOG: [MLIR] Apply clang-tidy fixes for readability-avoid-const-params-in-decls in MPIToLLVM.cpp (NFC)
Added:
Modified:
mlir/lib/Conversion/MPIToLLVM/MPIToLLVM.cpp
Removed:
################################################################################
diff --git a/mlir/lib/Conversion/MPIToLLVM/MPIToLLVM.cpp b/mlir/lib/Conversion/MPIToLLVM/MPIToLLVM.cpp
index 16ef11a8b14de..59a16df9c59d3 100644
--- a/mlir/lib/Conversion/MPIToLLVM/MPIToLLVM.cpp
+++ b/mlir/lib/Conversion/MPIToLLVM/MPIToLLVM.cpp
@@ -93,13 +93,13 @@ class MPIImplTraits {
/// Different MPI implementations have
diff erent communicator types.
/// Using i64 as a portable, intermediate type.
/// Appropriate cast needs to take place before calling MPI functions.
- virtual Value getCommWorld(const Location loc,
+ virtual Value getCommWorld(Location loc,
ConversionPatternRewriter &rewriter) = 0;
/// Type converter provides i64 type for communicator type.
/// Converts to native type, which might be ptr or int or whatever.
- virtual Value castComm(const Location loc,
- ConversionPatternRewriter &rewriter, Value comm) = 0;
+ virtual Value castComm(Location loc, ConversionPatternRewriter &rewriter,
+ Value comm) = 0;
/// Get the MPI_STATUS_IGNORE value (typically a pointer type).
virtual intptr_t getStatusIgnore() = 0;
@@ -109,13 +109,12 @@ class MPIImplTraits {
/// Gets or creates an MPI datatype as a value which corresponds to the given
/// type.
- virtual Value getDataType(const Location loc,
- ConversionPatternRewriter &rewriter, Type type) = 0;
+ virtual Value getDataType(Location loc, ConversionPatternRewriter &rewriter,
+ Type type) = 0;
/// Gets or creates an MPI_Op value which corresponds to the given
/// enum value.
- virtual Value getMPIOp(const Location loc,
- ConversionPatternRewriter &rewriter,
+ virtual Value getMPIOp(Location loc, ConversionPatternRewriter &rewriter,
mpi::MPI_ReductionOpEnum opAttr) = 0;
};
More information about the Mlir-commits
mailing list