public class SubstrateGraalUtils extends Object
Modifier and Type | Class and Description |
---|---|
static class |
SubstrateGraalUtils.Options |
Constructor and Description |
---|
SubstrateGraalUtils() |
Modifier and Type | Method and Description |
---|---|
static org.graalvm.compiler.code.CompilationResult |
compile(org.graalvm.compiler.debug.DebugContext debug,
SubstrateMethod method)
Does the compilation of the method and returns the compilation result.
|
static org.graalvm.compiler.code.CompilationResult |
compileGraph(SharedMethod method,
org.graalvm.compiler.nodes.StructuredGraph graph) |
static org.graalvm.compiler.code.CompilationResult |
doCompile(org.graalvm.compiler.debug.DebugContext initialDebug,
RuntimeConfiguration runtimeConfig,
org.graalvm.compiler.phases.tiers.Suites suites,
org.graalvm.compiler.lir.phases.LIRSuites lirSuites,
SubstrateMethod method) |
static void |
updateGraalArchitectureWithHostCPUFeatures(org.graalvm.compiler.core.target.Backend graalBackend)
Updates the architecture in Graal at run-time in order to enable best code generation on the
given machine.
|
public static org.graalvm.compiler.code.CompilationResult compile(org.graalvm.compiler.debug.DebugContext debug, SubstrateMethod method)
public static org.graalvm.compiler.code.CompilationResult doCompile(org.graalvm.compiler.debug.DebugContext initialDebug, RuntimeConfiguration runtimeConfig, org.graalvm.compiler.phases.tiers.Suites suites, org.graalvm.compiler.lir.phases.LIRSuites lirSuites, SubstrateMethod method)
public static void updateGraalArchitectureWithHostCPUFeatures(org.graalvm.compiler.core.target.Backend graalBackend)
graalBackend
- The graal backend that should be updated.public static org.graalvm.compiler.code.CompilationResult compileGraph(SharedMethod method, org.graalvm.compiler.nodes.StructuredGraph graph)