Add a method to swap the type of a function in-place
This is motivated by the need to translate function across dialect which requires morphing their type, as well as the Toy tutorial part on interprocedural shape inference. The alternative is cloning the function, but it is heavy and it seems like an arbitrary restriction to forbid morphing the function type. PiperOrigin-RevId: 240615755
Loading
Please sign in to comment