public class CEntryPointFeature extends Object implements GraalFeature
org.graalvm.nativeimage.hosted.Feature.AfterAnalysisAccess, org.graalvm.nativeimage.hosted.Feature.AfterCompilationAccess, org.graalvm.nativeimage.hosted.Feature.AfterHeapLayoutAccess, org.graalvm.nativeimage.hosted.Feature.AfterImageWriteAccess, org.graalvm.nativeimage.hosted.Feature.AfterRegistrationAccess, org.graalvm.nativeimage.hosted.Feature.BeforeAnalysisAccess, org.graalvm.nativeimage.hosted.Feature.BeforeCompilationAccess, org.graalvm.nativeimage.hosted.Feature.BeforeImageWriteAccess, org.graalvm.nativeimage.hosted.Feature.CompilationAccess, org.graalvm.nativeimage.hosted.Feature.DuringAnalysisAccess, org.graalvm.nativeimage.hosted.Feature.DuringSetupAccess, org.graalvm.nativeimage.hosted.Feature.FeatureAccess, org.graalvm.nativeimage.hosted.Feature.IsInConfigurationAccess, org.graalvm.nativeimage.hosted.Feature.OnAnalysisExitAccess, org.graalvm.nativeimage.hosted.Feature.QueryReachabilityAccess
Constructor and Description |
---|
CEntryPointFeature() |
Modifier and Type | Method and Description |
---|---|
void |
beforeCompilation(org.graalvm.nativeimage.hosted.Feature.BeforeCompilationAccess config) |
List<Class<? extends org.graalvm.nativeimage.hosted.Feature>> |
getRequiredFeatures() |
void |
registerForeignCalls(RuntimeConfiguration runtimeConfig,
org.graalvm.compiler.phases.util.Providers providers,
org.graalvm.compiler.api.replacements.SnippetReflectionProvider snippetReflection,
Map<SnippetRuntime.SubstrateForeignCallDescriptor,SubstrateForeignCallLinkage> foreignCalls,
boolean hosted)
Called to register foreign calls.
|
void |
registerLowerings(RuntimeConfiguration runtimeConfig,
org.graalvm.compiler.options.OptionValues options,
Iterable<org.graalvm.compiler.debug.DebugHandlersFactory> factories,
org.graalvm.compiler.phases.util.Providers providers,
org.graalvm.compiler.api.replacements.SnippetReflectionProvider snippetReflection,
Map<Class<? extends org.graalvm.compiler.graph.Node>,NodeLoweringProvider<?>> lowerings,
boolean hosted)
Called to register lowering providers for static analysis, ahead-of-time compilation, and
runtime compilation.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
registerCodeObserver, registerGraalPhases, registerGraphBuilderPlugins, registerInvocationPlugins
public List<Class<? extends org.graalvm.nativeimage.hosted.Feature>> getRequiredFeatures()
getRequiredFeatures
in interface org.graalvm.nativeimage.hosted.Feature
public void beforeCompilation(org.graalvm.nativeimage.hosted.Feature.BeforeCompilationAccess config)
beforeCompilation
in interface org.graalvm.nativeimage.hosted.Feature
public void registerLowerings(RuntimeConfiguration runtimeConfig, org.graalvm.compiler.options.OptionValues options, Iterable<org.graalvm.compiler.debug.DebugHandlersFactory> factories, org.graalvm.compiler.phases.util.Providers providers, org.graalvm.compiler.api.replacements.SnippetReflectionProvider snippetReflection, Map<Class<? extends org.graalvm.compiler.graph.Node>,NodeLoweringProvider<?>> lowerings, boolean hosted)
GraalFeature
registerLowerings
in interface GraalFeature
runtimeConfig
- The runtime configuration.options
- The initial option values.factories
- The DebugHandlersFactory
sproviders
- Providers that the lowering can use.snippetReflection
- Snippet reflection providers.lowerings
- The lowering provider registry to add to.hosted
- True if registering for ahead-of-time compilation, false if registering forpublic void registerForeignCalls(RuntimeConfiguration runtimeConfig, org.graalvm.compiler.phases.util.Providers providers, org.graalvm.compiler.api.replacements.SnippetReflectionProvider snippetReflection, Map<SnippetRuntime.SubstrateForeignCallDescriptor,SubstrateForeignCallLinkage> foreignCalls, boolean hosted)
GraalFeature
registerForeignCalls
in interface GraalFeature
runtimeConfig
- The runtime configuration.providers
- Providers that the lowering can use.snippetReflection
- Snippet reflection providers.foreignCalls
- The foreign call registry to add to.hosted
- True if registering for ahead-of-time compilation, false otherwise