Skip to content

Commit 731f4d9

Browse files
committed
[MLIR] Apply clang-tidy fixes for misc-use-internal-linkage in TensorOps.cpp (NFC)
1 parent 9bb9206 commit 731f4d9

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

mlir/lib/Dialect/Tensor/IR/TensorOps.cpp

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3202,10 +3202,11 @@ void PadOp::getAsmResultNames(function_ref<void(Value, StringRef)> setNameFn) {
32023202

32033203
// TODO: Replace custom<InferType> directive with AllTypesMatch as soon as it
32043204
// supports optional types.
3205-
void printInferType(OpAsmPrinter &printer, Operation *op, Value optOperand,
3206-
Type typeToInfer, Type typeToInferFrom) {}
3205+
static void printInferType(OpAsmPrinter &printer, Operation *op,
3206+
Value optOperand, Type typeToInfer,
3207+
Type typeToInferFrom) {}
32073208

3208-
ParseResult
3209+
static ParseResult
32093210
parseInferType(OpAsmParser &parser,
32103211
std::optional<OpAsmParser::UnresolvedOperand> optOperand,
32113212
Type &typeToInfer, Type typeToInferFrom) {
@@ -4059,7 +4060,7 @@ OpFoldResult SplatOp::fold(FoldAdaptor adaptor) {
40594060
//===----------------------------------------------------------------------===//
40604061
// Common Canonicalizers and Folders.
40614062
//===----------------------------------------------------------------------===//
4062-
bool foldTensorCastPrecondition(DestinationStyleOpInterface op) {
4063+
static bool foldTensorCastPrecondition(DestinationStyleOpInterface op) {
40634064
// 1. InsertSliceOp has its own logic about folding tensor.cast ops.
40644065
// 2. Exclude DPS ops that are also LoopLike from this interface as they
40654066
// might need special handling of attached regions.

0 commit comments

Comments
 (0)