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

    <tr>
        <th>Summary</th>
        <td>
            [arith] Documentation out of date
        </td>
    </tr>

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

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

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

<pre>
    The arith dialect only works on scalar types, but the dialect documentation still pervasively talks about tensors and vectors

```
def Arith_AddIOp : Arith_IntBinaryOp<"addi", [Commutative]> {
  let summary = "integer addition operation";
  let description = [{
    The `addi` operation takes two operands and returns one result, each of
    these is required to be the same type. This type may be an integer scalar
    type, a vector whose element type is integer, or a tensor of integers. It
    has no standard attributes.

    Example:

    ```mlir
    // Scalar addition.
    %a = arith.addi %b, %c : i64

    // SIMD vector element-wise addition, e.g. for Intel SSE.
    %f = arith.addi %g, %h : vector<4xi32>

    // Tensor element-wise addition.
    %x = arith.addi %y, %z : tensor<4x?xi8>
    ```
  }];
```
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJx1VE1vozAQ_TVwGRUhCBQOHJImlXJY9dDeVwZPgrcGs7bJx_76HRtok25XQomN37x5M_NMrfi1emsRmBa2BS6YxMaC6uUVzkq_G1qCaZhkGux1QBMkT1CPFizFLGiumrHD3jIrHNoKKWFAfWJGnJCILJNExGrl4rA3StOu53CiYFoH8TaI1_NvHs-P33I8wNop-7nmfP8yQJCu5xf73m5Ez_T1ZQjSpyBJGOeC_pzAINs8qa4bnaITBtk2SHcQPG4mUgCJFszYdRRNjFugMNFbPKIGx-LLUFSBL8hxpnehHE2jxeBhPjzb3JADuH5SCV5QHn8yUSPe0YA9q-ldz6c-aLSj7l2rkdZmlNYVgaxpQR0-aanlBkEYwvwehUYOVkGNfhSGdegHFFF2grgldOzqzlkPS3XTJG8oCeZysXkWcG4V5UCJbp4TC7HN4Q5JGDYPkcQtJyaCvf2kbZmBXpETqDqmOTBrtSDXoIluh-2guwvrBok0168nH1bopLiRHCTP9MDr5MllXNEtIGN-LN7SkUO4d7U3RpI13kMiX_2Tbybe_9gu3Zj78HAW1JQllZ9NdIzgQAhyIUp4fd3dCzh8I-A4C2i9gCkDOXd1ESkZbPcfOW9Tq79Vcp_z8k3O65zzj885jc3nDNLniyg-0t71e3kVPG791dl8uZohr1JepiULrbASK7K_z0pg2N59CtyFJ5NwZjEctaxaawfjRu1rO1LMWEeN6mgj5Wn5exi0-kXtoa0wZnTfnOcsT5IsbKu4qJOkKYqyKBHrbFXmj-WBFbyMY8yb1SGUrEZpnCa6t9456bpRGt0tzrahqJI4SeI8yeM8LrI8alJec57ERRmvmgTLYBVjx4SMnJJI6WOoKy-qHo-GDqUw1nweMmPEsUffBMfPRtsqiiDH96hDr7_y4v8Cuk-oKA">