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