Lines Matching +full:host +full:- +full:id

1 //===- Action.cpp - Abstract compilation steps ----------------------------===//
5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
7 //===----------------------------------------------------------------------===//
23 case BindArchClass: return "bind-arch"; in getClassName()
29 return "api-extractor"; in getClassName()
35 case IfsMergeJobClass: return "interface-stub-merger"; in getClassName()
39 case VerifyDebugInfoJobClass: return "verify-debug-info"; in getClassName()
40 case VerifyPCHJobClass: return "verify-pch"; in getClassName()
42 return "clang-offload-bundler"; in getClassName()
44 return "clang-offload-unbundler"; in getClassName()
46 return "clang-offload-packager"; in getClassName()
48 return "clang-linker-wrapper"; in getClassName()
50 return "static-lib-linker"; in getClassName()
52 return "binary-analyzer"; in getClassName()
63 // Unbundling actions use the host kinds. in propagateDeviceOffloadInfo()
69 assert(!ActiveOffloadKindMask && "Setting a device kind in a host action??"); in propagateDeviceOffloadInfo()
75 A->propagateDeviceOffloadInfo(OffloadingDeviceKind, OArch, OToolChain); in propagateDeviceOffloadInfo()
84 "Setting a host kind in a device action."); in propagateHostOffloadInfo()
89 A->propagateHostOffloadInfo(ActiveOffloadKindMask, OArch); in propagateHostOffloadInfo()
93 if (unsigned HK = A->getOffloadingHostActiveKinds()) in propagateOffloadInfo()
94 propagateHostOffloadInfo(HK, A->getOffloadingArch()); in propagateOffloadInfo()
96 propagateDeviceOffloadInfo(A->getOffloadingDeviceKind(), in propagateOffloadInfo()
97 A->getOffloadingArch(), in propagateOffloadInfo()
98 A->getOffloadingToolChain()); in propagateOffloadInfo()
106 llvm_unreachable("Host kind is not an offloading device kind."); in getOffloadingKindPrefix()
109 return "device-cuda"; in getOffloadingKindPrefix()
111 return "device-openmp"; in getOffloadingKindPrefix()
113 return "device-hip"; in getOffloadingKindPrefix()
121 std::string Res("host"); in getOffloadingKindPrefix()
126 Res += "-cuda"; in getOffloadingKindPrefix()
128 Res += "-hip"; in getOffloadingKindPrefix()
130 Res += "-openmp"; in getOffloadingKindPrefix()
143 // Don't generate prefix for host actions unless required. in GetOffloadingFileNamePrefix()
147 std::string Res("-"); in GetOffloadingFileNamePrefix()
149 Res += "-"; in GetOffloadingFileNamePrefix()
155 /// assume 'host'.
160 return "host"; in GetOffloadKindName()
176 InputAction::InputAction(const Arg &_Input, types::ID _Type, StringRef _Id) in InputAction()
177 : Action(InputClass, _Type), Input(_Input), Id(_Id.str()) {} in InputAction()
190 HDep.getAction()->propagateHostOffloadInfo(HDep.getOffloadKinds(), in OffloadAction()
194 OffloadAction::OffloadAction(const DeviceDependences &DDeps, types::ID Ty) in OffloadAction()
211 getInputs()[i]->propagateDeviceOffloadInfo(OKinds[i], BArchs[i], OTCs[i]); in OffloadAction()
218 // We use the kinds of the host dependence for this action. in OffloadAction()
221 HDep.getAction()->propagateHostOffloadInfo(HDep.getOffloadKinds(), in OffloadAction()
229 A->propagateDeviceOffloadInfo(DDeps.getOffloadKinds()[i], in OffloadAction()
244 Work(A, HostTC, A->getOffloadingArch()); in doOnHostDependence()
255 // chains, except if we also have a host dependence. In that case we have one in doOnEachDeviceDependence()
260 // Skip host action in doOnEachDeviceDependence()
266 Work(*I, *TI, (*I)->getOffloadingArch()); in doOnEachDeviceDependence()
285 assert(hasHostDependence() && "Host dependence does not exist!"); in getHostDependence()
338 JobAction::JobAction(ActionClass Kind, Action *Input, types::ID Type) in JobAction()
341 JobAction::JobAction(ActionClass Kind, const ActionList &Inputs, types::ID Type) in JobAction()
346 PreprocessJobAction::PreprocessJobAction(Action *Input, types::ID OutputType) in PreprocessJobAction()
351 PrecompileJobAction::PrecompileJobAction(Action *Input, types::ID OutputType) in PrecompileJobAction()
355 types::ID OutputType) in PrecompileJobAction()
362 ExtractAPIJobAction::ExtractAPIJobAction(Action *Inputs, types::ID OutputType) in ExtractAPIJobAction()
367 AnalyzeJobAction::AnalyzeJobAction(Action *Input, types::ID OutputType) in AnalyzeJobAction()
372 MigrateJobAction::MigrateJobAction(Action *Input, types::ID OutputType) in MigrateJobAction()
377 CompileJobAction::CompileJobAction(Action *Input, types::ID OutputType) in CompileJobAction()
382 BackendJobAction::BackendJobAction(Action *Input, types::ID OutputType) in BackendJobAction()
387 AssembleJobAction::AssembleJobAction(Action *Input, types::ID OutputType) in AssembleJobAction()
392 IfsMergeJobAction::IfsMergeJobAction(ActionList &Inputs, types::ID Type) in IfsMergeJobAction()
397 LinkJobAction::LinkJobAction(ActionList &Inputs, types::ID Type) in LinkJobAction()
402 LipoJobAction::LipoJobAction(ActionList &Inputs, types::ID Type) in LipoJobAction()
407 DsymutilJobAction::DsymutilJobAction(ActionList &Inputs, types::ID Type) in DsymutilJobAction()
413 types::ID Type) in VerifyJobAction()
422 types::ID Type) in VerifyDebugInfoJobAction()
427 VerifyPCHJobAction::VerifyPCHJobAction(Action *Input, types::ID Type) in VerifyPCHJobAction()
433 : JobAction(OffloadBundlingJobClass, Inputs, Inputs.back()->getType()) {} in OffloadBundlingJobAction()
438 : JobAction(OffloadUnbundlingJobClass, Input, Input->getType()) {} in OffloadUnbundlingJobAction()
443 types::ID Type) in OffloadPackagerJobAction()
449 types::ID Type) in LinkerWrapperJobAction()
454 StaticLibJobAction::StaticLibJobAction(ActionList &Inputs, types::ID Type) in StaticLibJobAction()
459 BinaryAnalyzeJobAction::BinaryAnalyzeJobAction(Action *Input, types::ID Type) in BinaryAnalyzeJobAction()