Continued to add functions for IR generation.