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

    <tr>
        <th>Summary</th>
        <td>
            Adopt formatv() automatic index assignment
        </td>
    </tr>

    <tr>
      <th>Labels</th>
      <td>
            new issue
      </td>
    </tr>

    <tr>
      <th>Assignees</th>
      <td>
      </td>
    </tr>

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

<pre>
    https://github.com/llvm/llvm-project/pull/107459 added support for automatic index assignment in LLVM's formatv() API. This means that code like:

```
 formatv("unknown machine pass '{0}'", Name).str()
```

can be simplified to:

```
 formatv("unknown machine pass '{}'", Name).str()
```

I suspect most uses of `formatv()` can use this feature and we only need manual indexing when the same index is repeated twice. This issue is a starter code-cleanup task to try to adopt this throughout the codebase.

</pre>
<img width="1" height="1" alt="" src="http://email.email.llvm.org/o/eJykk09r3DwQxj-NfBmyyPL_gw-bNywE8pYeSu9je3atRJaMZpRtvn2xN6Wk0EMoCGSwPfN75nkGme3FE_WqulfVQ4ZJ5hD75xRxTi4bwvTWzyIrq-KozEmZ08XKnIbDGBZlTs69_rru1hieaRRlTmtyTplTrpuy6gCniSbgtK4hCpxDBEwSFhQ7gvUT_YAbxEJewHp4evr-vzINb58uKK_KtMp0cPz6eIBvs2VYCD2DzCgwhonA2Rfa8PR-av1-9PFDBZP8iw9XDwuOs_UEKzKDMo1q7rVqHrYnY5T5D77gQsp0B5Z46_1HWaWPI3oYCNguq7NnSxNI-DeEzxI8AideaRRYAgskJoZwBlXrD2NTtYYNNjGBbMM7E0qKBOgnuBIE797AE02woE_obo5Yf4HrTB5kJmBc6N0oyxBpJZRN8NWO9O6IZU60vUVgwSgUd2fuRkfo0wqC_AISQOLbduEUVrnhyBxDuswhyd5r-2tApoPSx2zqi6krOsyoz5uiM23XtlU290V3prMeqR1KkyOVbVfWVKApsWjzYqgz2xttKm3yPK91WZoDtcWoqa6x6IxuilGVmha07rAF9xDiJdsV9Lmpm6rKHA7keF8JYzxdb_o2b6qHLPZ72od0YVVqZ1n4dxmx4qg_7vo-xvfvmc9SdJ_fsR2Jty27Mb_25mcAAAD__ylQNMI">