Use LoopPass to operate on loops
One major goal will likely be to instrument loops.
We can either derive from the LoopPass
class, or we can use the LoopInfo
structure to iterate through the detected loops. Either way, we can use that to determine which is the first/last basic block in a loop, and instrument that one.