CT_00_014 - Target Attribute Support (GCC)

About

It is desirable to have a common syntax across LLVM and GCC to allow developers to specify target code generation options via an attribute on a per-function basis.  So for example this would allow a developer to specify that a particular function should be compiled with the `V' extension.  This support is also a prerequisite for supporting function multiversioning.  Given the dependencies on this feature it's considered high priority to get it landed in GCC 14 and LLVM 18.

Stakeholders/Partners

RISE:

SiFive:  Kito Cheng (specification and GCC implementation).

Dependencies



Status

Development

COMPLETED


Development Timeline2H2023
Upstreaming

COMPLETED


Upstream Version



Contacts

Kito Cheng (SiFive)


Dependencies




Updates

 

  • Kito has pushed the target attribute to the trunk.  Marking complete.

 

  • Kito is working through some corner case issues in the specification
  • Expectation is this will make it for gcc-14.

  

  • Project reported as priority for 2H23