[Mlir-commits] [mlir] [MLIR][NVVM] Add binaryCallback (PR #170853)
Mehdi Amini
llvmlistbot at llvm.org
Mon Dec 8 07:16:10 PST 2025
================
@@ -521,6 +524,15 @@ NVPTXSerializer::compileToBinary(const std::string &ptxCode) {
/*ErrMsg=*/&message))
return emitLogError("`fatbinary`");
+ if (binaryCallback) {
+ llvm::ErrorOr<std::unique_ptr<llvm::MemoryBuffer>> logBuffer =
+ llvm::MemoryBuffer::getFile(logFile->first);
+ if (logBuffer && !(*logBuffer)->getBuffer().empty()) {
+ StringRef logRef = (*logBuffer)->getBuffer();
+ binaryCallback(logRef);
----------------
joker-eph wrote:
Mmmm: you're actually calling this with some tool output? The naming and documentation is quite misleading and does not align with the other callbacks actually.
https://github.com/llvm/llvm-project/pull/170853
More information about the Mlir-commits
mailing list