You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Change the FMV rules so target_clones default versions must be explicitly stated (#377)
This patch requires default versions in target_clones to be explicitly stated.
This makes it simple to determine where the dispatcher should be created
across translation units, and resolves cases (such as below) where we
can end up making multiple dispatchers.
// Translation unit 1
__attribute__ ((target_clone("dotprod, sve"))) int foo();
int foo() { return 1; }
// Translation unit 2
__attribute__ ((target_clone("dotprod, sve"))) int foo() { return 2; }
With the previous specification, my understanding is, the second translation
unit would implicitly add a default. Then there would be two implementations
of defaults, and so two dispatchers would be created.
0 commit comments