================
@@ -97,6 +98,13 @@ class Compilation {
   };
   std::map<TCArgsKey, llvm::opt::DerivedArgList *> TCArgs;
 
+  /// For SYCL, maps a device toolchain and an IGCA target, e.g. igca_30r, to
+  /// the Intel GPUs from --offload-arch that share that target, e.g. xe-mtl-h
+  /// and xe-mtl-u. Each list is sorted and has no duplicates.
+  llvm::DenseMap<std::pair<const ToolChain *, StringRef>,
+                 llvm::SmallVector<StringRef, 2>>
----------------
sarnex wrote:

would it be simpler to change the `SmallVector` to a `SetVector` or `StringSet` 
to prevent duplicates automatically? 

https://github.com/llvm/llvm-project/pull/239010
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to