llvm
53355647 - [SYCL][Driver] Fix AddImpliedTargetArgs to apply only to SPIR-V targets (#21419)

Commit
15 days ago
[SYCL][Driver] Fix AddImpliedTargetArgs to apply only to SPIR-V targets (#21419) `AddImpliedTargetArgs` processes and maps backend compiler options passed to Clang into the corresponding options accepted by the backend compiler (such as ocloc). In this patch, we restrict `AddImpliedTargetArgs` to run on the compiler backend option only when the target triple is SPIR-V. Previously, it was executed for all SYCL targets, which was incorrect because `AddImpliedTargetArgs` is specifically intended for SPIR-V. We have also renamed the function to `AddSPIRVImpliedTargetArgs` to indicate that it is SPIR-V specific. --------- Co-authored-by: yixing.zhang <yixingzh@smtp.igk.intel.com>
Parents
Loading