[Mlir-commits] [mlir] [emitC]Option to mlir-translate class instead of function (PR #141158)
Jaden Angella
llvmlistbot at llvm.org
Fri Jun 13 16:58:33 PDT 2025
Valentin Clement =?utf-8?b?KOODkOODrOODsw=?=,Jaddyen <ajaden at google.com>,Jaddyen
<ajaden at google.com>,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>
================
@@ -33,13 +33,50 @@ void registerToCppTranslation() {
"file-id", llvm::cl::desc("Emit emitc.file ops with matching id"),
llvm::cl::init(""));
+ static llvm::cl::opt<bool> emitClass(
+ "emit-class",
+ llvm::cl::desc("If specified, the output will be a class where "
+ "the function(s) in the module are methods "
+ "Enables class-related options"),
+ llvm::cl::init(false));
----------------
Jaddyen wrote:
We are aiming to add the functionality of getting classes from emitc. This would enable one to instantiate a class once and load it with weights that it can then use to execute.
https://github.com/llvm/llvm-project/pull/141158
More information about the Mlir-commits
mailing list