[SYCL][NFC] Extract specialization constant's processing from sycl-post-link to SYCLPostLink library.
This change allows later reuse of specialization constant's processing in the New Offloading Model and sycl-jit.
The interface of a functionhandleSpecializationConstants is controversial. It allows to invoke the function in the following manner if you don't need to generate new modules with spec constants replaced by default values:
SmallVector<ModuleDesc> MDs;
Modified |= handleSpecializationConstants(MDs, Mode);
If you have a better alternative for the function's interface let me know.
Hi @intel/dpcpp-tools-reviewers
Could, please, someone take a look at this PR?
@maarquitos14 Yes, we have plenty of sycl-post-link's testing. Later this testing should be migrated for New Offloading Model's tools.
@intel/llvm-gatekeepers please consider merging
@intel/llvm-gatekeepers Can we merge that please?