Lines Matching refs:JA

1933       const JobAction *JA = cast<JobAction>(&FailingCommand->getSource());  in ExecuteCompilation()  local
1934 C.CleanupFileMap(C.getResultFiles(), JA, true); in ExecuteCompilation()
1938 C.CleanupFileMap(C.getFailureResultFiles(), JA, true); in ExecuteCompilation()
5104 const JobAction *JA = nullptr; member
5136 auto *AJ = dyn_cast<AssembleJobAction>(ActionInfo[0].JA); in combineAssembleBackendCompile()
5137 auto *BJ = dyn_cast<BackendJobAction>(ActionInfo[1].JA); in combineAssembleBackendCompile()
5138 auto *CJ = dyn_cast<CompileJobAction>(ActionInfo[2].JA); in combineAssembleBackendCompile()
5149 bool OutputIsLLVM = types::isLLVMIR(ActionInfo[0].JA->getType()); in combineAssembleBackendCompile()
5174 auto *AJ = dyn_cast<AssembleJobAction>(ActionInfo[0].JA); in combineAssembleBackend()
5175 auto *BJ = dyn_cast<BackendJobAction>(ActionInfo[1].JA); in combineAssembleBackend()
5197 auto *BJ = dyn_cast<BackendJobAction>(ActionInfo[0].JA); in combineBackendCompile()
5198 auto *CJ = dyn_cast<CompileJobAction>(ActionInfo[1].JA); in combineBackendCompile()
5209 if (ActionInfo[i].JA->getType() != types::TY_LLVM_BC && in combineBackendCompile()
5210 ActionInfo[i].JA->getType() != types::TY_LTO_BC) { in combineBackendCompile()
5224 bool OutputIsLLVM = types::isLLVMIR(ActionInfo[0].JA->getType()); in combineBackendCompile()
5287 ActionChain.back().JA = BaseAction; in getTool()
5288 while (ActionChain.back().JA) { in getTool()
5289 const Action *CurAction = ActionChain.back().JA; in getTool()
5296 AI.JA = in getTool()
5364 const JobAction *JA, const char *BaseInput, in handleTimeTrace() argument
5390 C.addTimeTraceFile(ResultFile, JA); in handleTimeTrace()
5391 C.addResultFile(ResultFile, JA); in handleTimeTrace()
5508 const JobAction *JA = cast<JobAction>(A); in BuildJobsForActionNoCache() local
5511 ToolSelector TS(JA, *TC, C, isSaveTempsEnabled(), in BuildJobsForActionNoCache()
5554 if (JA->getType() == types::TY_dSYM) in BuildJobsForActionNoCache()
5579 if (auto *UA = dyn_cast<OffloadUnbundlingJobAction>(JA)) { in BuildJobsForActionNoCache()
5629 } else if (JA->getType() == types::TY_Nothing) in BuildJobsForActionNoCache()
5639 Result = InputInfo(A, GetNamedOutputPath(C, *JA, BaseInput, BoundArch, in BuildJobsForActionNoCache()
5644 handleTimeTrace(C, Args, JA, BaseInput, Result); in BuildJobsForActionNoCache()
5669 C, *JA, Result, InputInfos, in BuildJobsForActionNoCache()
5670 C.getArgsForToolChain(TC, BoundArch, JA->getOffloadingDeviceKind()), in BuildJobsForActionNoCache()
5674 C, *JA, UnbundlingResults, InputInfos, in BuildJobsForActionNoCache()
5675 C.getArgsForToolChain(TC, BoundArch, JA->getOffloadingDeviceKind()), in BuildJobsForActionNoCache()
5719 static bool HasPreprocessOutput(const Action &JA) { in HasPreprocessOutput() argument
5720 if (isa<PreprocessJobAction>(JA)) in HasPreprocessOutput()
5722 if (isa<OffloadAction>(JA) && isa<PreprocessJobAction>(JA.getInputs()[0])) in HasPreprocessOutput()
5724 if (isa<OffloadBundlingJobAction>(JA) && in HasPreprocessOutput()
5725 HasPreprocessOutput(*(JA.getInputs()[0]))) in HasPreprocessOutput()
5780 static const char *GetModuleOutputPath(Compilation &C, const JobAction &JA, in GetModuleOutputPath() argument
5782 assert(isa<PrecompileJobAction>(JA) && JA.getType() == types::TY_ModuleFile && in GetModuleOutputPath()
5788 return C.addResultFile(ModuleOutputEQ->getValue(), &JA); in GetModuleOutputPath()
5797 const char *Extension = types::getTypeTempSuffix(JA.getType()); in GetModuleOutputPath()
5799 return C.addResultFile(C.getArgs().MakeArgString(OutputPath.c_str()), &JA); in GetModuleOutputPath()
5802 const char *Driver::GetNamedOutputPath(Compilation &C, const JobAction &JA, in GetNamedOutputPath() argument
5816 if (AtTopLevel && !isa<DsymutilJobAction>(JA) && !isa<VerifyJobAction>(JA)) { in GetNamedOutputPath()
5818 return C.addResultFile(FinalOutput->getValue(), &JA); in GetNamedOutputPath()
5823 assert(AtTopLevel && isa<PreprocessJobAction>(JA)); in GetNamedOutputPath()
5830 &JA); in GetNamedOutputPath()
5834 if (AtTopLevel && !CCGenDiagnostics && HasPreprocessOutput(JA)) { in GetNamedOutputPath()
5838 if (JA.getType() == types::TY_ModuleFile && in GetNamedOutputPath()
5843 if (JA.getType() == types::TY_PP_Asm && in GetNamedOutputPath()
5848 return C.addResultFile(C.getArgs().MakeArgString(FcValue.str()), &JA); in GetNamedOutputPath()
5851 if (JA.getType() == types::TY_Object && in GetNamedOutputPath()
5856 return C.addResultFile(C.getArgs().MakeArgString(FoValue.str()), &JA); in GetNamedOutputPath()
5860 if (JA.getType() == types::TY_PP_Asm && in GetNamedOutputPath()
5867 MakeCLOutputFilename(C.getArgs(), FaValue, BaseName, JA.getType()), in GetNamedOutputPath()
5868 &JA); in GetNamedOutputPath()
5873 if (AtTopLevel && JA.getType() == types::TY_PP_Asm && IsDXCMode()) in GetNamedOutputPath()
5884 if (!AtTopLevel && isa<PrecompileJobAction>(JA) && in GetNamedOutputPath()
5885 JA.getType() == types::TY_ModuleFile && SpecifiedModuleOutput) in GetNamedOutputPath()
5886 return GetModuleOutputPath(C, JA, BaseInput); in GetNamedOutputPath()
5895 types::getTypeTempSuffix(JA.getType(), IsCLMode() || IsDXCMode()); in GetNamedOutputPath()
5901 (JA.getOffloadingDeviceKind() == Action::OFK_None || in GetNamedOutputPath()
5902 JA.getOffloadingDeviceKind() == Action::OFK_Host) && in GetNamedOutputPath()
5913 if (isa<DsymutilJobAction>(JA) && C.getArgs().hasArg(options::OPT_dsym_dir)) { in GetNamedOutputPath()
5922 } else if (isa<DsymutilJobAction>(JA) || isa<VerifyJobAction>(JA)) in GetNamedOutputPath()
5930 if ((JA.getType() == types::TY_Object || JA.getType() == types::TY_LTO_BC) && in GetNamedOutputPath()
5939 } else if (JA.getType() == types::TY_Image && in GetNamedOutputPath()
5949 } else if (JA.getType() == types::TY_Image) { in GetNamedOutputPath()
5958 bool IsHIPNoRDC = JA.getOffloadingDeviceKind() == Action::OFK_HIP && in GetNamedOutputPath()
5961 bool UseOutExtension = IsHIPNoRDC || isa<OffloadPackagerJobAction>(JA); in GetNamedOutputPath()
5975 } else if (JA.getType() == types::TY_PCH && IsCLMode()) { in GetNamedOutputPath()
5977 } else if ((JA.getType() == types::TY_Plist || JA.getType() == types::TY_AST) && in GetNamedOutputPath()
5987 types::getTypeTempSuffix(JA.getType(), IsCLMode() || IsDXCMode()); in GetNamedOutputPath()
5991 if (!types::appendSuffixForType(JA.getType())) in GetNamedOutputPath()
6002 auto IsAMDRDCInCompilePhase = [](const JobAction &JA, in GetNamedOutputPath()
6007 const ToolChain *TC = JA.getOffloadingToolChain(); in GetNamedOutputPath()
6008 return isa<CompileJobAction>(JA) && in GetNamedOutputPath()
6009 ((JA.getOffloadingDeviceKind() == Action::OFK_HIP && in GetNamedOutputPath()
6012 (JA.getOffloadingDeviceKind() == Action::OFK_OpenMP && TC && in GetNamedOutputPath()
6015 if (!AtTopLevel && JA.getType() == types::TY_LLVM_BC && in GetNamedOutputPath()
6017 IsAMDRDCInCompilePhase(JA, C.getArgs()))) in GetNamedOutputPath()
6026 JA.getType() != types::TY_PCH) { in GetNamedOutputPath()
6049 types::getTypeTempSuffix(JA.getType(), IsCLMode() || IsDXCMode())); in GetNamedOutputPath()
6055 if (JA.getType() == types::TY_PCH && !IsCLMode()) { in GetNamedOutputPath()
6061 return C.addResultFile(C.getArgs().MakeArgString(BasePath.c_str()), &JA); in GetNamedOutputPath()
6064 return C.addResultFile(NamedOutput, &JA); in GetNamedOutputPath()
6432 bool Driver::ShouldUseClangCompiler(const JobAction &JA) const { in ShouldUseClangCompiler()
6434 if (JA.size() != 1 || in ShouldUseClangCompiler()
6435 !types::isAcceptedByClang((*JA.input_begin())->getType())) in ShouldUseClangCompiler()
6439 if (!isa<PreprocessJobAction>(JA) && !isa<PrecompileJobAction>(JA) && in ShouldUseClangCompiler()
6440 !isa<CompileJobAction>(JA) && !isa<BackendJobAction>(JA) && in ShouldUseClangCompiler()
6441 !isa<ExtractAPIJobAction>(JA)) in ShouldUseClangCompiler()
6447 bool Driver::ShouldUseFlangCompiler(const JobAction &JA) const { in ShouldUseFlangCompiler()
6449 if (JA.size() != 1 || in ShouldUseFlangCompiler()
6450 !types::isAcceptedByFlang((*JA.input_begin())->getType())) in ShouldUseFlangCompiler()
6454 if (!isa<PreprocessJobAction>(JA) && !isa<CompileJobAction>(JA) && in ShouldUseFlangCompiler()
6455 !isa<BackendJobAction>(JA)) in ShouldUseFlangCompiler()