<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=https://github.com/llvm/llvm-project/issues/69111>69111</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
Consider refactoring "Merge parsed libraries into one module"
</td>
</tr>
<tr>
<th>Labels</th>
<td>
mlir:transform_dialect
</td>
</tr>
<tr>
<th>Assignees</th>
<td>
ingomueller-net
</td>
</tr>
<tr>
<th>Reporter</th>
<td>
nicolasvasilache
</td>
</tr>
</table>
<pre>
On #68661 @matthias-springer notes:
```
I think getPreloadedTransformModule should be doing that. It currently only takes the first preloaded library and ignores all others. Alternatively, this could also be done PreloadLibraryPass: if there is no module preloaded yet, add the first one. On every subsequent run of the PreloadLibraryPass pass (and for every file in the list of libraries), merge the symbols.
```
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJxsklFrrEgQhX9N-1KMaDvq-ODDbMJAYEPysO9La5dam7Z7tqod8N9fNObmcrkgitB9vnOqjhGh0SO2qvxLaU1-DPOCziGfPEaltSqfE7PEKXDrqQ_OyMMIOdNPmHTBru2bB6WL6lJVOahzNpsYJzJykjuTH5EBfIgoqriq7FllV1Vlx7P_vkCcyH_AiPGd0QVj0f7DxssQeH4NdnEIMoXFWegQbCA_QpxMTOElQr8wo49uheDdCtF8oECcEAZiiXD_EgRHHRtewXgLNPrAKGCcgxAnZEnh6iKyN5Ee6FalnzZTAv2ONU7CJ9sjHB7__tR7N7IFAxo2KiOQgA8wf9r-xq_bKJ_AWPuLu-AxhTcP-EBeQZZO8P8FfQRePIRd8Q84uG8vpS9blCHwcX0gh0B-v-RoUx-O0ISidLPhZ-QR9xOyzl1wkv62kcS2hW2KxiTY5lVTF5fyXNfJ1NqLzXI9dIXNLvm5so3pusr0tblUuhiyOqFWZ7rIs7zMy7Iu63QoilKfz01f9XVT1UadM5wNudS5x5wGHhMSWbCtmjzPE2c6dHJ0cHbEqrjGrxL8a8k47L_KyO0mceqWUdQ527LKt2ik6LB9Cl7IIgPjYPoYtiKC0vp1H8DdsPysBKEA-Ri2bRx7U1onC7t2ivG-11bflL6NFKelS_swK33beMfndOfw3-7uticSpW97qB8BAAD__8QwITk">