Lines Matching refs:JA
1750 const JobAction *JA = cast<JobAction>(&FailingCommand->getSource()); in ExecuteCompilation() local
1751 C.CleanupFileMap(C.getResultFiles(), JA, true); in ExecuteCompilation()
1755 C.CleanupFileMap(C.getFailureResultFiles(), JA, true); in ExecuteCompilation()
4934 const JobAction *JA = nullptr; member
4966 auto *AJ = dyn_cast<AssembleJobAction>(ActionInfo[0].JA); in combineAssembleBackendCompile()
4967 auto *BJ = dyn_cast<BackendJobAction>(ActionInfo[1].JA); in combineAssembleBackendCompile()
4968 auto *CJ = dyn_cast<CompileJobAction>(ActionInfo[2].JA); in combineAssembleBackendCompile()
4979 bool OutputIsLLVM = types::isLLVMIR(ActionInfo[0].JA->getType()); in combineAssembleBackendCompile()
5004 auto *AJ = dyn_cast<AssembleJobAction>(ActionInfo[0].JA); in combineAssembleBackend()
5005 auto *BJ = dyn_cast<BackendJobAction>(ActionInfo[1].JA); in combineAssembleBackend()
5027 auto *BJ = dyn_cast<BackendJobAction>(ActionInfo[0].JA); in combineBackendCompile()
5028 auto *CJ = dyn_cast<CompileJobAction>(ActionInfo[1].JA); in combineBackendCompile()
5039 if (ActionInfo[i].JA->getType() != types::TY_LLVM_BC && in combineBackendCompile()
5040 ActionInfo[i].JA->getType() != types::TY_LTO_BC) { in combineBackendCompile()
5054 bool OutputIsLLVM = types::isLLVMIR(ActionInfo[0].JA->getType()); in combineBackendCompile()
5117 ActionChain.back().JA = BaseAction; in getTool()
5118 while (ActionChain.back().JA) { in getTool()
5119 const Action *CurAction = ActionChain.back().JA; in getTool()
5126 AI.JA = in getTool()
5306 const JobAction *JA = cast<JobAction>(A); in BuildJobsForActionNoCache() local
5309 ToolSelector TS(JA, *TC, C, isSaveTempsEnabled(), in BuildJobsForActionNoCache()
5371 if (JA->getType() == types::TY_dSYM) in BuildJobsForActionNoCache()
5375 if (auto *ModuleJA = dyn_cast<HeaderModulePrecompileJobAction>(JA)) in BuildJobsForActionNoCache()
5400 if (auto *UA = dyn_cast<OffloadUnbundlingJobAction>(JA)) { in BuildJobsForActionNoCache()
5450 } else if (JA->getType() == types::TY_Nothing) in BuildJobsForActionNoCache()
5460 if (isa<OffloadWrapperJobAction>(JA)) { in BuildJobsForActionNoCache()
5468 Result = InputInfo(A, GetNamedOutputPath(C, *JA, BaseInput, BoundArch, in BuildJobsForActionNoCache()
5496 C, *JA, Result, InputInfos, in BuildJobsForActionNoCache()
5497 C.getArgsForToolChain(TC, BoundArch, JA->getOffloadingDeviceKind()), in BuildJobsForActionNoCache()
5501 C, *JA, UnbundlingResults, InputInfos, in BuildJobsForActionNoCache()
5502 C.getArgsForToolChain(TC, BoundArch, JA->getOffloadingDeviceKind()), in BuildJobsForActionNoCache()
5546 static bool HasPreprocessOutput(const Action &JA) { in HasPreprocessOutput() argument
5547 if (isa<PreprocessJobAction>(JA)) in HasPreprocessOutput()
5549 if (isa<OffloadAction>(JA) && isa<PreprocessJobAction>(JA.getInputs()[0])) in HasPreprocessOutput()
5551 if (isa<OffloadBundlingJobAction>(JA) && in HasPreprocessOutput()
5552 HasPreprocessOutput(*(JA.getInputs()[0]))) in HasPreprocessOutput()
5557 const char *Driver::GetNamedOutputPath(Compilation &C, const JobAction &JA, in GetNamedOutputPath() argument
5571 if (AtTopLevel && !isa<DsymutilJobAction>(JA) && !isa<VerifyJobAction>(JA)) { in GetNamedOutputPath()
5573 return C.addResultFile(FinalOutput->getValue(), &JA); in GetNamedOutputPath()
5578 assert(AtTopLevel && isa<PreprocessJobAction>(JA)); in GetNamedOutputPath()
5585 &JA); in GetNamedOutputPath()
5589 if (AtTopLevel && !CCGenDiagnostics && HasPreprocessOutput(JA)) { in GetNamedOutputPath()
5593 if (JA.getType() == types::TY_ModuleFile && in GetNamedOutputPath()
5599 if (JA.getType() == types::TY_PP_Asm && in GetNamedOutputPath()
5606 MakeCLOutputFilename(C.getArgs(), FaValue, BaseName, JA.getType()), in GetNamedOutputPath()
5607 &JA); in GetNamedOutputPath()
5617 const char *Suffix = types::getTypeTempSuffix(JA.getType(), IsCLMode()); in GetNamedOutputPath()
5648 if (isa<DsymutilJobAction>(JA) && C.getArgs().hasArg(options::OPT_dsym_dir)) { in GetNamedOutputPath()
5657 } else if (isa<DsymutilJobAction>(JA) || isa<VerifyJobAction>(JA)) in GetNamedOutputPath()
5665 if ((JA.getType() == types::TY_Object || JA.getType() == types::TY_LTO_BC) && in GetNamedOutputPath()
5674 } else if (JA.getType() == types::TY_Image && in GetNamedOutputPath()
5684 } else if (JA.getType() == types::TY_Image) { in GetNamedOutputPath()
5693 bool IsHIPNoRDC = JA.getOffloadingDeviceKind() == Action::OFK_HIP && in GetNamedOutputPath()
5696 bool UseOutExtension = IsHIPNoRDC || isa<OffloadPackagerJobAction>(JA); in GetNamedOutputPath()
5710 } else if (JA.getType() == types::TY_PCH && IsCLMode()) { in GetNamedOutputPath()
5712 } else if ((JA.getType() == types::TY_Plist || JA.getType() == types::TY_AST) && in GetNamedOutputPath()
5721 const char *Suffix = types::getTypeTempSuffix(JA.getType(), IsCLMode()); in GetNamedOutputPath()
5725 if (!types::appendSuffixForType(JA.getType())) in GetNamedOutputPath()
5736 auto IsHIPRDCInCompilePhase = [](const JobAction &JA, in GetNamedOutputPath()
5741 return isa<CompileJobAction>(JA) && in GetNamedOutputPath()
5742 JA.getOffloadingDeviceKind() == Action::OFK_HIP && in GetNamedOutputPath()
5746 if (!AtTopLevel && JA.getType() == types::TY_LLVM_BC && in GetNamedOutputPath()
5748 IsHIPRDCInCompilePhase(JA, C.getArgs()))) in GetNamedOutputPath()
5757 JA.getType() != types::TY_PCH) { in GetNamedOutputPath()
5779 Split.first, types::getTypeTempSuffix(JA.getType(), IsCLMode())); in GetNamedOutputPath()
5785 if (JA.getType() == types::TY_PCH && !IsCLMode()) { in GetNamedOutputPath()
5791 return C.addResultFile(C.getArgs().MakeArgString(BasePath.c_str()), &JA); in GetNamedOutputPath()
5793 return C.addResultFile(NamedOutput, &JA); in GetNamedOutputPath()
6174 bool Driver::ShouldUseClangCompiler(const JobAction &JA) const { in ShouldUseClangCompiler()
6176 if (JA.size() != 1 || in ShouldUseClangCompiler()
6177 !types::isAcceptedByClang((*JA.input_begin())->getType())) in ShouldUseClangCompiler()
6181 if (!isa<PreprocessJobAction>(JA) && !isa<PrecompileJobAction>(JA) && in ShouldUseClangCompiler()
6182 !isa<CompileJobAction>(JA) && !isa<BackendJobAction>(JA) && in ShouldUseClangCompiler()
6183 !isa<ExtractAPIJobAction>(JA)) in ShouldUseClangCompiler()
6189 bool Driver::ShouldUseFlangCompiler(const JobAction &JA) const { in ShouldUseFlangCompiler()
6191 if (JA.size() != 1 || in ShouldUseFlangCompiler()
6192 !types::isAcceptedByFlang((*JA.input_begin())->getType())) in ShouldUseFlangCompiler()
6196 if (!isa<PreprocessJobAction>(JA) && !isa<CompileJobAction>(JA) && in ShouldUseFlangCompiler()
6197 !isa<BackendJobAction>(JA)) in ShouldUseFlangCompiler()