This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [jit] Major API change: blocks rather than labels


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]