Derive SPIR-V ID of the kernel wrapper functions from the kernel name
RSoV used to hardcode "%main" as the textual SPIR-V ID referenced
by the metadata in OpEntryPoint, OpExecutionMode, and defined in the
wrapper's OpFunction.
With this change, RSoV now derives the textual ID by prepending a doubly
underscored prefix to the RS kernel name. The SPIR-V entry point name
string in OpEntryPoint stays unchanged, so that the generated SPIR-V
code is still compatible with the also-hardcoded RSoV driver.
This is a prerequisite for supporting multiple RS kernels in one SPIR-V
module.
Test: RSoV LIT tests, RSoVTest on angeler
Change-Id: I58d1fa81183c553064be9bccee212cf68f9ef194
16 files changed