Lines Matching full:action
1 //===- Action.cpp - Abstract compilation steps ----------------------------===//
9 #include "clang/Driver/Action.h"
18 Action::~Action() = default;
20 const char *Action::getClassName(ActionClass AC) { in getClassName()
58 void Action::propagateDeviceOffloadInfo(OffloadKind OKind, const char *OArch, in propagateDeviceOffloadInfo()
60 // Offload action set its own kinds on their dependences. in propagateDeviceOffloadInfo()
69 assert(!ActiveOffloadKindMask && "Setting a device kind in a host action??"); in propagateDeviceOffloadInfo()
78 void Action::propagateHostOffloadInfo(unsigned OKinds, const char *OArch) { in propagateHostOffloadInfo()
79 // Offload action set its own kinds on their dependences. in propagateHostOffloadInfo()
84 "Setting a host kind in a device action."); in propagateHostOffloadInfo()
92 void Action::propagateOffloadInfo(const Action *A) { in propagateOffloadInfo()
101 std::string Action::getOffloadingKindPrefix() const { in getOffloadingKindPrefix()
140 Action::GetOffloadingFileNamePrefix(OffloadKind Kind, in GetOffloadingFileNamePrefix()
156 StringRef Action::GetOffloadKindName(OffloadKind Kind) { in GetOffloadKindName()
177 : Action(InputClass, _Type), Input(_Input), Id(_Id.str()) {} in InputAction()
181 BindArchAction::BindArchAction(Action *Input, StringRef ArchName) in BindArchAction()
182 : Action(BindArchClass, Input), ArchName(ArchName) {} in BindArchAction()
187 : Action(OffloadClass, HDep.getAction()), HostTC(HDep.getToolChain()) { in OffloadAction()
195 : Action(OffloadClass, DDeps.getActions(), Ty), in OffloadAction()
201 // If all inputs agree on the same kind, use it also for this action. in OffloadAction()
216 : Action(OffloadClass, HDep.getAction()), HostTC(HDep.getToolChain()), in OffloadAction()
218 // We use the kinds of the host dependence for this action. in OffloadAction()
232 // If this action is used to forward single dependency, set the toolchain. in OffloadAction()
242 assert(!getInputs().empty() && "No dependencies for offload action??"); in doOnHostDependence()
258 "Sizes of action dependences and toolchains are not consistent!"); in doOnEachDeviceDependence()
260 // Skip host action in doOnEachDeviceDependence()
284 Action *OffloadAction::getHostDependence() const { in getHostDependence()
286 assert(!getInputs().empty() && "No dependencies for offload action??"); in getHostDependence()
297 Action *
306 void OffloadAction::DeviceDependences::add(Action &A, const ToolChain &TC, in add()
315 void OffloadAction::DeviceDependences::add(Action &A, const ToolChain &TC, in add()
328 OffloadAction::HostDependence::HostDependence(Action &A, const ToolChain &TC, in HostDependence()
338 JobAction::JobAction(ActionClass Kind, Action *Input, types::ID Type) in JobAction()
339 : Action(Kind, Input, Type) {} in JobAction()
342 : Action(Kind, Inputs, Type) {} in JobAction()
346 PreprocessJobAction::PreprocessJobAction(Action *Input, types::ID OutputType) in PreprocessJobAction()
351 PrecompileJobAction::PrecompileJobAction(Action *Input, types::ID OutputType) in PrecompileJobAction()
354 PrecompileJobAction::PrecompileJobAction(ActionClass Kind, Action *Input, in PrecompileJobAction()
357 assert(isa<PrecompileJobAction>((Action*)this) && "invalid action kind"); 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()
412 VerifyJobAction::VerifyJobAction(ActionClass Kind, Action *Input, in VerifyJobAction()
421 VerifyDebugInfoJobAction::VerifyDebugInfoJobAction(Action *Input, in VerifyDebugInfoJobAction()
427 VerifyPCHJobAction::VerifyPCHJobAction(Action *Input, types::ID Type) in VerifyPCHJobAction()
437 OffloadUnbundlingJobAction::OffloadUnbundlingJobAction(Action *Input) in OffloadUnbundlingJobAction()
459 BinaryAnalyzeJobAction::BinaryAnalyzeJobAction(Action *Input, types::ID Type) in BinaryAnalyzeJobAction()