[clang] [clang-sycl-linker] Make AOT temp files land relative to cwd with unique names (PR #224506)

Alexey Bader via cfe-commits cfe-commits at lists.llvm.org
Fri Sep 18 11:47:54 PDT 2026


================
@@ -130,11 +130,21 @@
 ; RUN:     --opencl-aot-options="-a -b" \
 ; RUN:   | FileCheck %s --check-prefix=AOT-INTEL-CPU
 ; AOT-INTEL-CPU:      link: inputs: {{.*}}.bc, {{.*}}.bc output: [[LLVMLINKOUT:.*]].bc
-; AOT-INTEL-CPU-NEXT: LLVM backend: input: [[LLVMLINKOUT]].bc, output: [[SPIRVTRANSLATIONOUT:.*]]_0.spv
-; AOT-INTEL-CPU-NEXT: "{{.*}}opencl-aot{{.*}}" {{.*}}--device=cpu -a -b {{.*}}-o [[SPIRVTRANSLATIONOUT]]_0.out [[SPIRVTRANSLATIONOUT]]_0.spv
+; AOT-INTEL-CPU-NEXT: LLVM backend: input: [[LLVMLINKOUT]].bc, output: [[SPIRVTRANSLATIONOUT:.*]]_0{{.*}}.spv
+; AOT-INTEL-CPU-NEXT: "{{.*}}opencl-aot{{.*}}" {{.*}}--device=cpu -a -b {{.*}}-o [[SPIRVTRANSLATIONOUT]]_0{{.*}}.out [[SPIRVTRANSLATIONOUT]]_0{{.*}}.spv
 ; AOT-INTEL-CPU-NEXT: sycl-bundle: image kind: o, triple: spirv64, arch: graniterapids
 ; AOT-INTEL-CPU-NOT:  {{.+}}
 ;
+; Test that AOT temp file names ("<stem>_<index>-<unique>.spv"/".out") are
----------------
bader wrote:

Please, fix the notation for `.out` file. It looks like AOT temp file names can be either `"<stem>_<index>-<unique>.spv"` or `".out"`. 

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


More information about the cfe-commits mailing list