Lines Matching refs:JA

1958       const JobAction *JA = cast<JobAction>(&FailingCommand->getSource());
1959 C.CleanupFileMap(C.getResultFiles(), JA, true);
1963 C.CleanupFileMap(C.getFailureResultFiles(), JA, true);
5190 const JobAction *JA = nullptr;
5222 auto *AJ = dyn_cast<AssembleJobAction>(ActionInfo[0].JA);
5223 auto *BJ = dyn_cast<BackendJobAction>(ActionInfo[1].JA);
5224 auto *CJ = dyn_cast<CompileJobAction>(ActionInfo[2].JA);
5235 bool OutputIsLLVM = types::isLLVMIR(ActionInfo[0].JA->getType());
5260 auto *AJ = dyn_cast<AssembleJobAction>(ActionInfo[0].JA);
5261 auto *BJ = dyn_cast<BackendJobAction>(ActionInfo[1].JA);
5283 auto *BJ = dyn_cast<BackendJobAction>(ActionInfo[0].JA);
5284 auto *CJ = dyn_cast<CompileJobAction>(ActionInfo[1].JA);
5295 if (ActionInfo[i].JA->getType() != types::TY_LLVM_BC &&
5296 ActionInfo[i].JA->getType() != types::TY_LTO_BC) {
5310 bool OutputIsLLVM = types::isLLVMIR(ActionInfo[0].JA->getType());
5373 ActionChain.back().JA = BaseAction;
5374 while (ActionChain.back().JA) {
5375 const Action *CurAction = ActionChain.back().JA;
5382 AI.JA =
5450 const JobAction *JA, const char *BaseInput,
5476 C.addTimeTraceFile(ResultFile, JA);
5477 C.addResultFile(ResultFile, JA);
5594 const JobAction *JA = cast<JobAction>(A);
5597 ToolSelector TS(JA, *TC, C, isSaveTempsEnabled(),
5640 if (JA->getType() == types::TY_dSYM)
5665 if (auto *UA = dyn_cast<OffloadUnbundlingJobAction>(JA)) {
5715 } else if (JA->getType() == types::TY_Nothing)
5725 Result = InputInfo(A, GetNamedOutputPath(C, *JA, BaseInput, BoundArch,
5730 handleTimeTrace(C, Args, JA, BaseInput, Result);
5755 C, *JA, Result, InputInfos,
5756 C.getArgsForToolChain(TC, BoundArch, JA->getOffloadingDeviceKind()),
5760 C, *JA, UnbundlingResults, InputInfos,
5761 C.getArgsForToolChain(TC, BoundArch, JA->getOffloadingDeviceKind()),
5805 static bool HasPreprocessOutput(const Action &JA) {
5806 if (isa<PreprocessJobAction>(JA))
5808 if (isa<OffloadAction>(JA) && isa<PreprocessJobAction>(JA.getInputs()[0]))
5810 if (isa<OffloadBundlingJobAction>(JA) &&
5811 HasPreprocessOutput(*(JA.getInputs()[0])))
5866 static const char *GetModuleOutputPath(Compilation &C, const JobAction &JA,
5868 assert(isa<PrecompileJobAction>(JA) && JA.getType() == types::TY_ModuleFile &&
5875 return C.addResultFile(C.getArgs().MakeArgString(OutputPath.c_str()), &JA);
5878 const char *Driver::GetNamedOutputPath(Compilation &C, const JobAction &JA,
5892 if (AtTopLevel && !isa<DsymutilJobAction>(JA) && !isa<VerifyJobAction>(JA)) {
5894 return C.addResultFile(FinalOutput->getValue(), &JA);
5899 assert(AtTopLevel && isa<PreprocessJobAction>(JA));
5906 &JA);
5910 if (AtTopLevel && !CCGenDiagnostics && HasPreprocessOutput(JA)) {
5914 if (JA.getType() == types::TY_ModuleFile &&
5919 if (JA.getType() == types::TY_PP_Asm &&
5924 return C.addResultFile(C.getArgs().MakeArgString(FcValue.str()), &JA);
5927 if (JA.getType() == types::TY_Object &&
5932 return C.addResultFile(C.getArgs().MakeArgString(FoValue.str()), &JA);
5936 if (JA.getType() == types::TY_PP_Asm &&
5943 MakeCLOutputFilename(C.getArgs(), FaValue, BaseName, JA.getType()),
5944 &JA);
5947 if (JA.getType() == types::TY_API_INFO &&
5955 if (AtTopLevel && JA.getType() == types::TY_PP_Asm && IsDXCMode())
5966 if (!AtTopLevel && isa<PrecompileJobAction>(JA) &&
5967 JA.getType() == types::TY_ModuleFile && SpecifiedModuleOutput) {
5969 return GetModuleOutputPath(C, JA, BaseInput);
5979 types::getTypeTempSuffix(JA.getType(), IsCLMode() || IsDXCMode());
5985 (JA.getOffloadingDeviceKind() == Action::OFK_None ||
5986 JA.getOffloadingDeviceKind() == Action::OFK_Host) &&
5997 if (isa<DsymutilJobAction>(JA) && C.getArgs().hasArg(options::OPT_dsym_dir)) {
6006 } else if (isa<DsymutilJobAction>(JA) || isa<VerifyJobAction>(JA))
6014 if ((JA.getType() == types::TY_Object || JA.getType() == types::TY_LTO_BC) &&
6023 } else if (JA.getType() == types::TY_Image &&
6033 } else if (JA.getType() == types::TY_Image) {
6042 bool IsHIPNoRDC = JA.getOffloadingDeviceKind() == Action::OFK_HIP &&
6045 bool UseOutExtension = IsHIPNoRDC || isa<OffloadPackagerJobAction>(JA);
6059 } else if (JA.getType() == types::TY_PCH && IsCLMode()) {
6061 } else if ((JA.getType() == types::TY_Plist || JA.getType() == types::TY_AST) &&
6071 types::getTypeTempSuffix(JA.getType(), IsCLMode() || IsDXCMode());
6075 if (!types::appendSuffixForType(JA.getType()))
6086 auto IsAMDRDCInCompilePhase = [](const JobAction &JA,
6091 const ToolChain *TC = JA.getOffloadingToolChain();
6092 return isa<CompileJobAction>(JA) &&
6093 ((JA.getOffloadingDeviceKind() == Action::OFK_HIP &&
6096 (JA.getOffloadingDeviceKind() == Action::OFK_OpenMP && TC &&
6099 if (!AtTopLevel && JA.getType() == types::TY_LLVM_BC &&
6101 IsAMDRDCInCompilePhase(JA, C.getArgs())))
6110 JA.getType() != types::TY_PCH) {
6133 types::getTypeTempSuffix(JA.getType(), IsCLMode() || IsDXCMode()));
6139 if (JA.getType() == types::TY_PCH && !IsCLMode()) {
6145 return C.addResultFile(C.getArgs().MakeArgString(BasePath.c_str()), &JA);
6148 return C.addResultFile(NamedOutput, &JA);
6568 bool Driver::ShouldUseClangCompiler(const JobAction &JA) const {
6570 if (JA.size() != 1 ||
6571 !types::isAcceptedByClang((*JA.input_begin())->getType()))
6575 if (!isa<PreprocessJobAction>(JA) && !isa<PrecompileJobAction>(JA) &&
6576 !isa<CompileJobAction>(JA) && !isa<BackendJobAction>(JA) &&
6577 !isa<ExtractAPIJobAction>(JA))
6583 bool Driver::ShouldUseFlangCompiler(const JobAction &JA) const {
6585 if (JA.size() != 1 ||
6586 !types::isAcceptedByFlang((*JA.input_begin())->getType()))
6590 if (!isa<PreprocessJobAction>(JA) && !isa<CompileJobAction>(JA) &&
6591 !isa<BackendJobAction>(JA))