[Mlir-commits] [mlir] [mlir][emitC] Add support to emitter for `classop`, `fieldop` and `getfieldop` (PR #145605)
Jaden Angella
llvmlistbot at llvm.org
Wed Jun 25 13:46:54 PDT 2025
================
@@ -997,6 +997,61 @@ static LogicalResult printOperation(CppEmitter &emitter, ModuleOp moduleOp) {
return success();
}
+static LogicalResult printOperation(CppEmitter &emitter, ClassOp classOp) {
+ CppEmitter::Scope classScope(emitter);
+ raw_indented_ostream &os = emitter.ostream();
+ os << "class " << classOp.getSymName() << " final {\n";
----------------
Jaddyen wrote:
yes, we can specify in the `ClassOp` so this print allows for more use cases.
https://github.com/llvm/llvm-project/pull/145605
More information about the Mlir-commits
mailing list