https://github.com/maksimsab updated
https://github.com/llvm/llvm-project/pull/147508
>From 524da07f8449154a40796c5734d674df64e3f9af Mon Sep 17 00:00:00 2001
From: "Sabianin, Maksim"
Date: Mon, 7 Jul 2025 08:30:12 -0700
Subject: [PATCH 1/7] [SYCL] Add offload wrapping for SYCL kind.
---
clang
https://github.com/maksimsab edited
https://github.com/llvm/llvm-project/pull/147508
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
https://github.com/maksimsab edited
https://github.com/llvm/llvm-project/pull/147508
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
https://github.com/maksimsab updated
https://github.com/llvm/llvm-project/pull/147508
>From 524da07f8449154a40796c5734d674df64e3f9af Mon Sep 17 00:00:00 2001
From: "Sabianin, Maksim"
Date: Mon, 7 Jul 2025 08:30:12 -0700
Subject: [PATCH 1/6] [SYCL] Add offload wrapping for SYCL kind.
---
clang
https://github.com/maksimsab updated
https://github.com/llvm/llvm-project/pull/147508
>From 524da07f8449154a40796c5734d674df64e3f9af Mon Sep 17 00:00:00 2001
From: "Sabianin, Maksim"
Date: Mon, 7 Jul 2025 08:30:12 -0700
Subject: [PATCH 1/5] [SYCL] Add offload wrapping for SYCL kind.
---
clang
@@ -620,6 +635,422 @@ void createRegisterFatbinFunction(Module &M,
GlobalVariable *FatbinDesc,
// Add this function to constructors.
appendToGlobalCtors(M, CtorFunc, /*Priority=*/101);
}
+
+/// SYCLWrapper helper class that creates all LLVM IRs wrapping given images.
+stru
@@ -717,6 +717,13 @@ wrapDeviceImages(ArrayRef>
Buffers,
M, BuffersToWrap.front(), offloading::getOffloadEntryArray(M)))
return std::move(Err);
break;
+ case OFK_SYCL: {
+offloading::SYCLWrappingOptions WrappingOptions;
maksimsab wro
https://github.com/maksimsab edited
https://github.com/llvm/llvm-project/pull/147508
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
@@ -620,6 +635,422 @@ void createRegisterFatbinFunction(Module &M,
GlobalVariable *FatbinDesc,
// Add this function to constructors.
appendToGlobalCtors(M, CtorFunc, /*Priority=*/101);
}
+
+/// SYCLWrapper helper class that creates all LLVM IRs wrapping given images.
+stru
https://github.com/maksimsab updated
https://github.com/llvm/llvm-project/pull/147508
>From 524da07f8449154a40796c5734d674df64e3f9af Mon Sep 17 00:00:00 2001
From: "Sabianin, Maksim"
Date: Mon, 7 Jul 2025 08:30:12 -0700
Subject: [PATCH 1/4] [SYCL] Add offload wrapping for SYCL kind.
---
clang
@@ -620,6 +635,422 @@ void createRegisterFatbinFunction(Module &M,
GlobalVariable *FatbinDesc,
// Add this function to constructors.
appendToGlobalCtors(M, CtorFunc, /*Priority=*/101);
}
+
+/// SYCLWrapper helper class that creates all LLVM IRs wrapping given images.
+stru
https://github.com/maksimsab edited
https://github.com/llvm/llvm-project/pull/147508
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
@@ -620,6 +635,422 @@ void createRegisterFatbinFunction(Module &M,
GlobalVariable *FatbinDesc,
// Add this function to constructors.
appendToGlobalCtors(M, CtorFunc, /*Priority=*/101);
}
+
+/// SYCLWrapper helper class that creates all LLVM IRs wrapping given images.
+stru
@@ -620,6 +635,422 @@ void createRegisterFatbinFunction(Module &M,
GlobalVariable *FatbinDesc,
// Add this function to constructors.
appendToGlobalCtors(M, CtorFunc, /*Priority=*/101);
}
+
+/// SYCLWrapper helper class that creates all LLVM IRs wrapping given images.
+stru
@@ -620,6 +635,422 @@ void createRegisterFatbinFunction(Module &M,
GlobalVariable *FatbinDesc,
// Add this function to constructors.
appendToGlobalCtors(M, CtorFunc, /*Priority=*/101);
}
+
+/// SYCLWrapper helper class that creates all LLVM IRs wrapping given images.
+stru
@@ -5,4 +5,4 @@ add_subdirectory(HLSL)
add_subdirectory(OpenACC)
add_subdirectory(OpenMP)
add_subdirectory(Offloading)
-add_subdirectory(SYCL)
+#add_subdirectory(SYCL)
maksimsab wrote:
Sorry, I didn't notice that. Now that looks clean.
https://github.com/llvm
https://github.com/maksimsab updated
https://github.com/llvm/llvm-project/pull/147508
>From 524da07f8449154a40796c5734d674df64e3f9af Mon Sep 17 00:00:00 2001
From: "Sabianin, Maksim"
Date: Mon, 7 Jul 2025 08:30:12 -0700
Subject: [PATCH 1/3] [SYCL] Add offload wrapping for SYCL kind.
---
clang
@@ -620,6 +635,422 @@ void createRegisterFatbinFunction(Module &M,
GlobalVariable *FatbinDesc,
// Add this function to constructors.
appendToGlobalCtors(M, CtorFunc, /*Priority=*/101);
}
+
+/// SYCLWrapper helper class that creates all LLVM IRs wrapping given images.
+stru
https://github.com/maksimsab updated
https://github.com/llvm/llvm-project/pull/147508
>From 524da07f8449154a40796c5734d674df64e3f9af Mon Sep 17 00:00:00 2001
From: "Sabianin, Maksim"
Date: Mon, 7 Jul 2025 08:30:12 -0700
Subject: [PATCH 1/2] [SYCL] Add offload wrapping for SYCL kind.
---
clang
@@ -263,3 +264,37 @@
// HIP: while.end:
// HIP-NEXT: ret void
// HIP-NEXT: }
+
+// RUN: clang-offload-packager -o %t.out
--image=file=%t.elf.o,kind=sycl,triple=spirv64-unknown-unknown,arch=generic
+// RUN: %clang -cc1 %s -triple x86_64-unknown-linux-gnu -emit-obj -o %t.
maksimsab wrote:
I've merged SYCL wrapper with all others.
https://github.com/llvm/llvm-project/pull/147508
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
https://github.com/maksimsab updated
https://github.com/llvm/llvm-project/pull/147508
>From 524da07f8449154a40796c5734d674df64e3f9af Mon Sep 17 00:00:00 2001
From: "Sabianin, Maksim"
Date: Mon, 7 Jul 2025 08:30:12 -0700
Subject: [PATCH 1/2] [SYCL] Add offload wrapping for SYCL kind.
---
clang
maksimsab wrote:
@jhuber6
I had a choice to put it the common `OffloadWrapper.{h,cpp}` area. But SYCL's
offload wrapping looks very different from others and I decided not to mix them
together. Hence, I was choosing between
`llvm/Frontend/Offloading/SYCLOffloadWrapper.h` and
`llvm/Frontend/SY
@@ -263,3 +264,37 @@
// HIP: while.end:
// HIP-NEXT: ret void
// HIP-NEXT: }
+
+// RUN: clang-offload-packager -o %t.out
--image=file=%t.elf.o,kind=sycl,triple=spirv64-unknown-unknown,arch=generic
+// RUN: %clang -cc1 %s -triple x86_64-unknown-linux-gnu -emit-obj -o %t.
maksimsab wrote:
Hi @jdoerfert @jhuber6 !
We are adding offload wrapping for SYCL in this PR. Do you have any suggestions
for whom I should request for a code review?
https://github.com/llvm/llvm-project/pull/147508
___
cfe-commits mailing list
cfe-c
https://github.com/maksimsab created
https://github.com/llvm/llvm-project/pull/147508
None
>From 524da07f8449154a40796c5734d674df64e3f9af Mon Sep 17 00:00:00 2001
From: "Sabianin, Maksim"
Date: Mon, 7 Jul 2025 08:30:12 -0700
Subject: [PATCH] [SYCL] Add offload wrapping for SYCL kind.
---
cla
26 matches
Mail list logo