[Layering] Move InstVisitor.h into the IR library as it is pretty
obviously coupled to the IR.