Skip to content

Add support for nested multiversioned functions #8

Closed
@calebzulawski

Description

@calebzulawski

In this example:

#[target_clones("[x86|x86_64]+avx")]
fn foo() {  /* snip */ }

#[target_clones("[x86|x86_64]+avx")]
fn bar() { foo(); }

foo should be statically dispatched when invoked in bar, since the CPU features have already been established when dispatching bar. It would also be nice if this even worked when functions have mismatched feature sets (x86+sse+avx should be able to statically dispatch x86+sse functions).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions