#include "TestDialect.h"
#include "TestOps.h"
#include "TestTypes.h"
#include "mlir/Bytecode/BytecodeImplementation.h"
#include "mlir/Dialect/Arith/IR/Arith.h"
#include "mlir/Dialect/Func/IR/FuncOps.h"
#include "mlir/Dialect/Tensor/IR/Tensor.h"
#include "mlir/IR/AsmState.h"
#include "mlir/IR/BuiltinAttributes.h"
#include "mlir/IR/BuiltinOps.h"
#include "mlir/IR/Diagnostics.h"
#include "mlir/IR/ExtensibleDialect.h"
#include "mlir/IR/MLIRContext.h"
#include "mlir/IR/ODSSupport.h"
#include "mlir/IR/OperationSupport.h"
#include "mlir/IR/PatternMatch.h"
#include "mlir/IR/TypeUtilities.h"
#include "mlir/IR/Verifier.h"
#include "mlir/Interfaces/CallInterfaces.h"
#include "mlir/Interfaces/FunctionImplementation.h"
#include "mlir/Interfaces/InferIntRangeInterface.h"
#include "mlir/Support/LLVM.h"
#include "mlir/Transforms/FoldUtils.h"
#include "mlir/Transforms/InliningUtils.h"
#include "llvm/ADT/STLFunctionalExtras.h"
#include "llvm/ADT/SmallString.h"
#include "llvm/ADT/StringExtras.h"
#include "llvm/ADT/StringSwitch.h"
#include "llvm/Support/Base64.h"
#include "llvm/Support/Casting.h"
#include "mlir/Dialect/Arith/IR/Arith.h"
#include "mlir/Dialect/DLTI/DLTI.h"
#include "mlir/Interfaces/FoldInterfaces.h"
#include "mlir/Reducer/ReductionPatternInterface.h"
#include "mlir/Transforms/InliningUtils.h"
#include <cstdint>
#include <numeric>
#include <optional>
#include "TestOpsDialect.cpp.inc"
usingnamespacemlir;
usingnamespacetest;
LogicalResult
test::setPropertiesFromAttribute(PropertiesWithCustomPrint &prop,
Attribute attr,
function_ref<InFlightDiagnostic()> emitError) { … }
DictionaryAttr
test::getPropertiesAsAttribute(MLIRContext *ctx,
const PropertiesWithCustomPrint &prop) { … }
llvm::hash_code test::computeHash(const PropertiesWithCustomPrint &prop) { … }
void test::customPrintProperties(OpAsmPrinter &p,
const PropertiesWithCustomPrint &prop) { … }
ParseResult test::customParseProperties(OpAsmParser &parser,
PropertiesWithCustomPrint &prop) { … }
Attribute MyPropStruct::asAttribute(MLIRContext *ctx) const { … }
LogicalResult
MyPropStruct::setFromAttr(MyPropStruct &prop, Attribute attr,
function_ref<InFlightDiagnostic()> emitError) { … }
llvm::hash_code MyPropStruct::hash() const { … }
LogicalResult test::readFromMlirBytecode(DialectBytecodeReader &reader,
MyPropStruct &prop) { … }
void test::writeToMlirBytecode(DialectBytecodeWriter &writer,
MyPropStruct &prop) { … }
LogicalResult
test::setPropertiesFromAttribute(VersionedProperties &prop, Attribute attr,
function_ref<InFlightDiagnostic()> emitError) { … }
DictionaryAttr test::getPropertiesAsAttribute(MLIRContext *ctx,
const VersionedProperties &prop) { … }
llvm::hash_code test::computeHash(const VersionedProperties &prop) { … }
void test::customPrintProperties(OpAsmPrinter &p,
const VersionedProperties &prop) { … }
ParseResult test::customParseProperties(OpAsmParser &parser,
VersionedProperties &prop) { … }
LogicalResult test::readFromMlirBytecode(DialectBytecodeReader &reader,
MutableArrayRef<int64_t> prop) { … }
void test::writeToMlirBytecode(DialectBytecodeWriter &writer,
ArrayRef<int64_t> prop) { … }
std::unique_ptr<DynamicOpDefinition> getDynamicGenericOp(TestDialect *dialect) { … }
std::unique_ptr<DynamicOpDefinition>
getDynamicOneOperandTwoResultsOp(TestDialect *dialect) { … }
std::unique_ptr<DynamicOpDefinition>
getDynamicCustomParserPrinterOp(TestDialect *dialect) { … }
void test::registerTestDialect(DialectRegistry ®istry) { … }
void test::testSideEffectOpGetEffect(
Operation *op,
SmallVectorImpl<SideEffects::EffectInstance<TestEffects::Effect>>
&effects) { … }
struct TestOpEffectInterfaceFallback
: public TestEffectOpInterface::FallbackModel<
TestOpEffectInterfaceFallback> { … };
void TestDialect::initialize() { … }
TestDialect::~TestDialect() { … }
Operation *TestDialect::materializeConstant(OpBuilder &builder, Attribute value,
Type type, Location loc) { … }
void *TestDialect::getRegisteredInterfaceForOp(TypeID typeID,
OperationName opName) { … }
LogicalResult TestDialect::verifyOperationAttribute(Operation *op,
NamedAttribute namedAttr) { … }
LogicalResult TestDialect::verifyRegionArgAttribute(Operation *op,
unsigned regionIndex,
unsigned argIndex,
NamedAttribute namedAttr) { … }
LogicalResult
TestDialect::verifyRegionResultAttribute(Operation *op, unsigned regionIndex,
unsigned resultIndex,
NamedAttribute namedAttr) { … }
std::optional<Dialect::ParseOpHook>
TestDialect::getParseOperationHook(StringRef opName) const { … }
llvm::unique_function<void(Operation *, OpAsmPrinter &)>
TestDialect::getOperationPrinter(Operation *op) const { … }
static LogicalResult
dialectCanonicalizationPattern(TestDialectCanonicalizerOp op,
PatternRewriter &rewriter) { … }
void TestDialect::getCanonicalizationPatterns(
RewritePatternSet &results) const { … }