Home
last modified time | relevance | path

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

12

/llvm-project-15.0.7/clang/unittests/Lex/
H A DPPMemoryAllocationsTest.cpp32 SourceMgr(Diags, FileMgr), TargetOpts(new TargetOptions) { in PPMemoryAllocationsTest()
33 TargetOpts->Triple = "x86_64-apple-darwin11.1.0"; in PPMemoryAllocationsTest()
34 Target = TargetInfo::CreateTargetInfo(Diags, TargetOpts); in PPMemoryAllocationsTest()
43 std::shared_ptr<TargetOptions> TargetOpts; member in __anon161746100111::PPMemoryAllocationsTest
H A DPPConditionalDirectiveRecordTest.cpp36 TargetOpts(new TargetOptions) in PPConditionalDirectiveRecordTest()
38 TargetOpts->Triple = "x86_64-apple-darwin11.1.0"; in PPConditionalDirectiveRecordTest()
39 Target = TargetInfo::CreateTargetInfo(Diags, TargetOpts); in PPConditionalDirectiveRecordTest()
48 std::shared_ptr<TargetOptions> TargetOpts; member in __anon1245fdf00111::PPConditionalDirectiveRecordTest
H A DHeaderSearchTest.cpp33 SourceMgr(Diags, FileMgr), TargetOpts(new TargetOptions), in HeaderSearchTest()
36 TargetOpts->Triple = "x86_64-apple-darwin11.1.0"; in HeaderSearchTest()
37 Target = TargetInfo::CreateTargetInfo(Diags, TargetOpts); in HeaderSearchTest()
81 std::shared_ptr<TargetOptions> TargetOpts; member in clang::__anonafc1b91d0111::HeaderSearchTest
H A DPPCallbacksTest.cpp137 SourceMgr(Diags, FileMgr), TargetOpts(new TargetOptions()) { in PPCallbacksTest()
138 TargetOpts->Triple = "x86_64-apple-darwin11.1.0"; in PPCallbacksTest()
139 Target = TargetInfo::CreateTargetInfo(Diags, TargetOpts); in PPCallbacksTest()
149 std::shared_ptr<TargetOptions> TargetOpts; member in __anonec3cc9fe0111::PPCallbacksTest
H A DLexerTest.cpp45 TargetOpts(new TargetOptions) in LexerTest()
47 TargetOpts->Triple = "x86_64-apple-darwin11.1.0"; in LexerTest()
48 Target = TargetInfo::CreateTargetInfo(Diags, TargetOpts); in LexerTest()
113 std::shared_ptr<TargetOptions> TargetOpts; member in __anon134ba2be0111::LexerTest
/llvm-project-15.0.7/clang/lib/CodeGen/
H A DCGHLSLRuntime.cpp48 auto &TargetOpts = CGM.getTarget().getTargetOpts(); in finishCodeGen() local
51 addDxilValVersion(TargetOpts.DxilValidatorVersion, M); in finishCodeGen()
H A DCodeGenAction.cpp113 const TargetOptions &TargetOpts; member in clang::BackendConsumer
153 const TargetOptions &TargetOpts, in BackendConsumer() argument
159 CodeGenOpts(CodeGenOpts), TargetOpts(TargetOpts), LangOpts(LangOpts), in BackendConsumer()
179 const TargetOptions &TargetOpts, in BackendConsumer() argument
184 CodeGenOpts(CodeGenOpts), TargetOpts(TargetOpts), LangOpts(LangOpts), in BackendConsumer()
381 EmitBackendOutput(Diags, HeaderSearchOpts, CodeGenOpts, TargetOpts, in HandleTranslationUnit()
1168 const TargetOptions &TargetOpts = CI.getTargetOpts(); in ExecuteAction() local
1169 if (TheModule->getTargetTriple() != TargetOpts.Triple) { in ExecuteAction()
1171 << TargetOpts.Triple; in ExecuteAction()
1172 TheModule->setTargetTriple(TargetOpts.Triple); in ExecuteAction()
[all …]
H A DObjectFilePCHContainerOperations.cpp52 const TargetOptions TargetOpts; member in __anon8fee51a70111::PCHContainerGenerator
151 TargetOpts(CI.getTargetOpts()), LangOpts(CI.getLangOpts()), in PCHContainerGenerator()
321 Diags, HeaderSearchOpts, CodeGenOpts, TargetOpts, LangOpts, in HandleTranslationUnit()
329 clang::EmitBackendOutput(Diags, HeaderSearchOpts, CodeGenOpts, TargetOpts, in HandleTranslationUnit()
H A DBackendUtil.cpp112 const clang::TargetOptions &TargetOpts; member in __anond17872740111::EmitAssemblyHelper
181 TargetOpts(TOpts), LangOpts(LOpts), TheModule(M), in EmitAssemblyHelper()
331 const clang::TargetOptions &TargetOpts, in initTargetOptions() argument
380 Options.EABIVersion = TargetOpts.EABIVersion; in initTargetOptions()
471 Options.MCOptions.ABIName = TargetOpts.ABI; in initTargetOptions()
552 llvm::join(TargetOpts.Features.begin(), TargetOpts.Features.end(), ","); in CreateTargetMachine()
557 if (!initTargetOptions(Diags, Options, CodeGenOpts, TargetOpts, LangOpts, in CreateTargetMachine()
560 TM.reset(TheTarget->createTargetMachine(Triple, TargetOpts.CPU, FeaturesStr, in CreateTargetMachine()
/llvm-project-15.0.7/clang/include/clang/Frontend/
H A DCompilerInvocation.h83 std::shared_ptr<TargetOptions> TargetOpts; variable
107 TargetOptions &getTargetOpts() { return *TargetOpts.get(); } in getTargetOpts()
108 const TargetOptions &getTargetOpts() const { return *TargetOpts.get(); } in getTargetOpts()
/llvm-project-15.0.7/clang/unittests/Analysis/
H A DMacroExpansionContextTest.cpp40 SourceMgr(Diags, FileMgr), TargetOpts(new TargetOptions()) { in MacroExpansionContextTest()
41 TargetOpts->Triple = "x86_64-pc-linux-unknown"; in MacroExpansionContextTest()
42 Target = TargetInfo::CreateTargetInfo(Diags, TargetOpts); in MacroExpansionContextTest()
53 std::shared_ptr<TargetOptions> TargetOpts; member in clang::analysis::__anon13cf8a650111::MacroExpansionContextTest
/llvm-project-15.0.7/clang/lib/Frontend/
H A DFrontendActions.cpp672 bool ReadTargetOptions(const TargetOptions &TargetOpts, bool Complain, 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.cpp523 std::shared_ptr<TargetOptions> &TargetOpts; member in __anon6243dda10211::ASTInfoCollector
532 std::shared_ptr<TargetOptions> &TargetOpts, in ASTInfoCollector() argument
535 LangOpt(LangOpt), TargetOpts(TargetOpts), Target(Target), in ASTInfoCollector()
563 bool ReadTargetOptions(const TargetOptions &TargetOpts, bool Complain, in ReadTargetOptions() argument
569 this->TargetOpts = std::make_shared<TargetOptions>(TargetOpts); in ReadTargetOptions()
571 TargetInfo::CreateTargetInfo(PP.getDiagnostics(), this->TargetOpts); in ReadTargetOptions()
823 AST->TargetOpts, AST->Target, Counter)); in LoadFromASTFile()
H A DCompilerInvocation.cpp138 TargetOpts(new TargetOptions(X.getTargetOpts())), in CompilerInvocationRefBase()
150 TargetOpts.swap(X.TargetOpts); in operator =()
479 llvm::Triple T(TargetOpts.Triple); in FixupInvocation()
482 CodeGenOpts.CodeModel = TargetOpts.CodeModel; in FixupInvocation()
4371 const TargetOptions *TargetOpts = &Opts; in GenerateTargetArgs() local
4395 TargetOptions *TargetOpts = &Opts; in ParseTargetArgs() local
4579 HBuilder.add(TargetOpts->Triple, TargetOpts->CPU, TargetOpts->TuneCPU, in getModuleHash()
4580 TargetOpts->ABI); in getModuleHash()
4581 HBuilder.addRange(TargetOpts->FeaturesAsWritten); in getModuleHash()
4649 llvm::Triple T(TargetOpts->Triple); in generateCC1CommandLine()
[all …]
H A DChainedIncludesSource.cpp153 Clang->getDiagnostics(), Clang->getInvocation().TargetOpts)); in createChainedIncludesSource()
/llvm-project-15.0.7/clang-tools-extra/clangd/
H A DQueryDriverDatabase.cpp68 std::shared_ptr<TargetOptions> TargetOpts(new TargetOptions); in isValidTarget() local
69 TargetOpts->Triple = Triple.str(); in isValidTarget()
73 TargetInfo::CreateTargetInfo(Diags, TargetOpts); in isValidTarget()
/llvm-project-15.0.7/clang/unittests/Basic/
H A DSourceManagerTest.cpp39 TargetOpts(new TargetOptions) { in SourceManagerTest()
40 TargetOpts->Triple = "x86_64-apple-darwin11.1.0"; in SourceManagerTest()
41 Target = TargetInfo::CreateTargetInfo(Diags, TargetOpts); in SourceManagerTest()
50 std::shared_ptr<TargetOptions> TargetOpts; member in __anon0851c1e30111::SourceManagerTest
/llvm-project-15.0.7/clang/unittests/Frontend/
H A DUtilsTest.cpp36 EXPECT_THAT(CI->TargetOpts->Triple, testing::StartsWith("i386-")); in TEST()
/llvm-project-15.0.7/clang/include/clang/Basic/
H A DTargetInfo.h192 std::shared_ptr<TargetOptions> TargetOpts; variable
267 assert(TargetOpts && "Missing target options"); in getTargetOpts()
268 return *TargetOpts; in getTargetOpts()
1230 TargetOptions &TargetOpts) const {} in adjustTargetOptions() argument
/llvm-project-15.0.7/clang-tools-extra/modularize/
H A DModularizeUtilities.h207 std::shared_ptr<clang::TargetOptions> TargetOpts; variable
H A DModularizeUtilities.cpp55 TargetOpts(new ModuleMapTargetOptions()), in ModularizeUtilities()
56 Target(TargetInfo::CreateTargetInfo(*Diagnostics, TargetOpts)), in ModularizeUtilities()
/llvm-project-15.0.7/clang/lib/Interpreter/
H A DInterpreter.cpp107 Clang->getDiagnostics(), Clang->getInvocation().TargetOpts)); in CreateCI()
/llvm-project-15.0.7/clang/include/clang/Serialization/
H A DASTReader.h141 virtual bool ReadTargetOptions(const TargetOptions &TargetOpts, bool Complain, in ReadTargetOptions() argument
248 bool ReadTargetOptions(const TargetOptions &TargetOpts, bool Complain,
285 bool ReadTargetOptions(const TargetOptions &TargetOpts, bool Complain,
1739 const TargetOptions &TargetOpts,
/llvm-project-15.0.7/polly/lib/External/isl/interface/
H A Dextract_interface.cc322 shared_ptr<TargetOptions> TO = Clang->getInvocation().TargetOpts; in create_target_info()
/llvm-project-15.0.7/llvm/lib/MC/
H A DMCContext.cpp75 const SourceMgr *mgr, MCTargetOptions const *TargetOpts, in MCContext() argument
82 AutoReset(DoAutoReset), TargetOptions(TargetOpts) { in MCContext()

12