[Mlir-commits] [mlir] [MLIR][NVVM] Return ISA compiler log via ObjectAttr properties (PR #176697)

Mehdi Amini llvmlistbot at llvm.org
Tue Jan 27 05:54:11 PST 2026


================
@@ -775,6 +804,12 @@ NVVMTargetAttrImpl::createObject(Attribute attribute, Operation *module,
     }
   }
 
+  if (module->hasAttr("ISACompilerLog")) {
+    StringAttr attr = llvm::dyn_cast_or_null<StringAttr>(
+        module->getDiscardableAttr("ISACompilerLog"));
----------------
joker-eph wrote:

```suggestion
  if (StringAttr attr = llvm::dyn_cast_or_null<StringAttr>(
        module->getDiscardableAttr("ISACompilerLog"))) {
```

https://github.com/llvm/llvm-project/pull/176697


More information about the Mlir-commits mailing list