public final class TruffleFeature extends Object implements GraalFeature
| Modifier and Type | Class and Description |
|---|---|
static class |
TruffleFeature.IsEnabled |
static class |
TruffleFeature.Options |
static class |
TruffleFeature.Support |
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| Modifier and Type | Field and Description |
|---|---|
protected TruffleFeature.Support |
support |
| Constructor and Description |
|---|
TruffleFeature() |
| Modifier and Type | Method and Description |
|---|---|
void |
afterRegistration(org.graalvm.nativeimage.hosted.Feature.AfterRegistrationAccess a) |
void |
beforeAnalysis(org.graalvm.nativeimage.hosted.Feature.BeforeAnalysisAccess access) |
void |
beforeCompilation(org.graalvm.nativeimage.hosted.Feature.BeforeCompilationAccess config) |
void |
cleanup() |
void |
duringAnalysis(org.graalvm.nativeimage.hosted.Feature.DuringAnalysisAccess access) |
List<Class<? extends org.graalvm.nativeimage.hosted.Feature>> |
getRequiredFeatures() |
static TruffleFeature |
getSingleton() |
static TruffleFeature.Support |
getSupport() |
void |
registerInvocationPlugins(org.graalvm.compiler.phases.util.Providers providers,
org.graalvm.compiler.api.replacements.SnippetReflectionProvider snippetReflection,
org.graalvm.compiler.nodes.graphbuilderconf.InvocationPlugins invocationPlugins,
boolean analysis,
boolean hosted)
Called to register Graal invocation plugins.
|
static void |
removeTruffleLanguage(String mimeType) |
static void |
setSupport(TruffleFeature.Support support) |
static boolean |
useTruffleCompiler() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitregisterCodeObserver, registerForeignCalls, registerGraalPhases, registerGraphBuilderPlugins, registerLoweringsprotected TruffleFeature.Support support
public static TruffleFeature getSingleton()
public static void setSupport(TruffleFeature.Support support)
public static TruffleFeature.Support getSupport()
public List<Class<? extends org.graalvm.nativeimage.hosted.Feature>> getRequiredFeatures()
getRequiredFeatures in interface org.graalvm.nativeimage.hosted.Featurepublic static void removeTruffleLanguage(String mimeType)
public void afterRegistration(org.graalvm.nativeimage.hosted.Feature.AfterRegistrationAccess a)
afterRegistration in interface org.graalvm.nativeimage.hosted.Featurepublic void cleanup()
cleanup in interface org.graalvm.nativeimage.hosted.Featurepublic static boolean useTruffleCompiler()
public void registerInvocationPlugins(org.graalvm.compiler.phases.util.Providers providers,
org.graalvm.compiler.api.replacements.SnippetReflectionProvider snippetReflection,
org.graalvm.compiler.nodes.graphbuilderconf.InvocationPlugins invocationPlugins,
boolean analysis,
boolean hosted)
GraalFeatureregisterInvocationPlugins in interface GraalFeatureproviders - Providers that the lowering can use.snippetReflection - Snippet reflection providers.invocationPlugins - The invocation plugins to add to.analysis - true if registering for analysis, false if registering for compilationhosted - True if registering for ahead-of-time compilation, false otherwisepublic void beforeAnalysis(org.graalvm.nativeimage.hosted.Feature.BeforeAnalysisAccess access)
beforeAnalysis in interface org.graalvm.nativeimage.hosted.Featurepublic void duringAnalysis(org.graalvm.nativeimage.hosted.Feature.DuringAnalysisAccess access)
duringAnalysis in interface org.graalvm.nativeimage.hosted.Featurepublic void beforeCompilation(org.graalvm.nativeimage.hosted.Feature.BeforeCompilationAccess config)
beforeCompilation in interface org.graalvm.nativeimage.hosted.Feature