@@ -4688,43 +4688,6 @@ class OffloadingActionBuilder final {
4688
4688
return false ;
4689
4689
}
4690
4690
4691
- // / Generate an action that adds a host dependence to an unbundling action.
4692
- // / The results will be kept in this action builder. Return true if an error
4693
- // / was found.
4694
- bool addHostDependenceToUnbundlingAction (Action *&HostAction,
4695
- ActionList &InputActionList,
4696
- const Arg *InputArg) {
4697
- if (!IsValid || InputActionList.empty ())
4698
- return true ;
4699
-
4700
- auto *DeviceUnbundlingAction = C.MakeAction <OffloadUnbundlingJobAction>(
4701
- InputActionList, types::TY_Object);
4702
- DeviceUnbundlingAction->registerDependentActionInfo (
4703
- C.getSingleOffloadToolChain <Action::OFK_Host>(),
4704
- /* BoundArch=*/ StringRef (), Action::OFK_Host);
4705
- HostAction = DeviceUnbundlingAction;
4706
-
4707
- // Register the offload kinds that are used.
4708
- auto &OffloadKind = InputArgToOffloadKindMap[InputArg];
4709
- for (auto *SB : SpecializedBuilders) {
4710
- if (!SB->isValid ())
4711
- continue ;
4712
-
4713
- auto RetCode = SB->addDeviceDepences (HostAction);
4714
-
4715
- // Host dependences for device actions are not compatible with that same
4716
- // action being ignored.
4717
- assert (RetCode != DeviceActionBuilder::ABRT_Ignore_Host &&
4718
- " Host dependence not expected to be ignored.!" );
4719
-
4720
- // Unless the builder was inactive for this action, we have to record the
4721
- // offload kind because the host will have to use it.
4722
- if (RetCode != DeviceActionBuilder::ABRT_Inactive)
4723
- OffloadKind |= SB->getAssociatedOffloadKind ();
4724
- }
4725
- return false ;
4726
- }
4727
-
4728
4691
// / Add the offloading top level actions that are specific for unique
4729
4692
// / linking situations where objects are used at only the device link
4730
4693
// / with no intermedate steps.
0 commit comments