Issue 89487
Summary [feature request] Clang should be able to print the current CPU march name based on its detected features
Labels clang
Assignees
Reporter yurivict
    Clang allows to specify the -march=xx option to compile for a specific type of CPU. When the user specifies -march=native - this is for the current CPU type.

Clang defines the set of CPU types (a complete list is printed by 'clang -mcpu=help').

But it would be very useful if clang would also be able to print the current CPU's march name.

Clang has the database of marches, names and feature flags, so only clang can convert the actual set of feature flags into the name.

_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to