<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=https://github.com/llvm/llvm-project/issues/107083>107083</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
__llvm_profile_counter_bias etc. should be intptr_t
</td>
</tr>
<tr>
<th>Labels</th>
<td>
new issue
</td>
</tr>
<tr>
<th>Assignees</th>
<td>
</td>
</tr>
<tr>
<th>Reporter</th>
<td>
rorth
</td>
</tr>
</table>
<pre>
While investigating Issue #101667 and later PR #102747, it was discovered that `clang` and `compiler-rt` are inconsistent about
the types of `__llvm_profile_counter_bias` and `__llvm_profile_bitmap_bias`: while `clang` creates them as `int64_t`, `compiler-rt`
had them as `intptr_t`. While PR #102747 changed `compiler-rt` to match `clang` here, both variables could just be `intptr_t` to
match their use. While such a change is a no-op for 64-bit targets, for 32-bit targets this causes an incompatible change for the profile file format, meaning some effort to support the new version.
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJx8k8-urDYMxp8mbKwZhcCBYcHitFcjdVd10-XIBENyFQiKzRzdt6_CzGmnp9Xd8MfJZ__iz0FmP69EvXr7Rb19K3AXF1OfYhJXDHH80f_pfCDw651Y_Izi1xl-Y94JlKlKXTZNC7iOEFAowe9_PMKmrVtlfgUv8IEMo2cb75RoBHEooBptA66zavQhzv9x2XygdEpyRFMuauPKnoVWARziLkp_U_pdHIH82IghTll6u4VwX25bipMPdLNxX4XSbfDILwW-7Bq8LLh9blLVO3wcJ31Fs4lQiEEcLYCc1_wqTX3LiPl4_-F-ADocv2g2SYfoDPBo6GujwDpcZ_q_NkiEBcW6f2E5SpSrD1Ec3DF5HAIx2LiHEb7vLDDQl7og8YH2yCaOfIKd6W8e3q0DfJKAZ0BY4yluMMUETX0avIBgmkk4l87RyrxGQZxnsLgzMeB6mLdsKH4I9Jk2q7J5Tw_g8YhpQclJF8I1jxfHhYCmKSbJDeB9245PR7DSB9wpsY_ruRj7auyqDgvqy9a8VU1ZlrpwfT1ip_U0WdtNTVd1lwu1E7aIl1pX2pSF7402te50Veq3S6XPXdUN7aW1mvRk6oFUrWlBH855ZM4xzYXPI9-XutWXqgg4UODjzhiTkY5VZUy-QqnPotOwz6xqHTwL_5NGvATqfzKwQGLPwO7wcsh34OFhsafQO5GNVfWuzFWZ6-zF7cPZxkWZa074fJ22FL-TFWWuBxcrc32C33vzVwAAAP__M0BN_A">