How to detect clang's block_invoke function

Hi guys,

Is there any best known way to detect LLVM functions generated by clang’s blocks?

I am now using search for “_block_invoke” substring in the name of the LLVM function. But it does not look reliable and safe method.

Thanks,

-Oleg Maslov