I am doing a project that requires counting the number of uses of a value
only in all dominated blocks in a function. I checked the manual for llvm::User
class, but only get this
This gives me all the uses of a value.
Is there any simple way, like an API to do this?
Or I have to manually write a method to traverse dominated basic blocks and count
the number of uses?