Annotation Interface HostCompilerDirectives.InliningRoot

Enclosing class:
HostCompilerDirectives

@Retention(RUNTIME) @Target({METHOD,CONSTRUCTOR}) public static @interface HostCompilerDirectives.InliningRoot
Marks a method as a candidate for Truffle host inlining. The host compiler may use this information to guide inlining and optimization decisions.

Annotated methods must be designed for partial evaluation. This annotation should not be applied to arbitrary Java code or third-party libraries, as doing so may cause severe performance degradation.

Typical examples include execute methods of cached nodes. The Truffle DSL automatically applies this annotation to every generated execute method. It is recommended to be used for manually written execute methods as well.

For more details, see the Truffle host compilation documentation.

Since:
25.1