allow external systems to write a flatIR graph