Created by: pjaaskel
Previously the binary image index contained only kernels while program scope functions are needed for indirect call implementations: The HSA Runtime API can be used to query their addresses.
This patch mainly renames the corresponding structs and APIs that have 'kernel' in their name to 'function' and adds a separate flag to the function_index (ex. kernel_index) for separating host-callable kernels from program scope functions (of which addresses can be queried by the HSA runtime).