Skip to content

Commit 83b5486

Browse files
joker-ephaokblast
authored andcommitted
[MLIR] Apply clang-tidy fixes for misc-use-internal-linkage in TosaCanonicalizations.cpp (NFC)
1 parent 325051f commit 83b5486

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

mlir/lib/Dialect/Tosa/IR/TosaCanonicalizations.cpp

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ using namespace mlir::tosa;
3838
//===----------------------------------------------------------------------===//
3939

4040
// Check that the zero point of the tensor and padding operations are aligned.
41-
bool checkMatchingPadConstAndZp(Value padConst, Value zp) {
41+
static bool checkMatchingPadConstAndZp(Value padConst, Value zp) {
4242
// Check that padConst is a constant value and a scalar tensor
4343
DenseElementsAttr padConstAttr;
4444
if (!matchPattern(padConst, m_Constant(&padConstAttr)) ||
@@ -889,8 +889,9 @@ void SliceOp::getCanonicalizationPatterns(RewritePatternSet &results,
889889
//===----------------------------------------------------------------------===//
890890

891891
template <typename IntFolder, typename FloatFolder>
892-
DenseElementsAttr binaryFolder(DenseElementsAttr lhs, DenseElementsAttr rhs,
893-
RankedTensorType returnTy) {
892+
static DenseElementsAttr binaryFolder(DenseElementsAttr lhs,
893+
DenseElementsAttr rhs,
894+
RankedTensorType returnTy) {
894895
if (rhs && lhs && rhs.isSplat() && lhs.isSplat()) {
895896
auto lETy = llvm::cast<ShapedType>(lhs.getType()).getElementType();
896897
auto rETy = llvm::cast<ShapedType>(rhs.getType()).getElementType();

0 commit comments

Comments
 (0)