//===- MatchInterfaces.cpp - Transform Dialect Interfaces -----------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. // See https://llvm.org/LICENSE.txt for license information. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception // //===----------------------------------------------------------------------===// #include "mlir/Dialect/Transform/Interfaces/MatchInterfaces.h" usingnamespacemlir; //===----------------------------------------------------------------------===// // Printing and parsing for match ops. //===----------------------------------------------------------------------===// /// Keyword syntax for positional specification inversion. constexpr const static llvm::StringLiteral kDimExceptKeyword = …; /// Keyword syntax for full inclusion in positional specification. constexpr const static llvm::StringLiteral kDimAllKeyword = …; ParseResult transform::parseTransformMatchDims(OpAsmParser &parser, DenseI64ArrayAttr &rawDimList, UnitAttr &isInverted, UnitAttr &isAll) { … } void transform::printTransformMatchDims(OpAsmPrinter &printer, Operation *op, DenseI64ArrayAttr rawDimList, UnitAttr isInverted, UnitAttr isAll) { … } LogicalResult transform::verifyTransformMatchDimsOp(Operation *op, ArrayRef<int64_t> raw, bool inverted, bool all) { … } DiagnosedSilenceableFailure transform::expandTargetSpecification( Location loc, bool isAll, bool isInverted, ArrayRef<int64_t> rawList, int64_t maxNumber, SmallVectorImpl<int64_t> &result) { … } //===----------------------------------------------------------------------===// // Generated interface implementation. //===----------------------------------------------------------------------===// #include "mlir/Dialect/Transform/Interfaces/MatchInterfaces.cpp.inc"