[SYCL][clang-cc1] Add new cc1 option: -dependency-filter PREFIX to filter files…

Authored by mibintc on May 30 2019, 10:26 AM.


[SYCL][clang-cc1] Add new cc1 option: -dependency-filter PREFIX to filter files with prefix match from dependency output. In sycl compilation, clang invokes cc1 two times, once for the host compilation and once for the offload compilation. The offload compilation generates a .h file, the host compilation includes this generated .h file. Finally, the clang driver deletes the generated temporary .h file before terminating. This new cc1 option allows the clang driver to specify that the temporary .h files shouldn't be added into the dependency information.

Signed-off-by: Melanie Blower <melanie.blower@intel.com>