Search in sources :

Example 1 with SubstrateInstalledCodeImpl

use of com.oracle.svm.graal.meta.SubstrateInstalledCodeImpl in project graal by oracle.

the class SubstrateGraalUtils method compileAndInstall.

public static InstalledCode compileAndInstall(OptionValues options, RuntimeConfiguration runtimeConfig, Suites suites, LIRSuites lirSuites, SubstrateMethod method, boolean testTrampolineJumps) {
    updateGraalArchitectureWithHostCPUFeatures(runtimeConfig.lookupBackend(method));
    DebugContext debug = DebugContext.create(options, new GraalDebugHandlersFactory(GraalSupport.getRuntimeConfig().getSnippetReflection()));
    // create the installed code descriptor
    SubstrateInstalledCodeImpl installedCode = new SubstrateInstalledCodeImpl(method);
    // do compilation and code installation and update the installed code descriptor
    SubstrateGraalUtils.doCompileAndInstall(debug, runtimeConfig, suites, lirSuites, method, installedCode, testTrampolineJumps);
    // return the installed code
    return installedCode;
}
Also used : SubstrateInstalledCodeImpl(com.oracle.svm.graal.meta.SubstrateInstalledCodeImpl) DebugContext(org.graalvm.compiler.debug.DebugContext) GraalDebugHandlersFactory(org.graalvm.compiler.printer.GraalDebugHandlersFactory)

Aggregations

SubstrateInstalledCodeImpl (com.oracle.svm.graal.meta.SubstrateInstalledCodeImpl)1 DebugContext (org.graalvm.compiler.debug.DebugContext)1 GraalDebugHandlersFactory (org.graalvm.compiler.printer.GraalDebugHandlersFactory)1