https://llvm.org/bugs/show_bug.cgi?id=30516
Bug ID: 30516
Summary: Autodetection of Host CPUs on AArch64
Product: libraries
Version: trunk
Hardware: All
OS: Linux
Status: NEW
Severity: enhancement
Priority: P
Component: Support Libraries
Assignee: [email protected]
Reporter: [email protected]
CC: [email protected]
Classification: Unclassified
Created attachment 17344
--> https://llvm.org/bugs/attachment.cgi?id=17344&action=edit
Modified Host.cpp with reference code for some more CPUs supporting AArch64
state.
In the file lib/Support/Host.cpp, getHostCPUName() implements a small set of
CPUs (under ARM Architecture) for autodetection with -mcpu=native option. And
for the AArch74 state, there is no autodetection at all.
It was discussed that the existing design duplicates the code and makes it look
cluttered. We need an API kind of interface instead of repeated "for" loops.
A modified Host.cpp is attached here for quick reference of the CPU codes.
Though the modification is functionally correct, it was discussed that the
design is not scalable especially given the fact that AArch64 base may grow
substantially with multiple vendors.
--
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
llvm-bugs mailing list
[email protected]
http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs