This library does not depend on all the dialects, conceptually. This is
changing the recently introduced `mlirContextLoadAllDialects()` function
to not call `registerAllDialects()` itself, which aligns it better with
the C++ code anyway (and this is deprecated and will be removed soon).
#include "mlir/IR/Module.h"
#include "mlir/IR/Operation.h"
#include "mlir/IR/Types.h"
-#include "mlir/InitAllDialects.h"
#include "mlir/Parser.h"
#include "llvm/Support/raw_ostream.h"
void mlirContextDestroy(MlirContext context) { delete unwrap(context); }
void mlirContextLoadAllDialects(MlirContext context) {
- registerAllDialects(unwrap(context));
- getGlobalDialectRegistry().loadAll(unwrap(context));
+ unwrap(context).loadAllGloballyRegisteredDialects();
}
/* ========================================================================== */