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: [email protected]
ReportedBy: [email protected]
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!