#include "mlir/Dialect/Linalg/TransformOps/LinalgMatchOps.h"
#include "mlir/Analysis/SliceAnalysis.h"
#include "mlir/Dialect/Linalg/IR/Linalg.h"
#include "mlir/Dialect/Linalg/IR/LinalgInterfaces.h"
#include "mlir/Dialect/Linalg/TransformOps/Syntax.h"
#include "mlir/Dialect/Linalg/Utils/Utils.h"
#include "mlir/Dialect/Transform/IR/TransformTypes.h"
#include "mlir/Dialect/Transform/Interfaces/MatchInterfaces.h"
#include "mlir/IR/BuiltinAttributes.h"
#include "mlir/Interfaces/FunctionImplementation.h"
#include "llvm/Support/Debug.h"
#include "llvm/Support/FormatVariadic.h"
usingnamespacemlir;
#define DEBUG_TYPE …
#define DBGS() …
DiagnosedSilenceableFailure transform::MatchStructuredOp::matchOperation(
Operation *current, transform::TransformResults &results,
transform::TransformState &state) { … }
void transform::MatchStructuredOp::getEffects(
SmallVectorImpl<MemoryEffects::EffectInstance> &effects) { … }
LogicalResult transform::MatchStructuredOp::verify() { … }
LogicalResult transform::detail::verifyStructuredOpPredicateOpTrait(
Operation *op, Value structuredOpHandle) { … }
DiagnosedSilenceableFailure transform::MatchStructuredBodyOp::matchOperation(
Operation *current, transform::TransformResults &results,
transform::TransformState &state) { … }
LogicalResult transform::MatchStructuredBodyOp::verify() { … }
DiagnosedSilenceableFailure
transform::MatchStructuredClassifyContractionDimsOp::matchOperation(
Operation *current, transform::TransformResults &results,
transform::TransformState &state) { … }
DiagnosedSilenceableFailure
transform::MatchStructuredClassifyConvolutionDimsOp::matchOperation(
Operation *current, transform::TransformResults &results,
transform::TransformState &state) { … }
static DiagnosedSilenceableFailure containsAll(ArrayRef<unsigned> reference,
ArrayRef<int64_t> list,
Location loc,
const char *message) { … }
DiagnosedSilenceableFailure transform::MatchStructuredDimOp::matchOperation(
Operation *current, transform::TransformResults &results,
transform::TransformState &state) { … }
DiagnosedSilenceableFailure transform::MatchStructuredDimOp::getDimensionsFor(
linalg::LinalgOp op, SmallVectorImpl<int64_t> &dims) { … }
LogicalResult transform::MatchStructuredDimOp::verify() { … }
DiagnosedSilenceableFailure
transform::MatchStructuredElementalBitwidthOp::matchValue(
Value current, transform::TransformResults &results,
transform::TransformState &state) { … }
DiagnosedSilenceableFailure transform::MatchStructuredInputOp::matchOperation(
Operation *current, transform::TransformResults &results,
transform::TransformState &state) { … }
DiagnosedSilenceableFailure transform::MatchStructuredInputOp::getPositionsFor(
linalg::LinalgOp op, SmallVectorImpl<int64_t> &positions) { … }
template <typename OpTy>
LogicalResult verifyStructuredOperandOp(OpTy op) { … }
LogicalResult transform::MatchStructuredInputOp::verify() { … }
DiagnosedSilenceableFailure transform::MatchStructuredInitOp::matchOperation(
Operation *current, transform::TransformResults &results,
transform::TransformState &state) { … }
DiagnosedSilenceableFailure transform::MatchStructuredInitOp::getPositionsFor(
linalg::LinalgOp op, SmallVectorImpl<int64_t> &positions) { … }
LogicalResult transform::MatchStructuredInitOp::verify() { … }
DiagnosedSilenceableFailure
transform::MatchStructuredNumInputsOp::matchOperation(
Operation *current, transform::TransformResults &results,
transform::TransformState &state) { … }
DiagnosedSilenceableFailure
transform::MatchStructuredNumInitsOp::matchOperation(
Operation *current, transform::TransformResults &results,
transform::TransformState &state) { … }
DiagnosedSilenceableFailure transform::MatchStructuredRankOp::matchOperation(
Operation *current, transform::TransformResults &results,
transform::TransformState &state) { … }
DiagnosedSilenceableFailure transform::MatchStructuredResultOp::matchOperation(
Operation *op, transform::TransformResults &results,
transform::TransformState &state) { … }
DiagnosedSilenceableFailure
transform::MatchStructuredResultOp::getPositionFor(linalg::LinalgOp op,
int64_t &position) { … }
LogicalResult transform::MatchStructuredResultOp::verify() { … }
void transform::MatchStructuredYieldOp::getEffects(
SmallVectorImpl<MemoryEffects::EffectInstance> &effects) { … }
void transform::MatchStructuredYieldOp::build(OpBuilder &builder,
OperationState &state) { … }
#define GET_OP_CLASSES
#include "mlir/Dialect/Linalg/TransformOps/LinalgMatchOps.cpp.inc"