Search in sources :

Example 1 with MidTier

use of org.graalvm.compiler.core.phases.MidTier in project graal by oracle.

the class HashCodeTest method buildGraphAfterMidTier.

@SuppressWarnings("try")
private StructuredGraph buildGraphAfterMidTier(String name) {
    StructuredGraph g = parseForCompile(getResolvedJavaMethod(name));
    OptionValues options = getInitialOptions();
    new HighTier(options).apply(g, getDefaultHighTierContext());
    new MidTier(options).apply(g, new MidTierContext(getProviders(), getTargetProvider(), OptimisticOptimizations.ALL, g.getProfilingInfo()));
    return g;
}
Also used : MidTierContext(org.graalvm.compiler.phases.tiers.MidTierContext) HighTier(org.graalvm.compiler.core.phases.HighTier) StructuredGraph(org.graalvm.compiler.nodes.StructuredGraph) OptionValues(org.graalvm.compiler.options.OptionValues) MidTier(org.graalvm.compiler.core.phases.MidTier)

Aggregations

HighTier (org.graalvm.compiler.core.phases.HighTier)1 MidTier (org.graalvm.compiler.core.phases.MidTier)1 StructuredGraph (org.graalvm.compiler.nodes.StructuredGraph)1 OptionValues (org.graalvm.compiler.options.OptionValues)1 MidTierContext (org.graalvm.compiler.phases.tiers.MidTierContext)1