Framework for operating on BB rather than individual instructions