• Home
  • Raw
  • Download

Lines Matching refs:Opts

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