[llvm-dev] Get Num of Uses in only dominated blocks?
Tianyu Cheng via llvm-dev
llvm-dev at lists.llvm.org
Thu Jan 19 21:29:38 PST 2017
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
class, but only get this
unsigned <http://llvm.org/test-doxygen/api/classunsigned.html> getNumUses
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
the number of uses?
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the llvm-dev