[Mlir-commits] [mlir] [MLIR] Add callback functions for ModuleToObject (PR #116007)

Christian Ulmann llvmlistbot at llvm.org
Wed Nov 13 00:14:37 PST 2024


================
@@ -215,6 +222,10 @@ std::optional<SmallVector<char, 0>> ModuleToObject::run() {
   }
   setDataLayoutAndTriple(*llvmModule);
 
+  if (initialLlvmIRCallback) {
+    initialLlvmIRCallback(*llvmModule);
+  }
----------------
Dinistro wrote:

```suggestion
  if (initialLlvmIRCallback)
    initialLlvmIRCallback(*llvmModule);
```

The same applies to other cases.

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


More information about the Mlir-commits mailing list