[Modules] Move CFG.h to the IR library as it defines graph traits over
IR types.