[PATCH] D24661: More processors support under AARch64 state for auto detection.

Renato Golin via llvm-commits llvm-commits at lists.llvm.org
Tue Sep 20 10:18:53 PDT 2016


On 20 September 2016 at 16:26, Suprateeka R Hegde
<hegdesmailbox at gmail.com> wrote:
> Thats exactly what I meant by a software cpuid kind of facility. There is
> one libcpu available on github. We need something similar. We can then
> offload entire thing to that.

Do you mean: https://github.com/libcpu/libcpu

Doesn't look like it's doing what we need...

I also found:

https://github.com/anrieff/libcpuid

which seems x86-only, and

http://www.nongnu.org/proccpuinfo/libproccpuinfo-guide.html

which looks too old to be of any use.

None of them outline their licenses well enough for us to re-use / incorporate.


> But at least for now, I (from HPE) can not spend time on such a thing. I can
> do it later, though.

I totally understand, but given the non-critical nature of this
feature, I'd rather do it the right way from the beginning, than
having something hacked up now and move later.

What's in there is so because x86 is "simple", so it's a small ugly
hack. For ARM, we'd be moving towards a huge horrendous hack. :)

cheers,
--renato


More information about the llvm-commits mailing list