Open colin-mcd opened 1 year ago
I like this idea~ I guess each stage of our compiler depends on the previous stages and there is no "optional" stage. (I could imagine replacing a stage by a check that, for instance, the input program is already linear or monomorphic.)
Usage right now is
But I think it would be a lot more intuitive if we had flags like
-m
stop after monomorphization rather than before. That way, if you want to see just the monomorphized code you would do-m
, instead of having to remember which stage follows monomorphization. I suggest the following: