Basic blocks, jump targets and locals

Dibyendu Majumdar mobile@majumdar.org.uk
Thu Jan 1 00:00:00 GMT 2015


On 11 June 2015 at 21:31, David Malcolm <dmalcolm@redhat.com> wrote:
> Local variables in libgccjit are local to a *function*; there's no
> association between them and blocks.  Blocks in libgccjit relate to
> control flow, not to scope.
>
> Note that any initialization of a local variable has to be done
> explicitly, by adding an assignment statement.  Typically that
> assignment statement would be added to the initial block, as in the
> example above (so I suppose that's an association of sorts between
> locals and the entry block).
>

Can an assignment statement be added to a block that is already terminated?

Regards
Dibyendu



More information about the Jit mailing list