tool or option for viewing LIR nodes
Christian Wimmer
christian.wimmer at oracle.com
Fri May 3 10:21:43 PDT 2013
On 05/03/2013 09:23 AM, Venkatachalam, Vasanth wrote:
> Is there a tool or option that would allow us to view the LIR nodes that Graal generates for a program?
Yes.
Graal can output the graph, LIR, register allocator liveness
information, and machine code in the format required by the Client
Compiler Visualizer. As the name implies, the tool was originally
written to visualize the data structures of the Java HotSpot client
compiler.
You can get it here: https://java.net/projects/c1visualizer/
The output is controlled the same ways as the output to the Ideal Graph
Visualizer, i.e., the -G:Dump= flag. In addition, I think you have to
also pass -G:+PrintCFG
The tool is file-based, i.e., you get .cfg files in your working
directory that you can load with the c1visualizer.
-Christian
More information about the graal-dev
mailing list