[PATCH] D116179: [InstrProf][NFC] Do not assume size of counter type

Petr Hosek via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Jan 18 18:03:49 PST 2022


phosek added a comment.

In D116179#3253284 <https://reviews.llvm.org/D116179#3253284>, @ellis wrote:

> In D116179#3253146 <https://reviews.llvm.org/D116179#3253146>, @phosek wrote:
>
>> Is it really necessary to rename the fields in `InstrProfData.inc`? That header is shipped with Clang and may have other uses outside of compiler-rt. For example, in Fuchsia we use `InstrProfData.inc` in the kernel where we cannot use the existing runtime and the name change broke our build. The original names may not be perfect, but that shouldn't justify breaking source compatibility.
>
> I've created D117631 <https://reviews.llvm.org/D117631> to restore `InstrProfData.inc` and hopefully fix your build. In retrospect I guess this wasn't NFC because this file is being used elsewhere, good to know.

Thanks!

> By the way, I'm also changing this file in D116180 <https://reviews.llvm.org/D116180>, but I'm guessing that won't cause issues because it is only adding a bit field, not changing a field name.

I looked at that change and I don't think it should introduce any issues but thanks for checking.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D116179/new/

https://reviews.llvm.org/D116179



More information about the llvm-commits mailing list