[llvm-bugs] [Bug 30516] New: Autodetection of Host CPUs on AArch64
via llvm-bugs
llvm-bugs at lists.llvm.org
Sun Sep 25 02:51:51 PDT 2016
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: unassignedbugs at nondot.org
Reporter: hegdesmailbox at gmail.com
CC: llvm-bugs at lists.llvm.org
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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20160925/eaf91d4d/attachment.html>
More information about the llvm-bugs
mailing list