[llvm] [offload][SYCL] Add SYCL Module splitting. (PR #131347)

Johannes Doerfert via llvm-commits llvm-commits at lists.llvm.org
Sun Mar 23 15:03:37 PDT 2025


jdoerfert wrote:

> Even in our case in splitting by source unit it would be difficult to map module ids to integers. I could use a hash but it would lead to collisions.

Your API proposal maps the stuff to std::string, right? 
Then simply map the string internally to integers.
If you have seen the string, use the old integer, otherwise the number of strings you've seen so far.



https://github.com/llvm/llvm-project/pull/131347


More information about the llvm-commits mailing list