<table border="1" cellspacing="0" cellpadding="8">
    <tr>
        <th>Issue</th>
        <td>
            <a href=https://github.com/llvm/llvm-project/issues/136418>136418</a>
        </td>
    </tr>

    <tr>
        <th>Summary</th>
        <td>
            [mlir] error: Dialect `ml_program' not found for custom op 'ml_program.global'
        </td>
    </tr>

    <tr>
      <th>Labels</th>
      <td>
            mlir
      </td>
    </tr>

    <tr>
      <th>Assignees</th>
      <td>
            ryan-holt-1
      </td>
    </tr>

    <tr>
      <th>Reporter</th>
      <td>
          vfdff
      </td>
    </tr>
</table>

<pre>
    The MR [[mlir][MLProgram] Add MLProgram to MemRef bufferization pass](https://github.com/llvm/llvm-project/pull/75103)  has landed for a long time, but I still get the compile error, does I some miss something ?

>  mlir-translate -mlir-to-llvmir mlp.out.mlir
>       error: Dialect `ml_program' not found for custom op 'ml_program.global'

* test: https://godbolt.org/z/d8MGqPGb9
> (py311-source) root@998ee80b761b:/home/zhongyunde/source/test/simple_mlp# cat mlp.out.mlir
```
module attributes {torch.debug_module_name = "MlpModel"} {
  ml_program.global private mutable @global_seed(dense<0> : tensor<i64>) : tensor<i64>
}
```
</pre>
<img width="1" height="1" alt="" src="http://email.email.llvm.org/o/eJysk9-PpDYMx_8a82LNKCQwwAMP7M5xqtSRTqe-jwIxkCoQmh8r7f71VZi5XrXtS6WiSJBgO_bH_krv9bwRtVC-AOfuXW6nxZpwyoFzKK-ZjGGxrn2b1DRlg1Xv7W8L4e07JofyZTXaQXmF8uX26zdnZydXKK_YKYV_HWCweKP1O004xGkipz9k0HbDXXqfnHm9hLB7EB3wHng_67DE4TzaFXhvzNuP12l39ncaA_B-j8YA76syZwJ4A68cOoaL9GjkpkjhZB1KNHabMeiVgL_iEAP-gj5oY3CmgGEhHO26a0NIzlmXjJQln6zsSrhq74-vsOhtRhA9sC4t8QUxVX4KTm7eyEB4euztKSWqHa5mP9sYzgegp8vxPG4SHV61NDQGhAtbzX1_wuMVbjbgZOP2KGKMPtgV7Y7Aq5-G59nYQRrg1TMn3mEgH1LkTzStGqwJZ-tm4P0H8F7Vt69_fPs6NM_EgNf7u8jzk7fRjQS8QWdtgII1TU1Us6G65MMj4GITzP5jsdv8HjeVNj_c-iMB3nu97obuq9mBCxxl-AeNC3su1q1WRUMoQ3B6iIE8QvUSrBuXs6IhzveHwX2TKyGIKwLnN7PfrCKTZrS6JgdgXWrJJzq4O_2WurPGIAdDCAV7_Ll7IgW8VrR5AvHKDg4iMdx86s-rvhQgviQW_3bMOqiuf68kU61QjWhkRm1eFSUr-aVh2dIKOeWqEIpEURBNauQFE0qoS1WNUpVVplvOeMmKvGF1mQt2rmReNROvxlFe6iafoGC0Sm3OabRSGzPtfaQ2F5cirzMjBzL-KeAD8EO5rj00M8TZQ8GM9sH_jBB0MIfonwL-_8cyi860_1nXR2UeeP8s7q3lfwYAAP__w7p4SA">