================
@@ -1018,6 +1103,15 @@ DerivedArgList getLinkerArgs(ArrayRef<OffloadFile> Input,
DAL.AddJoinedArg(nullptr, Tbl.getOption(OPT_triple_EQ),
Args.MakeArgString(Input.front().getBinary()->getTriple()));
+ // Get the real devices that a SYCL image lists in "code". clang-sycl-linker
+ // compiles the image ahead of time for them.
+ const OffloadBinary &Binary = *Input.front().getBinary();
----------------
YuriPlyakhin wrote:
it seems, this line can be moved upper and then reused in this code:
```
StringRef Arch = Args.MakeArgString(Input.front().getBinary()->getArch());
```
```
Args.MakeArgString(Input.front().getBinary()->getTriple()));
```
https://github.com/llvm/llvm-project/pull/239010
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits