AddressSpaceInfoManager.getProgramAllocations(): moved from ClampPointers

Also removed the version that can accept only IRBuilder<>, as it
appears that the function cannot be determined from an IRBuidler<> for
an empty function. This results in the Function* argument flowing to
many calls requiring the functionality from AddressSpaceInfoManager.