Lines Matching refs:Opts
42 const LangOptions &Opts) { in DefineStd() argument
47 if (Opts.GNUMode) in DefineStd()
73 virtual void getOSDefines(const LangOptions &Opts, const llvm::Triple &Triple,
77 void getTargetDefines(const LangOptions &Opts, in getTargetDefines() argument
79 TgtInfo::getTargetDefines(Opts, Builder); in getTargetDefines()
80 getOSDefines(Opts, TgtInfo::getTriple(), Builder); in getTargetDefines()
87 static void getDarwinDefines(MacroBuilder &Builder, const LangOptions &Opts, in getDarwinDefines() argument
96 if (Opts.Sanitize.has(SanitizerKind::Address)) in getDarwinDefines()
99 if (!Opts.ObjCAutoRefCount) { in getDarwinDefines()
104 if (Opts.getGC() != LangOptions::NonGC) in getDarwinDefines()
115 if (Opts.Static) in getDarwinDefines()
120 if (Opts.POSIXThreads) in getDarwinDefines()
191 void getOSDefines(const LangOptions &Opts, const llvm::Triple &Triple, in getOSDefines() argument
212 void getOSDefines(const LangOptions &Opts, const llvm::Triple &Triple, in getOSDefines() argument
214 getDarwinDefines(Builder, Opts, Triple, this->PlatformName, in getOSDefines()
251 void getOSDefines(const LangOptions &Opts, const llvm::Triple &Triple, in getOSDefines() argument
259 DefineStd(Builder, "unix", Opts); in getOSDefines()
280 void getOSDefines(const LangOptions &Opts, const llvm::Triple &Triple, in getOSDefines() argument
291 DefineStd(Builder, "unix", Opts); in getOSDefines()
333 void getOSDefines(const LangOptions &Opts, const llvm::Triple &Triple, in getOSDefines() argument
337 DefineStd(Builder, "unix", Opts); in getOSDefines()
341 if (Opts.POSIXThreads) in getOSDefines()
343 if (Opts.CPlusPlus) in getOSDefines()
357 void getOSDefines(const LangOptions &Opts, const llvm::Triple &Triple, in getOSDefines() argument
369 DefineStd(Builder, "unix", Opts); in getOSDefines()
381 void getOSDefines(const LangOptions &Opts, const llvm::Triple &Triple, in getOSDefines() argument
384 DefineStd(Builder, "unix", Opts); in getOSDefines()
385 DefineStd(Builder, "linux", Opts); in getOSDefines()
395 if (Opts.POSIXThreads) in getOSDefines()
397 if (Opts.CPlusPlus) in getOSDefines()
425 void getOSDefines(const LangOptions &Opts, const llvm::Triple &Triple, in getOSDefines() argument
431 if (Opts.POSIXThreads) in getOSDefines()
456 void getOSDefines(const LangOptions &Opts, const llvm::Triple &Triple, in getOSDefines() argument
461 DefineStd(Builder, "unix", Opts); in getOSDefines()
463 if (Opts.POSIXThreads) in getOSDefines()
493 void getOSDefines(const LangOptions &Opts, const llvm::Triple &Triple, in getOSDefines() argument
498 DefineStd(Builder, "unix", Opts); in getOSDefines()
500 if (Opts.POSIXThreads) in getOSDefines()
525 void getOSDefines(const LangOptions &Opts, const llvm::Triple &Triple, in getOSDefines() argument
543 void getOSDefines(const LangOptions &Opts, const llvm::Triple &Triple, in getOSDefines() argument
569 void getOSDefines(const LangOptions &Opts, const llvm::Triple &Triple, in getOSDefines() argument
574 DefineStd(Builder, "unix", Opts); in getOSDefines()
597 void getOSDefines(const LangOptions &Opts, const llvm::Triple &Triple, in getOSDefines() argument
599 DefineStd(Builder, "sun", Opts); in getOSDefines()
600 DefineStd(Builder, "unix", Opts); in getOSDefines()
608 if (Opts.C99) in getOSDefines()
612 if (Opts.CPlusPlus) in getOSDefines()
631 void getOSDefines(const LangOptions &Opts, const llvm::Triple &Triple, in getOSDefines() argument
635 void getVisualStudioDefines(const LangOptions &Opts, in getVisualStudioDefines() argument
637 if (Opts.CPlusPlus) { in getVisualStudioDefines()
638 if (Opts.RTTIData) in getVisualStudioDefines()
641 if (Opts.CXXExceptions) in getVisualStudioDefines()
645 if (!Opts.CharIsSigned) in getVisualStudioDefines()
650 if (Opts.POSIXThreads) in getVisualStudioDefines()
653 if (Opts.MSCompatibilityVersion) { in getVisualStudioDefines()
655 Twine(Opts.MSCompatibilityVersion / 100000)); in getVisualStudioDefines()
656 Builder.defineMacro("_MSC_FULL_VER", Twine(Opts.MSCompatibilityVersion)); in getVisualStudioDefines()
660 if (Opts.CPlusPlus11 && Opts.isCompatibleWithMSVC(19)) in getVisualStudioDefines()
664 if (Opts.MicrosoftExt) { in getVisualStudioDefines()
667 if (Opts.CPlusPlus11) { in getVisualStudioDefines()
685 void getOSDefines(const LangOptions &Opts, const llvm::Triple &Triple, in getOSDefines() argument
687 if (Opts.POSIXThreads) in getOSDefines()
689 if (Opts.CPlusPlus) in getOSDefines()
692 DefineStd(Builder, "unix", Opts); in getOSDefines()
856 void getTargetDefines(const LangOptions &Opts,
1063 void PPCTargetInfo::getTargetDefines(const LangOptions &Opts, in getTargetDefines() argument
1101 if (Opts.AltiVec) { in getTargetDefines()
1532 void getTargetDefines(const LangOptions &Opts, in getTargetDefines() argument
1536 if (Opts.CUDAIsDevice) { in getTargetDefines()
1751 void getTargetDefines(const LangOptions &Opts, in getTargetDefines() argument
1754 if (GPU >= GK_SOUTHERN_ISLANDS && Opts.OpenCL) in getTargetDefines()
2185 void getTargetDefines(const LangOptions &Opts,
2934 void X86TargetInfo::getTargetDefines(const LangOptions &Opts, in getTargetDefines() argument
2947 DefineStd(Builder, "i386", Opts); in getTargetDefines()
3207 if (Opts.MicrosoftExt && getTriple().getArch() == llvm::Triple::x86) { in getTargetDefines()
3537 void getTargetDefines(const LangOptions &Opts, in getTargetDefines() argument
3539 WindowsTargetInfo<X86_32TargetInfo>::getTargetDefines(Opts, Builder); in getTargetDefines()
3551 void getTargetDefines(const LangOptions &Opts, in getTargetDefines() argument
3553 WindowsX86_32TargetInfo::getTargetDefines(Opts, Builder); in getTargetDefines()
3554 WindowsX86_32TargetInfo::getVisualStudioDefines(Opts, Builder); in getTargetDefines()
3563 static void addMinGWDefines(const LangOptions &Opts, MacroBuilder &Builder) { in addMinGWDefines() argument
3570 if (Opts.MicrosoftExt) in addMinGWDefines()
3575 if (!Opts.MicrosoftExt) { in addMinGWDefines()
3596 void getTargetDefines(const LangOptions &Opts, in getTargetDefines() argument
3598 WindowsX86_32TargetInfo::getTargetDefines(Opts, Builder); in getTargetDefines()
3599 DefineStd(Builder, "WIN32", Opts); in getTargetDefines()
3600 DefineStd(Builder, "WINNT", Opts); in getTargetDefines()
3602 addMinGWDefines(Opts, Builder); in getTargetDefines()
3616 void getTargetDefines(const LangOptions &Opts, in getTargetDefines() argument
3618 X86_32TargetInfo::getTargetDefines(Opts, Builder); in getTargetDefines()
3622 DefineStd(Builder, "unix", Opts); in getTargetDefines()
3623 if (Opts.CPlusPlus) in getTargetDefines()
3639 void getTargetDefines(const LangOptions &Opts, in getTargetDefines() argument
3641 X86_32TargetInfo::getTargetDefines(Opts, Builder); in getTargetDefines()
3651 void getOSDefines(const LangOptions &Opts, const llvm::Triple &Triple, in getOSDefines() argument
3691 void getTargetDefines(const LangOptions &Opts, in getTargetDefines() argument
3693 X86_32TargetInfo::getTargetDefines(Opts, Builder); in getTargetDefines()
3776 void getTargetDefines(const LangOptions &Opts, in getTargetDefines() argument
3778 WindowsTargetInfo<X86_64TargetInfo>::getTargetDefines(Opts, Builder); in getTargetDefines()
3811 void getTargetDefines(const LangOptions &Opts, in getTargetDefines() argument
3813 WindowsX86_64TargetInfo::getTargetDefines(Opts, Builder); in getTargetDefines()
3814 WindowsX86_64TargetInfo::getVisualStudioDefines(Opts, Builder); in getTargetDefines()
3825 void getTargetDefines(const LangOptions &Opts, in getTargetDefines() argument
3827 WindowsX86_64TargetInfo::getTargetDefines(Opts, Builder); in getTargetDefines()
3828 DefineStd(Builder, "WIN64", Opts); in getTargetDefines()
3830 addMinGWDefines(Opts, Builder); in getTargetDefines()
3833 if (!Opts.SjLjExceptions) in getTargetDefines()
4336 void getTargetDefines(const LangOptions &Opts, in getTargetDefines() argument
4450 Opts.ShortWChar ? "2" : "4"); in getTargetDefines()
4453 Opts.ShortEnums ? "1" : "4"); in getTargetDefines()
4668 void getTargetDefines(const LangOptions &Opts, in getTargetDefines() argument
4671 ARMTargetInfo::getTargetDefines(Opts, Builder); in getTargetDefines()
4679 void getTargetDefines(const LangOptions &Opts, in getTargetDefines() argument
4683 ARMTargetInfo::getTargetDefines(Opts, Builder); in getTargetDefines()
4697 void getVisualStudioDefines(const LangOptions &Opts, in getVisualStudioDefines() argument
4699 WindowsTargetInfo<ARMleTargetInfo>::getVisualStudioDefines(Opts, Builder); in getVisualStudioDefines()
4729 void getTargetDefines(const LangOptions &Opts, in getTargetDefines() argument
4731 WindowsARMTargetInfo::getTargetDefines(Opts, Builder); in getTargetDefines()
4733 if (Opts.MSVCCompat) in getTargetDefines()
4734 WindowsARMTargetInfo::getVisualStudioDefines(Opts, Builder); in getTargetDefines()
4746 void getTargetDefines(const LangOptions &Opts, in getTargetDefines() argument
4748 WindowsARMTargetInfo::getTargetDefines(Opts, Builder); in getTargetDefines()
4749 WindowsARMTargetInfo::getVisualStudioDefines(Opts, Builder); in getTargetDefines()
4756 void getOSDefines(const LangOptions &Opts, const llvm::Triple &Triple, in getOSDefines() argument
4758 getDarwinDefines(Builder, Opts, Triple, PlatformName, PlatformMinVersion); in getOSDefines()
4852 void getTargetDefines(const LangOptions &Opts, in getTargetDefines() argument
4888 if (Opts.FastMath || Opts.FiniteMathOnly) in getTargetDefines()
4891 if (Opts.C99 && !Opts.Freestanding) in getTargetDefines()
4894 Builder.defineMacro("__ARM_SIZEOF_WCHAR_T", Opts.ShortWChar ? "2" : "4"); in getTargetDefines()
4897 Opts.ShortEnums ? "1" : "4"); in getTargetDefines()
5106 void getTargetDefines(const LangOptions &Opts, in getTargetDefines() argument
5109 AArch64TargetInfo::getTargetDefines(Opts, Builder); in getTargetDefines()
5122 void getTargetDefines(const LangOptions &Opts, in getTargetDefines() argument
5127 AArch64TargetInfo::getTargetDefines(Opts, Builder); in getTargetDefines()
5133 void getOSDefines(const LangOptions &Opts, const llvm::Triple &Triple, in getOSDefines() argument
5143 getDarwinDefines(Builder, Opts, Triple, PlatformName, PlatformMinVersion); in getOSDefines()
5191 void getTargetDefines(const LangOptions &Opts,
5225 void HexagonTargetInfo::getTargetDefines(const LangOptions &Opts, in getTargetDefines() argument
5238 if(Opts.HexagonQdsp6Compat) { in getTargetDefines()
5246 if(Opts.HexagonQdsp6Compat) { in getTargetDefines()
5254 if(Opts.HexagonQdsp6Compat) { in getTargetDefines()
5262 if(Opts.HexagonQdsp6Compat) { in getTargetDefines()
5270 if(Opts.HexagonQdsp6Compat) { in getTargetDefines()
5329 void getTargetDefines(const LangOptions &Opts, in getTargetDefines() argument
5331 DefineStd(Builder, "sparc", Opts); in getTargetDefines()
5438 void getTargetDefines(const LangOptions &Opts, in getTargetDefines() argument
5440 SparcTargetInfo::getTargetDefines(Opts, Builder); in getTargetDefines()
5469 void getTargetDefines(const LangOptions &Opts, in getTargetDefines() argument
5471 SparcTargetInfo::getTargetDefines(Opts, Builder); in getTargetDefines()
5530 void getTargetDefines(const LangOptions &Opts, in getTargetDefines() argument
5661 void getTargetDefines(const LangOptions &Opts, in getTargetDefines() argument
5767 void getTargetDefines(const LangOptions &Opts, in getTargetDefines() argument
5769 DefineStd(Builder, "tce", Opts); in getTargetDefines()
5869 void getTargetDefines(const LangOptions &Opts, in getTargetDefines() argument
5873 if (Opts.GNUMode) in getTargetDefines()
6128 void getTargetDefines(const LangOptions &Opts, in getTargetDefines() argument
6130 MipsTargetInfoBase::getTargetDefines(Opts, Builder); in getTargetDefines()
6206 void getTargetDefines(const LangOptions &Opts, in getTargetDefines() argument
6208 DefineStd(Builder, "MIPSEB", Opts); in getTargetDefines()
6210 Mips32TargetInfoBase::getTargetDefines(Opts, Builder); in getTargetDefines()
6224 void getTargetDefines(const LangOptions &Opts, in getTargetDefines() argument
6226 DefineStd(Builder, "MIPSEL", Opts); in getTargetDefines()
6228 Mips32TargetInfoBase::getTargetDefines(Opts, Builder); in getTargetDefines()
6279 void getTargetDefines(const LangOptions &Opts, in getTargetDefines() argument
6281 MipsTargetInfoBase::getTargetDefines(Opts, Builder); in getTargetDefines()
6367 void getTargetDefines(const LangOptions &Opts, in getTargetDefines() argument
6369 DefineStd(Builder, "MIPSEB", Opts); in getTargetDefines()
6371 Mips64TargetInfoBase::getTargetDefines(Opts, Builder); in getTargetDefines()
6388 void getTargetDefines(const LangOptions &Opts, in getTargetDefines() argument
6390 DefineStd(Builder, "MIPSEL", Opts); in getTargetDefines()
6392 Mips64TargetInfoBase::getTargetDefines(Opts, Builder); in getTargetDefines()
6418 void getArchDefines(const LangOptions &Opts, MacroBuilder &Builder) const { in getArchDefines() argument
6422 void getTargetDefines(const LangOptions &Opts, in getTargetDefines() argument
6424 getArchDefines(Opts, Builder); in getTargetDefines()
6474 void getTargetDefines(const LangOptions &Opts, in getTargetDefines() argument
6476 DefineStd(Builder, "unix", Opts); in getTargetDefines()
6540 void getTargetDefines(const LangOptions &Opts, in getTargetDefines() argument
6542 DefineStd(Builder, "SPIR", Opts); in getTargetDefines()
6587 void getTargetDefines(const LangOptions &Opts, in getTargetDefines() argument
6589 DefineStd(Builder, "SPIR32", Opts); in getTargetDefines()
6602 void getTargetDefines(const LangOptions &Opts, in getTargetDefines() argument
6604 DefineStd(Builder, "SPIR64", Opts); in getTargetDefines()
6626 void getTargetDefines(const LangOptions &Opts, in getTargetDefines() argument
7089 const std::shared_ptr<TargetOptions> &Opts) { in CreateTargetInfo() argument
7090 llvm::Triple Triple(Opts->Triple); in CreateTargetInfo()
7098 Target->TargetOpts = Opts; in CreateTargetInfo()
7101 if (!Opts->CPU.empty() && !Target->setCPU(Opts->CPU)) { in CreateTargetInfo()
7102 Diags.Report(diag::err_target_unknown_cpu) << Opts->CPU; in CreateTargetInfo()
7107 if (!Opts->ABI.empty() && !Target->setABI(Opts->ABI)) { in CreateTargetInfo()
7108 Diags.Report(diag::err_target_unknown_abi) << Opts->ABI; in CreateTargetInfo()
7113 if (!Opts->FPMath.empty() && !Target->setFPMath(Opts->FPMath)) { in CreateTargetInfo()
7114 Diags.Report(diag::err_target_unknown_fpmath) << Opts->FPMath; in CreateTargetInfo()
7124 for (unsigned I = 0, N = Opts->FeaturesAsWritten.size(); in CreateTargetInfo()
7126 const char *Name = Opts->FeaturesAsWritten[I].c_str(); in CreateTargetInfo()
7136 Opts->Features.clear(); in CreateTargetInfo()
7139 Opts->Features.push_back((it->second ? "+" : "-") + it->first().str()); in CreateTargetInfo()
7140 if (!Target->handleTargetFeatures(Opts->Features, Diags)) in CreateTargetInfo()