@@ -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
32093210parseInferType (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