The offloading packager doesn't have a normal offloading kind. This
would result in its output being sent to the executable name when in
save-temps mode. This would then get overwritten by the actual output.
This patch adds specific checks to make sure that it gets the correct
name.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
Comment Actions
LGTM overall with a couple of nits.
clang/lib/Driver/Driver.cpp | ||
---|---|---|
5420 | !! assumes specific values for the mask returned by getOffloadingHostActiveKinds(). (A->getOffloadingHostActiveKinds() != OFK_None && !AtTopLevel) would be a bit easier to understand, IMO. | |
5658–5659 | bool UseOutExt = IsHIPNoRDC || isa<OffloadPackagerJobAction>(JA); if (UseOutExt) ... |
Comment Actions
Thanks for the review.
clang/lib/Driver/Driver.cpp | ||
---|---|---|
5420 | That was confusing me as well, might as well change it while I'm here. |
!! assumes specific values for the mask returned by getOffloadingHostActiveKinds().
(A->getOffloadingHostActiveKinds() != OFK_None && !AtTopLevel) would be a bit easier to understand, IMO.
Maybe even !(A->getOffloadingHostActiveKinds() == OFK_None || AtTopLevel).