Issue 233633
Summary [CIR][SYCL] Track: SPIR/SPIR-V call-convention lowering in ClangIR via the LLVM ABI library
Labels new issue
Assignees
Reporter koparasy
    **Summary:**
- SYCL device kernels compiled through ClangIR are not ABI-lowered today: the
  kernel object and other aggregate kernel arguments are emitted as direct
  struct parameters instead of byval pointers, unlike classic CodeGen (see the
  "Kernel arguments are not checked" note in
 `clang/test/CIR/CodeGenSYCL/kernel-caller-entry-point.cpp`).
- Fix this by adding a SPIR/SPIR-V target to the language-agnostic LLVM ABI
  library and wiring it into CIR's `CallConvLoweringPass`, following the
  AMDGPU work in #220471. This issue tracks the work.

**LLVM ABI library and Clang:**
- [ ] #233605
- [ ] #<member-ptr> - [LLVMABI] Do not treat data member pointers as aggregates (Pending)
- [ ] #224699 

**ClangIR:**
- [ ] Wire `spir`/`spir64`/`spirv*` into `CallConvLoweringPass`, building on
      the target-generic pass from #220197
- [ ] Check SYCL kernel arguments in `CIR/CodeGenSYCL/kernel-caller-entry-point.cpp`
      against classic CodeGen, for Linux and if CIR has support for Windows till then check that as well.

Related: #220471 (AMDGPU)
_______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to