search for: modulesetpass

Displaying 2 results from an estimated 2 matches for "modulesetpass".

2020 Jul 28
4
[RFC] Heterogeneous LLVM-IR Modules
TL;DR ----- Let's allow to merge to LLVM-IR modules for different targets (with compatible data layouts) into a single LLVM-IR module to facilitate host-device code optimizations. Wait, what? ----------- Given an offloading programming model of your choice (CUDA, HIP, SYCL, OpenMP, OpenACC, ...), the current pipeline will most likely optimize the host and the device code in isolation. This
2020 Jul 30
2
[RFC] Heterogeneous LLVM-IR Modules
...l require you to modify both modules at the same time. Even if you only modify one module, you want information from both, either direction. > It seems that a less invasive change would be: > >  - Use ThinLTO metadata for the first case, extend it as required. >  - Add a new kind of ModuleSetPass that takes a set of Modules and is > allowed to modify both. > > This avoids any modifications for the common (single-target) case, but > should give you the required functionality.  Am I missing something? > This is similar to what Renato suggested early on. In addition to the &q...