Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions base/expr.jl
Original file line number Diff line number Diff line change
Expand Up @@ -256,6 +256,14 @@ Give a hint to the compiler that calls within `block` are worth inlining.
end
```

!!! note
The callsite annotation applies to all calls in the block, including function arguments
that are themselves calls:
```julia
# The compiler will not inline `getproperty`, `g` or `f`
@noinline f(x.inner, g(y))
```

!!! note
When there are nested callsite annotations, the innermost annotation has the precedence:
```julia
Expand Down