[PATCH 2/2] jit: add switch statements

David Malcolm dmalcolm@redhat.com
Thu Jan 1 00:00:00 GMT 2015


On Tue, 2015-06-30 at 12:43 +0200, Basile Starynkevitch wrote:
> On Thu, Jun 25, 2015 at 03:13:41PM -0400, David Malcolm wrote:
> > Some interpreters/VMs support a switch statement (for example the JVM
> > has opcodes "lookupswitch" and "tableswitch").  GCC has a set of
> > optimizations for efficiently handling switch statements, so it makes
> > sense to directly expose switch statements in the libgccjit API.
> > 
> > This patch implements a switch statement, but it isn't quite ready for
> > committing to trunk yet:
> > 
> 
> 
> Is that patch available (thru git or svn) on some branch?

No, but I hope to commit it to trunk today or tomorrow.

> I did not found any *jit* branch on svn://gcc.gnu.org/svn/gcc/branches

The original jit work was done in git, rather than svn, in the git
branch "dmalcolm/jit":
 https://gcc.gnu.org/git/?p=gcc.git;a=log;h=dmalcolm/jit
but that work was merged into svn trunk in November 2014.

> Do you believe it will get into GCC 6 (probably yes)?

Yes.

> Do you believe it would get into GCC 5.2 (unfortunately, perhaps no)?

I hope to do so.

> Do you think it could easily be backported into GCC 5.x ?

Probably.

Dave



More information about the Jit mailing list