Lines Matching refs:Opts
45 const LangOptions &Opts) {
50 if (Opts.GNUMode)
76 virtual void getOSDefines(const LangOptions &Opts, const llvm::Triple &Triple,
80 void getTargetDefines(const LangOptions &Opts,
82 TgtInfo::getTargetDefines(Opts, Builder);
83 getOSDefines(Opts, TgtInfo::getTriple(), Builder);
92 void getOSDefines(const LangOptions &Opts, const llvm::Triple &Triple,
110 static void getDarwinDefines(MacroBuilder &Builder, const LangOptions &Opts,
119 if (Opts.Sanitize.has(SanitizerKind::Address))
123 if (!Opts.ObjC1) {
130 if (Opts.Static)
135 if (Opts.POSIXThreads)
218 void getOSDefines(const LangOptions &Opts, const llvm::Triple &Triple,
220 getDarwinDefines(Builder, Opts, Triple, this->PlatformName,
257 void getOSDefines(const LangOptions &Opts, const llvm::Triple &Triple,
265 DefineStd(Builder, "unix", Opts);
286 void getOSDefines(const LangOptions &Opts, const llvm::Triple &Triple,
297 DefineStd(Builder, "unix", Opts);
339 void getOSDefines(const LangOptions &Opts, const llvm::Triple &Triple,
343 DefineStd(Builder, "unix", Opts);
347 if (Opts.POSIXThreads)
349 if (Opts.CPlusPlus)
363 void getOSDefines(const LangOptions &Opts, const llvm::Triple &Triple,
375 DefineStd(Builder, "unix", Opts);
387 void getOSDefines(const LangOptions &Opts, const llvm::Triple &Triple,
390 DefineStd(Builder, "unix", Opts);
391 DefineStd(Builder, "linux", Opts);
401 if (Opts.POSIXThreads)
403 if (Opts.CPlusPlus)
431 void getOSDefines(const LangOptions &Opts, const llvm::Triple &Triple,
437 if (Opts.POSIXThreads)
462 void getOSDefines(const LangOptions &Opts, const llvm::Triple &Triple,
467 DefineStd(Builder, "unix", Opts);
469 if (Opts.POSIXThreads)
499 void getOSDefines(const LangOptions &Opts, const llvm::Triple &Triple,
504 DefineStd(Builder, "unix", Opts);
506 if (Opts.POSIXThreads)
531 void getOSDefines(const LangOptions &Opts, const llvm::Triple &Triple,
549 void getOSDefines(const LangOptions &Opts, const llvm::Triple &Triple,
575 void getOSDefines(const LangOptions &Opts, const llvm::Triple &Triple,
580 DefineStd(Builder, "unix", Opts);
605 void getOSDefines(const LangOptions &Opts, const llvm::Triple &Triple,
607 DefineStd(Builder, "sun", Opts);
608 DefineStd(Builder, "unix", Opts);
616 if (Opts.C99)
620 if (Opts.CPlusPlus)
639 void getOSDefines(const LangOptions &Opts, const llvm::Triple &Triple,
643 void getVisualStudioDefines(const LangOptions &Opts,
645 if (Opts.CPlusPlus) {
646 if (Opts.RTTIData)
649 if (Opts.CXXExceptions)
653 if (Opts.Bool)
656 if (!Opts.CharIsSigned)
661 if (Opts.POSIXThreads)
664 if (Opts.MSCompatibilityVersion) {
666 Twine(Opts.MSCompatibilityVersion / 100000));
667 Builder.defineMacro("_MSC_FULL_VER", Twine(Opts.MSCompatibilityVersion));
671 if (Opts.CPlusPlus11 && Opts.isCompatibleWithMSVC(LangOptions::MSVC2015))
675 if (Opts.MicrosoftExt) {
678 if (Opts.CPlusPlus11) {
696 void getOSDefines(const LangOptions &Opts, const llvm::Triple &Triple,
698 if (Opts.POSIXThreads)
700 if (Opts.CPlusPlus)
703 DefineStd(Builder, "unix", Opts);
745 void getOSDefines(const LangOptions &Opts, const llvm::Triple &Triple,
748 if (Opts.POSIXThreads)
751 if (Opts.CPlusPlus)
894 void getTargetDefines(const LangOptions &Opts,
1082 void PPCTargetInfo::getTargetDefines(const LangOptions &Opts,
1120 if (Opts.AltiVec) {
1618 void getTargetDefines(const LangOptions &Opts,
1622 if (Opts.CUDAIsDevice) {
1845 void getTargetDefines(const LangOptions &Opts,
1852 if (hasFP64 && Opts.OpenCL)
1854 if (Opts.OpenCL) {
2392 void getTargetDefines(const LangOptions &Opts,
3071 void X86TargetInfo::getTargetDefines(const LangOptions &Opts,
3084 DefineStd(Builder, "i386", Opts);
3355 if (Opts.MicrosoftExt && getTriple().getArch() == llvm::Triple::x86) {
3762 void getTargetDefines(const LangOptions &Opts,
3764 WindowsTargetInfo<X86_32TargetInfo>::getTargetDefines(Opts, Builder);
3776 void getTargetDefines(const LangOptions &Opts,
3778 WindowsX86_32TargetInfo::getTargetDefines(Opts, Builder);
3779 WindowsX86_32TargetInfo::getVisualStudioDefines(Opts, Builder);
3787 static void addCygMingDefines(const LangOptions &Opts, MacroBuilder &Builder) {
3791 if (Opts.MicrosoftExt)
3796 if (!Opts.MicrosoftExt) {
3811 static void addMinGWDefines(const LangOptions &Opts, MacroBuilder &Builder) {
3814 addCygMingDefines(Opts, Builder);
3822 void getTargetDefines(const LangOptions &Opts,
3824 WindowsX86_32TargetInfo::getTargetDefines(Opts, Builder);
3825 DefineStd(Builder, "WIN32", Opts);
3826 DefineStd(Builder, "WINNT", Opts);
3828 addMinGWDefines(Opts, Builder);
3841 void getTargetDefines(const LangOptions &Opts,
3843 X86_32TargetInfo::getTargetDefines(Opts, Builder);
3847 addCygMingDefines(Opts, Builder);
3848 DefineStd(Builder, "unix", Opts);
3849 if (Opts.CPlusPlus)
3865 void getTargetDefines(const LangOptions &Opts,
3867 X86_32TargetInfo::getTargetDefines(Opts, Builder);
3886 void getTargetDefines(const LangOptions &Opts,
3888 X86_32TargetInfo::getTargetDefines(Opts, Builder);
3898 void getOSDefines(const LangOptions &Opts, const llvm::Triple &Triple,
3938 void getTargetDefines(const LangOptions &Opts,
3940 X86_32TargetInfo::getTargetDefines(Opts, Builder);
4042 void getTargetDefines(const LangOptions &Opts,
4044 WindowsTargetInfo<X86_64TargetInfo>::getTargetDefines(Opts, Builder);
4077 void getTargetDefines(const LangOptions &Opts,
4079 WindowsX86_64TargetInfo::getTargetDefines(Opts, Builder);
4080 WindowsX86_64TargetInfo::getVisualStudioDefines(Opts, Builder);
4097 void getTargetDefines(const LangOptions &Opts,
4099 WindowsX86_64TargetInfo::getTargetDefines(Opts, Builder);
4100 DefineStd(Builder, "WIN64", Opts);
4102 addMinGWDefines(Opts, Builder);
4105 if (!Opts.SjLjExceptions)
4118 void getTargetDefines(const LangOptions &Opts,
4120 X86_64TargetInfo::getTargetDefines(Opts, Builder);
4124 addCygMingDefines(Opts, Builder);
4125 DefineStd(Builder, "unix", Opts);
4126 if (Opts.CPlusPlus)
4130 if (!Opts.SjLjExceptions)
4686 void getTargetDefines(const LangOptions &Opts,
4843 Opts.ShortWChar ? "2" : "4");
4846 Opts.ShortEnums ? "1" : "4");
4871 if (Opts.UnsafeFPMath)
5074 void getTargetDefines(const LangOptions &Opts,
5077 ARMTargetInfo::getTargetDefines(Opts, Builder);
5085 void getTargetDefines(const LangOptions &Opts,
5089 ARMTargetInfo::getTargetDefines(Opts, Builder);
5103 void getVisualStudioDefines(const LangOptions &Opts,
5105 WindowsTargetInfo<ARMleTargetInfo>::getVisualStudioDefines(Opts, Builder);
5148 void getTargetDefines(const LangOptions &Opts,
5150 WindowsARMTargetInfo::getTargetDefines(Opts, Builder);
5152 if (Opts.MSVCCompat)
5153 WindowsARMTargetInfo::getVisualStudioDefines(Opts, Builder);
5165 void getTargetDefines(const LangOptions &Opts,
5167 WindowsARMTargetInfo::getTargetDefines(Opts, Builder);
5168 WindowsARMTargetInfo::getVisualStudioDefines(Opts, Builder);
5180 void getTargetDefines(const LangOptions &Opts,
5182 WindowsARMTargetInfo::getTargetDefines(Opts, Builder);
5183 DefineStd(Builder, "WIN32", Opts);
5184 DefineStd(Builder, "WINNT", Opts);
5186 addMinGWDefines(Opts, Builder);
5199 void getTargetDefines(const LangOptions &Opts,
5201 ARMleTargetInfo::getTargetDefines(Opts, Builder);
5205 DefineStd(Builder, "unix", Opts);
5206 if (Opts.CPlusPlus)
5214 void getOSDefines(const LangOptions &Opts, const llvm::Triple &Triple,
5216 getDarwinDefines(Builder, Opts, Triple, PlatformName, PlatformMinVersion);
5321 void getTargetDefines(const LangOptions &Opts,
5357 if (Opts.UnsafeFPMath)
5360 Builder.defineMacro("__ARM_SIZEOF_WCHAR_T", Opts.ShortWChar ? "2" : "4");
5363 Opts.ShortEnums ? "1" : "4");
5585 void getTargetDefines(const LangOptions &Opts,
5588 AArch64TargetInfo::getTargetDefines(Opts, Builder);
5601 void getTargetDefines(const LangOptions &Opts,
5606 AArch64TargetInfo::getTargetDefines(Opts, Builder);
5612 void getOSDefines(const LangOptions &Opts, const llvm::Triple &Triple,
5622 getDarwinDefines(Builder, Opts, Triple, PlatformName, PlatformMinVersion);
5682 void getTargetDefines(const LangOptions &Opts,
5732 void HexagonTargetInfo::getTargetDefines(const LangOptions &Opts,
5740 if (Opts.HexagonQdsp6Compat) {
5747 if(Opts.HexagonQdsp6Compat) {
5837 void getTargetDefines(const LangOptions &Opts,
5839 DefineStd(Builder, "sparc", Opts);
6028 void getTargetDefines(const LangOptions &Opts,
6030 SparcTargetInfo::getTargetDefines(Opts, Builder);
6081 void getTargetDefines(const LangOptions &Opts,
6083 SparcTargetInfo::getTargetDefines(Opts, Builder);
6126 void getTargetDefines(const LangOptions &Opts,
6134 if (Opts.ZVector)
6285 void getTargetDefines(const LangOptions &Opts,
6382 void getTargetDefines(const LangOptions &Opts,
6384 DefineStd(Builder, "tce", Opts);
6426 void getTargetDefines(const LangOptions &Opts,
6428 DefineStd(Builder, "bpf", Opts);
6533 void getTargetDefines(const LangOptions &Opts,
6537 if (Opts.GNUMode)
6782 void getTargetDefines(const LangOptions &Opts,
6784 MipsTargetInfoBase::getTargetDefines(Opts, Builder);
6858 void getTargetDefines(const LangOptions &Opts,
6860 DefineStd(Builder, "MIPSEB", Opts);
6862 Mips32TargetInfoBase::getTargetDefines(Opts, Builder);
6876 void getTargetDefines(const LangOptions &Opts,
6878 DefineStd(Builder, "MIPSEL", Opts);
6880 Mips32TargetInfoBase::getTargetDefines(Opts, Builder);
6931 void getTargetDefines(const LangOptions &Opts,
6933 MipsTargetInfoBase::getTargetDefines(Opts, Builder);
7017 void getTargetDefines(const LangOptions &Opts,
7019 DefineStd(Builder, "MIPSEB", Opts);
7021 Mips64TargetInfoBase::getTargetDefines(Opts, Builder);
7038 void getTargetDefines(const LangOptions &Opts,
7040 DefineStd(Builder, "MIPSEL", Opts);
7042 Mips64TargetInfoBase::getTargetDefines(Opts, Builder);
7066 void getArchDefines(const LangOptions &Opts, MacroBuilder &Builder) const {
7070 void getTargetDefines(const LangOptions &Opts,
7072 getArchDefines(Opts, Builder);
7125 void getTargetDefines(const LangOptions &Opts,
7127 DefineStd(Builder, "unix", Opts);
7176 void getTargetDefines(const LangOptions &Opts,
7275 void getTargetDefines(const LangOptions &Opts,
7277 WebAssemblyTargetInfo::getTargetDefines(Opts, Builder);
7293 void getTargetDefines(const LangOptions &Opts,
7295 WebAssemblyTargetInfo::getTargetDefines(Opts, Builder);
7331 void getTargetDefines(const LangOptions &Opts,
7333 DefineStd(Builder, "SPIR", Opts);
7372 void getTargetDefines(const LangOptions &Opts,
7374 DefineStd(Builder, "SPIR32", Opts);
7387 void getTargetDefines(const LangOptions &Opts,
7389 DefineStd(Builder, "SPIR64", Opts);
7411 void getTargetDefines(const LangOptions &Opts,
7905 const std::shared_ptr<TargetOptions> &Opts) {
7906 llvm::Triple Triple(Opts->Triple);
7914 Target->TargetOpts = Opts;
7917 if (!Opts->CPU.empty() && !Target->setCPU(Opts->CPU)) {
7918 Diags.Report(diag::err_target_unknown_cpu) << Opts->CPU;
7923 if (!Opts->ABI.empty() && !Target->setABI(Opts->ABI)) {
7924 Diags.Report(diag::err_target_unknown_abi) << Opts->ABI;
7929 if (!Opts->FPMath.empty() && !Target->setFPMath(Opts->FPMath)) {
7930 Diags.Report(diag::err_target_unknown_fpmath) << Opts->FPMath;
7937 if (!Target->initFeatureMap(Features, Diags, Opts->CPU,
7938 Opts->FeaturesAsWritten))
7942 Opts->Features.clear();
7944 Opts->Features.push_back((F.getValue() ? "+" : "-") + F.getKey().str());
7946 if (!Target->handleTargetFeatures(Opts->Features, Diags))