First stabs towards having generic IRFlags object for compact storage and generifying IR
Move responsibility of scope flags affected by instructions to the instructions themselves