//===- TransformTypes.cpp - Transform Dialect Type Definitions ------------===// // // 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/IR/TransformTypes.h" #include "mlir/Dialect/Transform/IR/TransformDialect.h" #include "mlir/Dialect/Transform/Interfaces/TransformInterfaces.h" #include "mlir/IR/Builders.h" #include "mlir/IR/BuiltinTypes.h" #include "mlir/IR/DialectImplementation.h" #include "mlir/IR/OpImplementation.h" #include "mlir/IR/Types.h" #include "llvm/ADT/TypeSwitch.h" #include "llvm/Support/Compiler.h" usingnamespacemlir; // These are automatically generated by ODS but are not used as the Transform // dialect uses a different dispatch mechanism to support dialect extensions. LLVM_ATTRIBUTE_UNUSED static OptionalParseResult generatedTypeParser(AsmParser &parser, StringRef *mnemonic, Type &value); LLVM_ATTRIBUTE_UNUSED static LogicalResult generatedTypePrinter(Type def, AsmPrinter &printer); #define GET_TYPEDEF_CLASSES #include "mlir/Dialect/Transform/IR/TransformTypes.cpp.inc" void transform::TransformDialect::initializeTypes() { … } //===----------------------------------------------------------------------===// // transform::AffineMapParamType //===----------------------------------------------------------------------===// DiagnosedSilenceableFailure transform::AffineMapParamType::checkPayload(Location loc, ArrayRef<Attribute> payload) const { … } //===----------------------------------------------------------------------===// // transform::AnyOpType //===----------------------------------------------------------------------===// DiagnosedSilenceableFailure transform::AnyOpType::checkPayload(Location loc, ArrayRef<Operation *> payload) const { … } //===----------------------------------------------------------------------===// // transform::AnyValueType //===----------------------------------------------------------------------===// DiagnosedSilenceableFailure transform::AnyValueType::checkPayload(Location loc, ArrayRef<Value> payload) const { … } //===----------------------------------------------------------------------===// // transform::OperationType //===----------------------------------------------------------------------===// DiagnosedSilenceableFailure transform::OperationType::checkPayload(Location loc, ArrayRef<Operation *> payload) const { … } //===----------------------------------------------------------------------===// // transform::AnyParamType //===----------------------------------------------------------------------===// DiagnosedSilenceableFailure transform::AnyParamType::checkPayload(Location loc, ArrayRef<Attribute> payload) const { … } //===----------------------------------------------------------------------===// // transform::ParamType //===----------------------------------------------------------------------===// LogicalResult transform::ParamType::verify(function_ref<InFlightDiagnostic()> emitError, Type type) { … } DiagnosedSilenceableFailure transform::ParamType::checkPayload(Location loc, ArrayRef<Attribute> payload) const { … } //===----------------------------------------------------------------------===// // transform::TypeParamType //===----------------------------------------------------------------------===// DiagnosedSilenceableFailure transform::TypeParamType::checkPayload(Location loc, ArrayRef<Attribute> payload) const { … }