Inlining methods

Frost, Gary Gary.Frost at amd.com
Fri Oct 25 09:21:20 PDT 2013


WRT  -XX:+PrintInlining  I think you may also need -XX:+UnlockDiagnosticVMOptions if you are using a product JVM 
build. 

Gary



-----Original Message-----
From: graal-dev-bounces at openjdk.java.net [mailto:graal-dev-bounces at openjdk.java.net] On Behalf Of Juan José Fumero Alfonso
Sent: Friday, October 25, 2013 10:37 AM
To: graal-dev at openjdk.java.net
Subject: Inlining methods

Hello,
I am working with the OpenCL Component of Graal (com.edinburgh.parallel.opencl). This version is not public yet but It uses Graal to get the user code and generates OpenCL kernels. I have to create an Inlining optimization for my own code using Graal.  Now I have something like that:

        GraalCodeCacheProvider runtime = Graal.getRequiredCapability(GraalCodeCacheProvider.class);
        ResolvedJavaMethod javaMethod = runtime.lookupJavaMethod(method);

*        OptimisticOptimizations oo = new
OptimisticOptimizations(javaMethod);*

        oo.add(OptimisticOptimizations.Optimization.UseTypeCheckedInlining);

The package is com.oracle.graal.phases;

How can I ensure that the method is inline at the end?  I am using the -XX:+PrintCompilation options but there is not much information. Also I tried with the -XX:+PrintInlining but it seems this options does not exist.
 Is this the proper way to get it?


Thank you
Juan José Fumero




More information about the graal-dev mailing list