[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:28:35 PDT 2025


================
@@ -34,6 +35,32 @@ using namespace mlir::scf;
 
 namespace {
 
+/// Implement the interface to convert SCF to EmitC.
+struct SCFToEmitCDialectInterface : public ConvertToEmitCPatternInterface {
+  using ConvertToEmitCPatternInterface::ConvertToEmitCPatternInterface;
+  void loadDependentDialects(MLIRContext *context) const final {
+    context->loadDialect<emitc::EmitCDialect>();
----------------
joker-eph wrote:

(likewise here and elsewhere)

https://github.com/llvm/llvm-project/pull/117549


More information about the Mlir-commits mailing list