ARM-software / acle

Arm C Language Extensions (ACLE)
Other
85 stars 54 forks source link

[proposal][FMV] Make target_clones and target_version mixable #291

Closed DanielKristofKiss closed 1 month ago

DanielKristofKiss commented 7 months ago

as proposed https://github.com/llvm/llvm-project/pull/74358#discussion_r1462172419 here let's make possible to mix target_clones with target_version.

__attribute__((target_clones("dotprod", "aes"))) 
int callee(void) {
    return 42;
}

__attribute__((target_version("default"))) 
int callee(void) {
    return 0;
}

int caller(void) {
    return callee();
}
vhscampos commented 7 months ago

Hi, thanks for your issue report.

If possible, we encourage you to contribute with a Pull Request that addresses this issue. We will be happy to review it.

labrinea commented 5 months ago

I have created https://github.com/ARM-software/acle/pull/310 for this.