Utility for defining compiler transforms