[clang] [llvm] [Offload][SYCL] Refactor OffloadKind implementation (PR #135809)

Arvind Sudarsanam via llvm-commits llvm-commits at lists.llvm.org
Tue Apr 15 10:28:19 PDT 2025


================
@@ -923,10 +923,9 @@ Expected<SmallVector<StringRef>> linkAndWrapDeviceFiles(
         });
     auto LinkerArgs = getLinkerArgs(Input, BaseArgs);
 
-    DenseSet<OffloadKind> ActiveOffloadKinds;
+    uint16_t ActiveOffloadKindMask = 0u;
----------------
asudarsa wrote:

I think it is a good optimization to have (16-bit mask instead of a Set). Also, it will be easier to pass the mask to callee function when introducing support for SYCL in my original PR.

Thanks

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


More information about the llvm-commits mailing list