webrev for switch statement support in HSAIL backend

Venkatachalam, Vasanth Vasanth.Venkatachalam at amd.com
Tue Nov 19 15:25:14 PST 2013


Hi,

I've submitted a webrev for handling switch constructs generated by Java bytecode.

Please review at http://cr.openjdk.java.net/~tdeneau/webrev-switchsupport.00/webrev/

Notes:

This webrev adds support for the IntegerSwitchNode. (Support for TypeSwitchNode may be added later.)

The approach currently recommended for generating performant HSAIL code for Java switch statements is to generate a series of cascading compare and branch instructions (instead of doing a table switch).This is the approach that I have implemented here.

I've added an additional enhancement to HSAILAssembler which is unrelated to the switch support.
The routine mov(Register reg, Object obj) previously had a restriction that the Object parameter had to be an instance of Class. This restriction has been lifted.

I ran this through the Eclipse 4.3 formatter and there weren't any file changes.

Vasanth




More information about the graal-dev mailing list