[PATCH] D76571: [mlir] Start simple EmitC dialect.
Jacques Pienaar via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri Mar 27 16:00:03 PDT 2020
jpienaar marked an inline comment as done.
jpienaar added inline comments.
================
Comment at: mlir/test/Target/cpp-calls.mlir:17
+ // CHECK: foo::print([[V3]]);
+ emitc.call "foo::print"(%2): (i32) -> ()
+ return
----------------
mehdi_amini wrote:
> I am a bit confused by the design of this dialect. I don't really get why we need a dialect for expressing this instead of... just emitting the C++ code directly for example.
>
> What other ops would go into the "emitc" dialect?
This would correspond mostly to the syntax, to make the emission of the ops independent of the syntax. I think it is open to me how much value this dialect adds compared to jsut emitting + helper functions (previous version). So this is more an example, if folks don't see value then we can go back to the previous version.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D76571/new/
https://reviews.llvm.org/D76571
More information about the llvm-commits
mailing list