[Mlir-commits] [mlir] [emitC]Option to mlir-translate class instead of function (PR #141158)
Mircea Trofin
llvmlistbot at llvm.org
Fri Jun 6 19:39:52 PDT 2025
Valentin Clement =?utf-8?b?KOODkOODrOODsw=?=,Jaddyen <ajaden at google.com>,Jaddyen
<ajaden at google.com>
Message-ID:
In-Reply-To: <llvm.org/llvm/llvm-project/pull/141158 at github.com>
================
@@ -1572,4 +1572,120 @@ def EmitC_SwitchOp : EmitC_Op<"switch", [RecursiveMemoryEffects,
let hasVerifier = 1;
}
+def EmitC_ClassOp : EmitC_Op<"class", [AutomaticAllocationScope,
+ IsolatedFromAbove, OpAsmOpInterface]> {
+ let summary =
+ "Represents a C++ class definition, encapsulating fields and methods.";
+
+ let description = [{
+ The `emitc.class` operation defines a C++ class, acting as a container
+ for its data fields (`emitc.variable`) and methods (`emitc.func`).
----------------
mtrofin wrote:
`emitc.field` you mean?
https://github.com/llvm/llvm-project/pull/141158
More information about the Mlir-commits
mailing list