llvm
llvm copied to clipboard
Refactor SYCLBIN testing to unify target modes
Suggested by @aelovikov-intel in https://github.com/intel/llvm/pull/20707#pullrequestreview-3493514286_:
Have a local format.py in SYCLBIN such that
// REQUIRES-EXEC: ...
// REQUIRES-OBJ: ...
// REQUIRES-INPUT: ...
// RUN-EXEC: <exec-specific>
// RUN-OBJ: <object-specific>
// RUN-INPUT: <input-specific>
// RUN: %{build} ...
// RUN: %{run} ...
would generate three tests "on-the-fly".
This should allow the SYCLBIN tests to include execution, object and input testing in the same file, rather than having to split each case into separate files, despite testing the same functionality for the different target modes.