public class CGlobalDataFeature 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 |
---|
CGlobalDataFeature() |
Modifier and Type | Method and Description |
---|---|
void |
afterHeapLayout(org.graalvm.nativeimage.hosted.Feature.AfterHeapLayoutAccess access) |
void |
duringSetup(org.graalvm.nativeimage.hosted.Feature.DuringSetupAccess access) |
CGlobalDataInfo |
getCGlobalDataInfo(CGlobalDataImpl<?> data) |
int |
getSize() |
CGlobalDataInfo |
registerAsAccessed(CGlobalData<?> obj) |
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 CGlobalDataFeature |
singleton() |
void |
writeData(RelocatableBuffer buffer,
BiFunction<Integer,String,?> createSymbol) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
registerCodeObserver, registerForeignCalls, registerGraalPhases, registerGraphBuilderPlugins, registerLowerings
public static CGlobalDataFeature singleton()
public void duringSetup(org.graalvm.nativeimage.hosted.Feature.DuringSetupAccess access)
duringSetup
in interface org.graalvm.nativeimage.hosted.Feature
public void afterHeapLayout(org.graalvm.nativeimage.hosted.Feature.AfterHeapLayoutAccess access)
afterHeapLayout
in interface org.graalvm.nativeimage.hosted.Feature
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)
GraalFeature
registerInvocationPlugins
in interface GraalFeature
providers
- 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 CGlobalDataInfo getCGlobalDataInfo(CGlobalDataImpl<?> data)
public CGlobalDataInfo registerAsAccessed(CGlobalData<?> obj)
public int getSize()
public void writeData(RelocatableBuffer buffer, BiFunction<Integer,String,?> createSymbol)