<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=https://github.com/llvm/llvm-project/issues/135610>135610</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
[Attributor] Support captures attribute
</td>
</tr>
<tr>
<th>Labels</th>
<td>
missed-optimization,
llvm::Attributor
</td>
</tr>
<tr>
<th>Assignees</th>
<td>
</td>
</tr>
<tr>
<th>Reporter</th>
<td>
nikic
</td>
</tr>
</table>
<pre>
Attributor can currently only infer `captures(none)`. It should be switched to infer the full `CaptureInfo`, similar to what `FunctionAttrs` does. The custom `"no-capture-maybe-returned"` attribute should be subsumed by this as well.
</pre>
<img width="1" height="1" alt="" src="http://email.email.llvm.org/o/eJxMkcGOozAMhp8mXCIQGEjpgcPsVEhz3n2BkJiS3ZCg2Jmq-_QrOl11Tj7Yn_3__jWRuwbEUfQ_RH8pdOY1pjG4P84Uc7T38Y05uTlzTNLoIE1OCQP7u4zB36ULCyYpVG30zjkhCRhCDCjgLFRdyQ-WtMbsrZxR0s2xWdFKjk-QV5RL9v7Y8P614SMsUahawLsktzmv0zF-WzUfQ1MOhl0MhyoSqpY2IlXy14rSZOK4yQcLIZZPReWm7zOWCTmngFYAHJh-usLv8vJMeUMr57vk1ZHUJG_ofVXYsbXn9qwLHJtT1ylQSrXFOnbdYLrTvChYerMMqu0tDI1FVCczoB4KN0INfd01XVO3Td1WiL06n2cNJ7DmpFB0NW7a-cr7z62K6Vo4ooxj0_aqqQuvZ_T0CAdgc0Roy7iz29xffbzhcAPvAuDARfsm2rdXXkezvxRpPJrlnK8kuto7YnpdY8f-Ef43rL_In3nfY2L5P9XXv4qc_Lgy73Scg0nAdHW85rkycRMwPYR8lXJP8TcaFjA9TJGA6enrc4R_AQAA__8rmdHR">