Add support for enum constructors in ast to ir converter