#include "mlir/IR/MLIRContext.h"
#include "mlir/InitAllDialects.h"
#include "mlir/Tools/Plugins/DialectPlugin.h"
#include "Standalone/StandaloneDialect.h"
#include "Standalone/StandalonePasses.h"
#include "mlir/Tools/Plugins/PassPlugin.h"
#include "llvm/Config/llvm-config.h"
#include "llvm/Support/Compiler.h"
using namespace mlir;
extern "C" LLVM_ATTRIBUTE_WEAK DialectPluginLibraryInfo
mlirGetDialectPluginInfo() {
return {MLIR_PLUGIN_API_VERSION, "Standalone", LLVM_VERSION_STRING,
[](DialectRegistry *registry) {
registry->insert<mlir::standalone::StandaloneDialect>();
mlir::standalone::registerPasses();
}};
}
extern "C" LLVM_ATTRIBUTE_WEAK PassPluginLibraryInfo mlirGetPassPluginInfo() {
return {MLIR_PLUGIN_API_VERSION, "StandalonePasses", LLVM_VERSION_STRING,
[]() { mlir::standalone::registerPasses(); }};
}