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

    <tr>
        <th>Summary</th>
        <td>
            [clang][AVR] clang does not set `AVR_INTR` calling convention; should it?
        </td>
    </tr>

    <tr>
      <th>Labels</th>
      <td>
            clang
      </td>
    </tr>

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

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

<pre>
    I happened to notice that Clang does not set the `AVR_INTR` calling convention for interrupt functions on AVR:

https://github.com/llvm/llvm-project/blob/357bd61744bb8cc2b9b07447294fa977e5758550/clang/lib/CodeGen/Targets/AVR.cpp#L141-L145

Yet other targets do, e.g. MSP430:

https://github.com/llvm/llvm-project/blob/357bd61744bb8cc2b9b07447294fa977e5758550/clang/lib/CodeGen/Targets/MSP430.cpp#L82-L90

Is this intentional? Or should it be changed?
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJzMks1q3DAQx59GvgxZpJG0tg8-bLK4BNIPtiHQU5GsWVtFkYwlh_btizcJCfRQeutFgoEZ_h8_k7MfI1HH9DXTx8qsZUpLZwL9XObKJveru4XJzDNFclASxFT8QFAmU-AmmDiCS5S3MWQqUCYCtueHh9P320_3J7bnMJgQfBxhSPGJYvEpwjkt4GOhZVnnAuc1Dts4Q4pweDgxeWD8yPjLO5Uy522GPcN-9GVa7W5Ijwz7EJ5ev6t5ST9oKAx7G5Jl2EtdW7cXtVLWNsOAtrW8VqrGVp1NW9eka91ozRn2w2ZkO-S3xZvk6ANFhv29WUYqmWF_eDjthnlmKO-EEld3Qun3Gr9RgVQmWqA8r4BLDG-AduMOPn79oiT_H109K3s11uDVXcvfi7zNUCafL11dmjOByR4-L5CntAYHvoAlGCYTR3JM9pXrpGtlayrqRI0apeCtrqZuaIWjppG14tgYtK3UqrHOGCldI6ytfIccFW-5QNRC6l1TN8IYxeXZ7lshFFOcHo0Puy2XXVrGyue8Uif4vsV9FYylkC8YI744x43opbsEadcxM8WDzyW_nSi-hAv7zxv6yPT1RqA-wvAn3H8Fm8nrt2S2ONYldP_c9MXXVs-LtacOfwcAAP__dvYfzA">