[Mlir-commits] [mlir] [MLIR] Add callback functions for ModuleToObject (PR #116007)
Zichen Lu
llvmlistbot at llvm.org
Thu Nov 14 04:03:07 PST 2024
================
@@ -572,6 +572,9 @@ NVPTXSerializer::moduleToObject(llvm::Module &llvmModule) {
getOperation().emitError() << "Failed translating the module to ISA.";
return std::nullopt;
}
+ if (isaCallback) {
----------------
MikaOvO wrote:
Could we dump the sass result ourselves after getting it?
I think the reason for adding callback functions here is that we cannot obtain the intermediate results (LLVM IR, etc.) by subclass `SerializeGPUModuleBase` (maybe we can override `ModuleToObject::run()`, but this will cause code duplication, which is not a good solution).
https://github.com/llvm/llvm-project/pull/116007
More information about the Mlir-commits
mailing list