Hi, guys.
Is there any easy way to know the leaf BB node in the CFG which is not terminated by such a 'br' instruction?
E.g., for the following LLVM assembly:
Hi, guys.
Is there any easy way to know the leaf BB node in the CFG which is not terminated by such a 'br' instruction?
E.g., for the following LLVM assembly:
Check successor iterator.
if (succ_begin(BB) == succ_end(BB))
BB has no successor in CFG.
See include/llvm/Support/CFG.h for more info.