Lines Matching refs:CodeGenOptions
381 static void setPGOInstrumentor(CodeGenOptions &Opts, ArgList &Args, in setPGOInstrumentor()
388 .Case("none", CodeGenOptions::ProfileNone) in setPGOInstrumentor()
389 .Case("clang", CodeGenOptions::ProfileClangInstr) in setPGOInstrumentor()
390 .Case("llvm", CodeGenOptions::ProfileIRInstr) in setPGOInstrumentor()
397 CodeGenOptions::ProfileInstrKind Instrumentor = in setPGOInstrumentor()
398 static_cast<CodeGenOptions::ProfileInstrKind>(I); in setPGOInstrumentor()
403 static void setPGOUseInstrumentor(CodeGenOptions &Opts, in setPGOUseInstrumentor()
409 Opts.setProfileUse(CodeGenOptions::ProfileClangInstr); in setPGOUseInstrumentor()
415 Opts.setProfileUse(CodeGenOptions::ProfileIRInstr); in setPGOUseInstrumentor()
417 Opts.setProfileUse(CodeGenOptions::ProfileClangInstr); in setPGOUseInstrumentor()
420 static bool ParseCodeGenArgs(CodeGenOptions &Opts, ArgList &Args, InputKind IK, in ParseCodeGenArgs()
441 (Opts.OptimizationLevel > 1) ? CodeGenOptions::NormalInlining in ParseCodeGenArgs()
442 : CodeGenOptions::OnlyAlwaysInlining); in ParseCodeGenArgs()
450 Opts.setInlining(CodeGenOptions::NormalInlining); in ParseCodeGenArgs()
452 Opts.setInlining(CodeGenOptions::OnlyHintInlining); in ParseCodeGenArgs()
454 Opts.setInlining(CodeGenOptions::OnlyAlwaysInlining); in ParseCodeGenArgs()
460 Opts.setVecLib(CodeGenOptions::Accelerate); in ParseCodeGenArgs()
462 Opts.setVecLib(CodeGenOptions::NoLibrary); in ParseCodeGenArgs()
653 .Case("off", CodeGenOptions::Embed_Off) in ParseCodeGenArgs()
654 .Case("all", CodeGenOptions::Embed_All) in ParseCodeGenArgs()
655 .Case("bitcode", CodeGenOptions::Embed_Bitcode) in ParseCodeGenArgs()
656 .Case("marker", CodeGenOptions::Embed_Marker) in ParseCodeGenArgs()
663 static_cast<CodeGenOptions::EmbedBitcodeKind>(Model)); in ParseCodeGenArgs()
668 if (Opts.getEmbedBitcode() == CodeGenOptions::Embed_All) { in ParseCodeGenArgs()
742 .Case("legacy", CodeGenOptions::Legacy) in ParseCodeGenArgs()
743 .Case("non-legacy", CodeGenOptions::NonLegacy) in ParseCodeGenArgs()
744 .Case("mixed", CodeGenOptions::Mixed) in ParseCodeGenArgs()
751 static_cast<CodeGenOptions::ObjCDispatchMethodKind>(Method)); in ParseCodeGenArgs()
761 .Case("global-dynamic", CodeGenOptions::GeneralDynamicTLSModel) in ParseCodeGenArgs()
762 .Case("local-dynamic", CodeGenOptions::LocalDynamicTLSModel) in ParseCodeGenArgs()
763 .Case("initial-exec", CodeGenOptions::InitialExecTLSModel) in ParseCodeGenArgs()
764 .Case("local-exec", CodeGenOptions::LocalExecTLSModel) in ParseCodeGenArgs()
770 Opts.setDefaultTLSModel(static_cast<CodeGenOptions::TLSModel>(Model)); in ParseCodeGenArgs()
777 Opts.setFPContractMode(CodeGenOptions::FPC_Fast); in ParseCodeGenArgs()
779 Opts.setFPContractMode(CodeGenOptions::FPC_On); in ParseCodeGenArgs()
781 Opts.setFPContractMode(CodeGenOptions::FPC_Off); in ParseCodeGenArgs()
788 Opts.setStructReturnConvention(CodeGenOptions::SRCK_OnStack); in ParseCodeGenArgs()
791 Opts.setStructReturnConvention(CodeGenOptions::SRCK_InRegs); in ParseCodeGenArgs()
2379 Res.getCodeGenOpts().setFPContractMode(CodeGenOptions::FPC_Fast); in CreateFromArgs()