[Bug middle-end/49363] New: [feature request] multiple target attribute (and runtime dispatching based on cpuid)

vincenzo.innocente at cern dot ch gcc-bugzilla@gcc.gnu.org
Fri Jun 10 12:13:00 GMT 2011


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!



More information about the Gcc-bugs mailing list