[Mlir-commits] [mlir] [mlir][capi] make MLIR Pass C-API type safe (PR #121284)

Jiuyang Liu llvmlistbot at llvm.org
Sun Dec 29 03:53:45 PST 2024


sequencer wrote:

How does `ExternalPassCallbacks` construct? It should construct from 5 callbacks:
```
construct: void => void
destruct: void => void
initialize: Option[MlirContext => MlirLogicalResult]
clone: void => void
run (MlirOperation, MlirExternalPass) => void
```
The `MlirExternalPass` is a struct that need to be construct from the C-API.

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


More information about the Mlir-commits mailing list