[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: How do I detect if a basic block is terminated or not?
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.