Add __slots__ to IR values to reduce construction and memory load