This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug middle-end/49363] New: [feature request] multiple target attribute (and runtime dispatching based on cpuid)
- From: "vincenzo.innocente at cern dot ch" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Fri, 10 Jun 2011 12:13:09 +0000
- Subject: [Bug middle-end/49363] New: [feature request] multiple target attribute (and runtime dispatching based on cpuid)
- Auto-submitted: auto-generated
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49363
Summary: [feature request] multiple target attribute (and
runtime dispatching based on cpuid)
Product: gcc
Version: 4.7.0
Status: UNCONFIRMED
Severity: enhancement
Priority: P3
Component: middle-end
AssignedTo: unassigned@gcc.gnu.org
ReportedBy: vincenzo.innocente@cern.ch
let me come back to the issue of supporting runtime dispatching based on cpuid
at compiler time:
would it be possible to implement a runtime dispatching based on a comma
separated list of targets. for instance something like
ret_type __attribute__ ((__target__ ("sse2,"avx","fma"))) func(...) { ...}
?
I think many developers are by now using macros, templates and other "magic" to
implement their own dispatching schema. Support from the compiler would be more
than welcome!