Divided IR library into HAL and APP