#include "mlir/IR/Dialect.h"
#include "mlir/IR/DialectInterface.h"
#include "mlir/Support/TypeID.h"
#include "gtest/gtest.h"
usingnamespacemlir;
usingnamespacemlir::detail;
namespace {
struct TestDialect : public Dialect { … };
struct AnotherTestDialect : public Dialect { … };
TEST(DialectDeathTest, MultipleDialectsWithSameNamespace) { … }
struct SecondTestDialect : public Dialect { … };
struct TestDialectInterfaceBase
: public DialectInterface::Base<TestDialectInterfaceBase> { … };
struct TestDialectInterface : public TestDialectInterfaceBase { … };
struct SecondTestDialectInterface : public TestDialectInterfaceBase { … };
TEST(Dialect, DelayedInterfaceRegistration) { … }
TEST(Dialect, RepeatedDelayedRegistration) { … }
namespace {
struct DummyExtension : DialectExtension<DummyExtension, TestDialect> { … };
}
TEST(Dialect, NestedDialectExtension) { … }
TEST(Dialect, SubsetWithExtensions) { … }
}