Home
last modified time | relevance | path

Searched refs:TargetOpts (Results 1 – 25 of 28) sorted by relevance

12

/freebsd/contrib/llvm-project/clang/lib/Basic/Targets/
H A DM68k.cpp29 : TargetInfo(Triple), TargetOpts(Opts) { in M68kTargetInfo()
112 if (TargetOpts.FeatureMap.lookup("isa-68881") || in getTargetDefines()
113 TargetOpts.FeatureMap.lookup("isa-68882")) in getTargetDefines()
H A DM68k.h40 const TargetOptions &TargetOpts; variable
/freebsd/contrib/llvm-project/clang/lib/Interpreter/
H A DDeviceOffload.cpp33 TargetOpts(DeviceInstance.getTargetOpts()) { in IncrementalCUDADeviceParser()
36 StringRef Arch = TargetOpts.CPU; in IncrementalCUDADeviceParser()
56 PTU.TheModule->getTargetTriple(), TargetOpts.CPU, "", TO, in GeneratePTX()
H A DDeviceOffload.h49 const TargetOptions &TargetOpts; variable
/freebsd/contrib/llvm-project/clang/tools/driver/
H A Dcc1_main.cpp169 static int PrintEnabledExtensions(const TargetOptions& TargetOpts) { in PrintEnabledExtensions() argument
170 llvm::Triple Triple(TargetOpts.Triple); in PrintEnabledExtensions()
183 std::string FeaturesStr = llvm::join(TargetOpts.FeaturesAsWritten, ","); in PrintEnabledExtensions()
185 TheTarget->createTargetMachine(Triple, TargetOpts.CPU, FeaturesStr, in PrintEnabledExtensions()
/freebsd/contrib/llvm-project/clang/lib/CodeGen/
H A DCodeGenAction.cpp118 TargetOpts(CI.getTargetOpts()), LangOpts(CI.getLangOpts()), in BackendConsumer()
209 F, CodeGenOpts, LangOpts, TargetOpts, LM.Internalize); in LinkInModules()
259 Ctx.setDefaultTargetCPU(TargetOpts.CPU); in HandleTranslationUnit()
260 Ctx.setDefaultTargetFeatures(llvm::join(TargetOpts.Features, ",")); in HandleTranslationUnit()
1135 const TargetOptions &TargetOpts = CI.getTargetOpts(); in ExecuteAction() local
1136 if (TheModule->getTargetTriple().str() != TargetOpts.Triple) { in ExecuteAction()
1138 << TargetOpts.Triple; in ExecuteAction()
1139 TheModule->setTargetTriple(Triple(TargetOpts.Triple)); in ExecuteAction()
1171 Ctx.setDefaultTargetCPU(TargetOpts.CPU); in ExecuteAction()
1172 Ctx.setDefaultTargetFeatures(llvm::join(TargetOpts.Features, ",")); in ExecuteAction()
H A DBackendUtil.cpp144 const clang::TargetOptions &TargetOpts; member in __anon3496e3440111::EmitAssemblyHelper
217 TargetOpts(CI.getTargetOpts()), LangOpts(CI.getLangOpts()), in EmitAssemblyHelper()
363 const auto &TargetOpts = CI.getTargetOpts(); in initTargetOptions() local
408 Options.EABIVersion = TargetOpts.EABIVersion; in initTargetOptions()
515 Options.MCOptions.ABIName = TargetOpts.ABI; in initTargetOptions()
603 llvm::join(TargetOpts.Features.begin(), TargetOpts.Features.end(), ","); in CreateTargetMachine()
613 TM.reset(TheTarget->createTargetMachine(Triple, TargetOpts.CPU, FeaturesStr, in CreateTargetMachine()
H A DObjectFilePCHContainerWriter.cpp50 const TargetOptions TargetOpts; member in __anon9aef00700111::PCHContainerGenerator
152 TargetOpts(CI.getTargetOpts()), LangOpts(CI.getLangOpts()), in PCHContainerGenerator()
H A DBackendConsumer.h34 const TargetOptions &TargetOpts; variable
H A DCGHLSLRuntime.cpp298 auto &TargetOpts = CGM.getTarget().getTargetOpts(); in finishCodeGen() local
304 addDxilValVersion(TargetOpts.DxilValidatorVersion, M); in finishCodeGen()
H A DCGCall.h430 const TargetOptions &TargetOpts,
H A DCGCall.cpp2119 const TargetOptions &TargetOpts) { in overrideFunctionFeaturesWithTargetFeatures() argument
2124 MergedFeatures.reserve(TargetOpts.Features.size()); in overrideFunctionFeaturesWithTargetFeatures()
2140 AddUnmergedFeatures(TargetOpts.Features); in overrideFunctionFeaturesWithTargetFeatures()
2150 const LangOptions &LangOpts, const TargetOptions &TargetOpts, in mergeDefaultFunctionDefinitionAttributes() argument
2156 if (!TargetOpts.CPU.empty()) in mergeDefaultFunctionDefinitionAttributes()
2157 FuncAttrs.addAttribute("target-cpu", TargetOpts.CPU); in mergeDefaultFunctionDefinitionAttributes()
2158 if (!TargetOpts.TuneCPU.empty()) in mergeDefaultFunctionDefinitionAttributes()
2159 FuncAttrs.addAttribute("tune-cpu", TargetOpts.TuneCPU); in mergeDefaultFunctionDefinitionAttributes()
2206 overrideFunctionFeaturesWithTargetFeatures(FuncAttrs, F, TargetOpts); in mergeDefaultFunctionDefinitionAttributes()
/freebsd/contrib/llvm-project/clang/include/clang/Frontend/
H A DCompilerInvocation.h80 std::shared_ptr<TargetOptions> TargetOpts; variable
132 const TargetOptions &getTargetOpts() const { return *TargetOpts; } in getTargetOpts()
250 TargetOptions &getTargetOpts() { return *TargetOpts; } in getTargetOpts()
H A DASTUnit.h123 std::shared_ptr<TargetOptions> TargetOpts; variable
/freebsd/contrib/llvm-project/clang/lib/Frontend/
H A DFrontendActions.cpp671 bool ReadTargetOptions(const TargetOptions &TargetOpts, in ReadTargetOptions() argument
675 Out.indent(4) << " Triple: " << TargetOpts.Triple << "\n"; in ReadTargetOptions()
676 Out.indent(4) << " CPU: " << TargetOpts.CPU << "\n"; in ReadTargetOptions()
677 Out.indent(4) << " TuneCPU: " << TargetOpts.TuneCPU << "\n"; in ReadTargetOptions()
678 Out.indent(4) << " ABI: " << TargetOpts.ABI << "\n"; in ReadTargetOptions()
680 if (!TargetOpts.FeaturesAsWritten.empty()) { in ReadTargetOptions()
682 for (unsigned I = 0, N = TargetOpts.FeaturesAsWritten.size(); in ReadTargetOptions()
684 Out.indent(6) << TargetOpts.FeaturesAsWritten[I] << "\n"; in ReadTargetOptions()
H A DASTUnit.cpp519 std::shared_ptr<TargetOptions> &TargetOpts; member in __anone37b80710211::ASTInfoCollector
529 std::shared_ptr<TargetOptions> &TargetOpts, in ASTInfoCollector() argument
532 LangOpt(LangOpt), TargetOpts(TargetOpts), Target(Target), in ASTInfoCollector()
605 bool ReadTargetOptions(const TargetOptions &TargetOpts, in ReadTargetOptions() argument
612 this->TargetOpts = std::make_shared<TargetOptions>(TargetOpts); in ReadTargetOptions()
614 TargetInfo::CreateTargetInfo(PP.getDiagnostics(), *this->TargetOpts); in ReadTargetOptions()
868 AST->TargetOpts, AST->Target, Counter)); in LoadFromASTFile()
H A DCompilerInvocation.cpp127 TargetOpts(std::make_shared<TargetOptions>()), in CompilerInvocationBase()
144 TargetOpts = make_shared_copy(X.getTargetOpts()); in deep_copy_assign()
164 TargetOpts = X.TargetOpts; in shallow_copy_assign()
203 return ensureOwned(TargetOpts); in getMutTargetOpts()
576 TargetOptions &TargetOpts = Invocation.getTargetOpts(); in FixupInvocation() local
590 llvm::Triple T(TargetOpts.Triple); in FixupInvocation()
593 CodeGenOpts.CodeModel = TargetOpts.CodeModel; in FixupInvocation()
594 CodeGenOpts.LargeDataThreshold = TargetOpts.LargeDataThreshold; in FixupInvocation()
5059 const TargetOptions *TargetOpts = &Opts; in GenerateTargetArgs() local
5077 TargetOptions *TargetOpts = &Opts; in ParseTargetArgs() local
/freebsd/contrib/llvm-project/llvm/lib/LTO/
H A DLTOBackend.cpp222 TargetOptions TargetOpts = Conf.Options; in createTargetMachine() local
223 if (TargetOpts.MCOptions.ABIName.empty()) { in createTargetMachine()
224 TargetOpts.MCOptions.ABIName = M.getTargetABIFromMD(); in createTargetMachine()
228 TheTriple, Conf.CPU, Features.getString(), TargetOpts, RelocModel, in createTargetMachine()
/freebsd/contrib/llvm-project/clang/include/clang/Basic/
H A DTargetInfo.h227 TargetOptions *TargetOpts; variable
323 assert(TargetOpts && "Missing target options"); in getTargetOpts()
324 return *TargetOpts; in getTargetOpts()
/freebsd/contrib/llvm-project/clang/include/clang/Serialization/
H A DASTReader.h144 virtual bool ReadTargetOptions(const TargetOptions &TargetOpts, in ReadTargetOptions() argument
284 bool ReadTargetOptions(const TargetOptions &TargetOpts,
325 bool ReadTargetOptions(const TargetOptions &TargetOpts,
1997 const TargetOptions &TargetOpts,
/freebsd/contrib/llvm-project/clang/lib/Serialization/
H A DASTReader.cpp179 const TargetOptions &TargetOpts, StringRef ModuleFilename, bool Complain, in ReadTargetOptions() argument
181 return First->ReadTargetOptions(TargetOpts, ModuleFilename, Complain, in ReadTargetOptions()
183 Second->ReadTargetOptions(TargetOpts, ModuleFilename, Complain, in ReadTargetOptions()
392 static bool checkTargetOptions(const TargetOptions &TargetOpts, in checkTargetOptions() argument
398 if (TargetOpts.Field != ExistingTargetOpts.Field) { \ in checkTargetOptions()
401 << ModuleFilename << Name << TargetOpts.Field \ in checkTargetOptions()
424 SmallVector<StringRef, 4> ReadFeatures(TargetOpts.FeaturesAsWritten.begin(), in checkTargetOptions()
425 TargetOpts.FeaturesAsWritten.end()); in checkTargetOptions()
465 bool PCHValidator::ReadTargetOptions(const TargetOptions &TargetOpts, in ReadTargetOptions() argument
469 return checkTargetOptions(TargetOpts, ExistingTargetOpts, ModuleFilename, in ReadTargetOptions()
[all …]
H A DASTWriter.cpp1652 const TargetOptions &TargetOpts = Target.getTargetOpts(); in WriteControlBlock() local
1653 AddString(TargetOpts.Triple, Record); in WriteControlBlock()
1654 AddString(TargetOpts.CPU, Record); in WriteControlBlock()
1655 AddString(TargetOpts.TuneCPU, Record); in WriteControlBlock()
1656 AddString(TargetOpts.ABI, Record); in WriteControlBlock()
1657 Record.push_back(TargetOpts.FeaturesAsWritten.size()); in WriteControlBlock()
1658 for (unsigned I = 0, N = TargetOpts.FeaturesAsWritten.size(); I != N; ++I) { in WriteControlBlock()
1659 AddString(TargetOpts.FeaturesAsWritten[I], Record); in WriteControlBlock()
1661 Record.push_back(TargetOpts.Features.size()); in WriteControlBlock()
1662 for (unsigned I = 0, N = TargetOpts.Features.size(); I != N; ++I) { in WriteControlBlock()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/MC/
H A DMCContext.cpp68 const SourceMgr *mgr, MCTargetOptions const *TargetOpts, in MCContext() argument
75 AutoReset(DoAutoReset), TargetOptions(TargetOpts) { in MCContext()
/freebsd/contrib/llvm-project/llvm/include/llvm/MC/
H A DMCContext.h388 MCTargetOptions const *TargetOpts = nullptr,
/freebsd/contrib/llvm-project/clang/lib/Basic/
H A DTargets.cpp801 Target->TargetOpts = Opts; in CreateTargetInfo()

12