Rename and split API functions in compiler