Lines Matching refs:JA

103 /// offloading tool chain that is associated with the current action \a JA.
105 forAllAssociatedToolChains(Compilation &C, const JobAction &JA,
113 if (JA.isHostOffloading(Action::OFK_Cuda))
115 else if (JA.isDeviceOffloading(Action::OFK_Cuda))
117 else if (JA.isHostOffloading(Action::OFK_HIP))
119 else if (JA.isDeviceOffloading(Action::OFK_HIP))
122 if (JA.isHostOffloading(Action::OFK_OpenMP)) {
126 } else if (JA.isDeviceOffloading(Action::OFK_OpenMP))
474 const JobAction &JA) {
482 if (JA.isDeviceOffloading(Action::OFK_Cuda) ||
483 JA.isDeviceOffloading(Action::OFK_HIP))
1195 void Clang::AddPreprocessingOptions(Compilation &C, const JobAction &JA,
1226 C.addFailureResultFile(DepFile, &JA);
1233 C.addFailureResultFile(DepFile, &JA);
1279 if ((isa<PrecompileJobAction>(JA) &&
1299 if (JA.isOffloading(Action::OFK_Cuda))
1301 if (JA.isOffloading(Action::OFK_HIP))
1306 if (JA.isDeviceOffloading(Action::OFK_OpenMP) &&
1333 if (YcArg && JA.getKind() >= Action::PrecompileJobClass &&
1334 JA.getKind() <= Action::AssembleJobClass) {
1344 if (!isa<PrecompileJobAction>(JA)) {
1465 C, JA, getToolChain(),
1474 forAllAssociatedToolChains(C, JA, getToolChain(),
1554 const InputInfo &Output, const JobAction &JA) {
1588 if (!JA.isDeviceOffloading(Action::OFK_None) &&
1589 !JA.isDeviceOffloading(Action::OFK_Host)) {
1591 F += Action::GetOffloadingFileNamePrefix(JA.getOffloadingDeviceKind(),
1594 F += JA.getOffloadingArch();
2738 const JobAction &JA) {
2764 TC.getDefaultDenormalModeForType(Args, JA);
2766 TC.getDefaultDenormalModeForType(Args, JA, &llvm::APFloat::IEEEsingle());
2773 if (!JA.isDeviceOffloading(Action::OFK_Cuda) &&
2774 !JA.isOffloading(Action::OFK_HIP))
3033 if (!JA.isDeviceOffloading(Action::OFK_Cuda) &&
3034 !JA.isOffloading(Action::OFK_HIP))
4422 void Clang::ConstructJob(Compilation &C, const JobAction &JA,
4442 bool IsCuda = JA.isOffloading(Action::OFK_Cuda);
4443 bool IsCudaDevice = JA.isDeviceOffloading(Action::OFK_Cuda);
4444 bool IsHIP = JA.isOffloading(Action::OFK_HIP);
4445 bool IsHIPDevice = JA.isDeviceOffloading(Action::OFK_HIP);
4446 bool IsOpenMPDevice = JA.isDeviceOffloading(Action::OFK_OpenMP);
4447 bool IsHeaderModulePrecompile = isa<HeaderModulePrecompileJobAction>(JA);
4448 bool IsExtractAPI = isa<ExtractAPIJobAction>(JA);
4449 bool IsDeviceOffloadAction = !(JA.isDeviceOffloading(Action::OFK_None) ||
4450 JA.isDeviceOffloading(Action::OFK_Host));
4452 (JA.isHostOffloading(Action::OFK_OpenMP) &&
4455 (JA.isHostOffloading(C.getActiveOffloadKinds()) &&
4559 if (JA.isDeviceOffloading(Action::OFK_Cuda) ||
4560 JA.isDeviceOffloading(Action::OFK_HIP))
4643 if (!isa<AssembleJobAction>(JA)) {
4667 if (isa<AnalyzeJobAction>(JA)) {
4668 assert(JA.getType() == types::TY_Plist && "Invalid output type.");
4670 } else if (isa<MigrateJobAction>(JA)) {
4672 } else if (isa<PreprocessJobAction>(JA)) {
4680 else if (JA.getType() == types::TY_PP_CXXHeaderUnit)
4683 } else if (isa<AssembleJobAction>(JA)) {
4690 } else if (isa<PrecompileJobAction>(JA)) {
4691 if (JA.getType() == types::TY_Nothing)
4693 else if (JA.getType() == types::TY_ModuleFile)
4697 else if (JA.getType() == types::TY_HeaderUnit)
4701 } else if (isa<VerifyPCHJobAction>(JA)) {
4703 } else if (isa<ExtractAPIJobAction>(JA)) {
4704 assert(JA.getType() == types::TY_API_INFO &&
4710 assert((isa<CompileJobAction>(JA) || isa<BackendJobAction>(JA)) &&
4712 if (JA.getType() == types::TY_Nothing) {
4714 } else if (JA.getType() == types::TY_LLVM_IR ||
4715 JA.getType() == types::TY_LTO_IR) {
4717 } else if (JA.getType() == types::TY_LLVM_BC ||
4718 JA.getType() == types::TY_LTO_BC) {
4726 } else if (JA.getType() == types::TY_IFS ||
4727 JA.getType() == types::TY_IFS_CPP) {
4735 } else if (JA.getType() == types::TY_PP_Asm) {
4737 } else if (JA.getType() == types::TY_AST) {
4739 } else if (JA.getType() == types::TY_ModuleFile) {
4741 } else if (JA.getType() == types::TY_RewrittenObjC) {
4744 } else if (JA.getType() == types::TY_RewrittenLegacyObjC) {
4748 assert(JA.getType() == types::TY_PP_Asm && "Unexpected output type!");
4755 if (JA.getType() == types::TY_LLVM_BC)
4802 (isa<BackendJobAction>(JA) || isa<AssembleJobAction>(JA))) {
4809 TC.addClangTargetOptions(Args, CmdArgs, JA.getOffloadingDeviceKind());
4865 CmdArgs, JA);
4911 JA, *this, ResponseFileSupport::AtFileUTF8(), D.getClangProgramPath(),
4961 if (isa<AnalyzeJobAction>(JA))
4964 if (isa<AnalyzeJobAction>(JA) ||
4965 (isa<PreprocessJobAction>(JA) && Args.hasArg(options::OPT__analyze)))
5271 RenderFloatingPointOptions(TC, D, OFastEnabled, Args, CmdArgs, JA);
5415 TC.addClangTargetOptions(Args, CmdArgs, JA.getOffloadingDeviceKind());
5463 if (isa<AssembleJobAction>(JA) || isa<CompileJobAction>(JA) ||
5464 isa<BackendJobAction>(JA)) {
5501 (isa<AssembleJobAction>(JA) || isa<CompileJobAction>(JA) ||
5502 isa<BackendJobAction>(JA));
5504 const char *SplitDWARFOut = SplitDebugName(JA, Args, Input, Output);
5673 AddPreprocessingOptions(C, JA, D, Args, CmdArgs, Output, Inputs);
5833 if (!ShouldEnableAutolink(Args, TC, JA))
6060 if (!isa<PreprocessJobAction>(JA) || Output.getType() != types::TY_PP_Asm)
6070 (JA.isDeviceOffloading(Action::OFK_None) ||
6071 JA.isDeviceOffloading(Action::OFK_OpenMP))) {
6821 renderRemarksOptions(Args, CmdArgs, Triple, Input, Output, JA);
6844 if (isa<PreprocessJobAction>(JA))
6923 !isa<PreprocessJobAction>(JA)) {
6955 JA.isHostOffloading(Action::OFK_OpenMP)) &&
6957 isa<CompileJobAction>(JA))
7029 const Action *SourceAction = &JA;
7076 if (JA.isHostOffloading(Action::OFK_OpenMP)) {
7281 C.addCommand(std::make_unique<CC1Command>(JA, *this,
7285 C.addCommand(std::make_unique<Command>(JA, *this,
7852 void ClangAs::ConstructJob(Compilation &C, const JobAction &JA,
7921 const Action *SourceAction = FindSource(&JA);
8094 CmdArgs.push_back(SplitDebugName(JA, Args, Input, Output));
8106 C.addCommand(std::make_unique<CC1Command>(JA, *this,
8110 C.addCommand(std::make_unique<Command>(JA, *this,
8118 void OffloadBundler::ConstructJob(Compilation &C, const JobAction &JA,
8124 assert(isa<OffloadBundlingJobAction>(JA) && "Expecting bundling job!");
8140 assert(JA.getInputs().size() == Inputs.size() &&
8153 const Action *CurDep = JA.getInputs()[I];
8202 if (const auto *OA = dyn_cast<OffloadAction>(JA.getInputs()[I])) {
8217 JA, *this, ResponseFileSupport::None(),
8223 Compilation &C, const JobAction &JA, const InputInfoList &Outputs,
8227 auto &UA = cast<OffloadUnbundlingJobAction>(JA);
8301 JA, *this, ResponseFileSupport::None(),
8306 void OffloadWrapper::ConstructJob(Compilation &C, const JobAction &JA,
8331 JA, *this, ResponseFileSupport::None(),
8336 void OffloadPackager::ConstructJob(Compilation &C, const JobAction &JA,
8384 JA, *this, ResponseFileSupport::None(),
8389 void LinkerWrapper::ConstructJob(Compilation &C, const JobAction &JA,
8484 Linker->ConstructJob(C, JA, Output, Inputs, Args, LinkingOutput);