[Mlir-commits] [mlir] [mlir][EmitC] Add pass that combines all available emitc conversions (PR #117549)
Mehdi Amini
llvmlistbot at llvm.org
Thu Apr 3 02:16:50 PDT 2025
================
@@ -22,6 +23,30 @@
using namespace mlir;
+namespace {
+/// Implement the interface to convert Arith to EmitC.
+struct ArithToEmitCDialectInterface : public ConvertToEmitCPatternInterface {
+ using ConvertToEmitCPatternInterface::ConvertToEmitCPatternInterface;
+ void loadDependentDialects(MLIRContext *context) const final {
+ context->loadDialect<emitc::EmitCDialect>();
----------------
joker-eph wrote:
The doc said that EmicDialect does not need to be loaded and this is for other dialects.
https://github.com/llvm/llvm-project/pull/117549
More information about the Mlir-commits
mailing list