How do I detect if a basic block is terminated or not?

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


On 14 June 2015 at 11:59, Dibyendu Majumdar <mobile@majumdar.org.uk> wrote:
> In my compiler I have a generic linking function that links current
> block to next block via an unconditional branch but if the current
> block is already terminated then it doesn't put the link.
>
> I cannot see a way to detect if the current block is already terminated.
>

I have worked around this by tracking this myself but ideally there
ought to be an API that will tell one whether a block is terminated or
not.



More information about the Jit mailing list