Skip to content

callsite inlining #18773

Closed
Closed

Description

Couldn't find an issue (somewhat related #15942)

It would be great to be able to inline functions at callsite

function f(x)
     y = x + 2
     @inline z = g(y)
     return z + y
end

This would be nice since it prevents having to rewrite the function g(x) to be a 'private' function that is always inlined with @inline and then having to rewriting a corresponding public function g_public(x) that just calls private g(x) function that is always inlined.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions