This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [jit] Major API change: blocks rather than labels
- From: David Malcolm <dmalcolm at redhat dot com>
- To: jit at gcc dot gnu dot org
- Cc: gcc-patches at gcc dot gnu dot org
- Date: Thu, 27 Feb 2014 17:25:12 -0500
- Subject: Re: [jit] Major API change: blocks rather than labels
- Authentication-results: sourceware.org; auth=none
- References: <1393539063-10584-1-git-send-email-dmalcolm at redhat dot com>
On Thu, 2014-02-27 at 17:11 -0500, David Malcolm wrote:
[...]
> With this commit, the API changes to using basic blocks instead: blocks
> are created within functions, and statements are added to blocks, rather
> than to functions.
[...]
I've also ported the "jittest" example to the new API, as of this
commit:
https://github.com/davidmalcolm/jittest/commit/af66efe0386e52a9292b7527174ae402c0af5e43
(though currently it falls foul of type-checking, due to int vs bool
issues in conditionals; upon hacking out the type-checking from
libgccjit it compiles and runs OK).
I haven't yet ported the Python bindings.
Dave