[Mlir-commits] [mlir] 9aaba7c - [MLIR] Apply clang-tidy fixes for misc-use-internal-linkage in IndexOps.cpp (NFC)
Mehdi Amini
llvmlistbot at llvm.org
Mon Mar 23 05:58:17 PDT 2026
Author: Mehdi Amini
Date: 2026-03-23T05:54:13-07:00
New Revision: 9aaba7c24aa59c7c33d939948bfcb527ef09e597
URL: https://github.com/llvm/llvm-project/commit/9aaba7c24aa59c7c33d939948bfcb527ef09e597
DIFF: https://github.com/llvm/llvm-project/commit/9aaba7c24aa59c7c33d939948bfcb527ef09e597.diff
LOG: [MLIR] Apply clang-tidy fixes for misc-use-internal-linkage in IndexOps.cpp (NFC)
Added:
Modified:
mlir/lib/Dialect/Index/IR/IndexOps.cpp
Removed:
################################################################################
diff --git a/mlir/lib/Dialect/Index/IR/IndexOps.cpp b/mlir/lib/Dialect/Index/IR/IndexOps.cpp
index a3e1542e6a947..2b1baa8b44643 100644
--- a/mlir/lib/Dialect/Index/IR/IndexOps.cpp
+++ b/mlir/lib/Dialect/Index/IR/IndexOps.cpp
@@ -121,7 +121,7 @@ static OpFoldResult foldBinaryOpChecked(
/// `x = op(v, c1); y = op(x, c2)` -> `tmp = op(c1, c2); y = op(v, tmp)`
/// where c1 and c2 are constants. It is expected that `tmp` will be folded.
template <typename BinaryOp>
-LogicalResult
+static LogicalResult
canonicalizeAssociativeCommutativeBinaryOp(BinaryOp op,
PatternRewriter &rewriter) {
if (!mlir::matchPattern(op.getRhs(), mlir::m_Constant()))
@@ -583,8 +583,8 @@ OpFoldResult CastUOp::fold(FoldAdaptor adaptor) {
//===----------------------------------------------------------------------===//
/// Compare two integers according to the comparison predicate.
-bool compareIndices(const APInt &lhs, const APInt &rhs,
- IndexCmpPredicate pred) {
+static bool compareIndices(const APInt &lhs, const APInt &rhs,
+ IndexCmpPredicate pred) {
switch (pred) {
case IndexCmpPredicate::EQ:
return lhs.eq(rhs);
More information about the Mlir-commits
mailing list