Home
last modified time | relevance | path

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

/minix3/external/bsd/llvm/dist/clang/unittests/Lex/
H A DPPConditionalDirectiveRecordTest.cpp38 TargetOpts(new TargetOptions) in PPConditionalDirectiveRecordTest()
40 TargetOpts->Triple = "x86_64-apple-darwin11.1.0"; in PPConditionalDirectiveRecordTest()
41 Target = TargetInfo::CreateTargetInfo(Diags, TargetOpts); in PPConditionalDirectiveRecordTest()
50 std::shared_ptr<TargetOptions> TargetOpts; member in __anon9dc4e5930111::PPConditionalDirectiveRecordTest
H A DPPCallbacksTest.cpp120 SourceMgr(Diags, FileMgr), TargetOpts(new TargetOptions()) { in PPCallbacksTest()
121 TargetOpts->Triple = "x86_64-apple-darwin11.1.0"; in PPCallbacksTest()
122 Target = TargetInfo::CreateTargetInfo(Diags, TargetOpts); in PPCallbacksTest()
132 std::shared_ptr<TargetOptions> TargetOpts; member in __anon1843a3410111::PPCallbacksTest
H A DLexerTest.cpp57 TargetOpts(new TargetOptions) in LexerTest()
59 TargetOpts->Triple = "x86_64-apple-darwin11.1.0"; in LexerTest()
60 Target = TargetInfo::CreateTargetInfo(Diags, TargetOpts); in LexerTest()
111 std::shared_ptr<TargetOptions> TargetOpts; member in __anon3dc585c10111::LexerTest
/minix3/external/bsd/llvm/dist/clang/include/clang/Frontend/
H A DCompilerInvocation.h60 std::shared_ptr<TargetOptions> TargetOpts; variable
79 TargetOptions &getTargetOpts() { return *TargetOpts.get(); } in getTargetOpts()
81 return *TargetOpts.get(); in getTargetOpts()
H A DASTUnit.h94 std::shared_ptr<TargetOptions> TargetOpts; variable
/minix3/external/bsd/llvm/dist/clang/lib/CodeGen/
H A DCodeGenAction.cpp47 const TargetOptions &TargetOpts; member in clang::BackendConsumer
67 TargetOpts(targetopts), LangOpts(langopts), AsmOutStream(OS), in BackendConsumer()
175 EmitBackendOutput(Diags, CodeGenOpts, TargetOpts, LangOpts, in HandleTranslationUnit()
711 const TargetOptions &TargetOpts = CI.getTargetOpts(); in ExecuteAction() local
712 if (TheModule->getTargetTriple() != TargetOpts.Triple) { in ExecuteAction()
717 CI.getDiagnostics().Report(SourceLocation(), DiagID) << TargetOpts.Triple; in ExecuteAction()
718 TheModule->setTargetTriple(TargetOpts.Triple); in ExecuteAction()
721 EmitBackendOutput(CI.getDiagnostics(), CI.getCodeGenOpts(), TargetOpts, in ExecuteAction()
H A DBackendUtil.cpp52 const clang::TargetOptions &TargetOpts; member in __anonfbf255770111::EmitAssemblyHelper
116 : Diags(_Diags), CodeGenOpts(CGOpts), TargetOpts(TOpts), LangOpts(LOpts), in EmitAssemblyHelper()
435 if (TargetOpts.Features.size()) { in CreateTargetMachine()
438 it = TargetOpts.Features.begin(), in CreateTargetMachine()
439 ie = TargetOpts.Features.end(); it != ie; ++it) in CreateTargetMachine()
529 Options.MCOptions.ABIName = TargetOpts.ABI; in CreateTargetMachine()
531 TargetMachine *TM = TheTarget->createTargetMachine(Triple, TargetOpts.CPU, in CreateTargetMachine()
/minix3/external/bsd/llvm/dist/clang/lib/Frontend/
H A DFrontendActions.cpp465 bool ReadTargetOptions(const TargetOptions &TargetOpts, in ReadTargetOptions() argument
468 Out.indent(4) << " Triple: " << TargetOpts.Triple << "\n"; in ReadTargetOptions()
469 Out.indent(4) << " CPU: " << TargetOpts.CPU << "\n"; in ReadTargetOptions()
470 Out.indent(4) << " ABI: " << TargetOpts.ABI << "\n"; in ReadTargetOptions()
472 if (!TargetOpts.FeaturesAsWritten.empty()) { in ReadTargetOptions()
474 for (unsigned I = 0, N = TargetOpts.FeaturesAsWritten.size(); in ReadTargetOptions()
476 Out.indent(6) << TargetOpts.FeaturesAsWritten[I] << "\n"; in ReadTargetOptions()
H A DASTUnit.cpp505 std::shared_ptr<TargetOptions> &TargetOpts; member in __anonf211e7840211::ASTInfoCollector
512 std::shared_ptr<TargetOptions> &TargetOpts, in ASTInfoCollector() argument
514 : PP(PP), Context(Context), LangOpt(LangOpt), TargetOpts(TargetOpts), in ASTInfoCollector()
529 bool ReadTargetOptions(const TargetOptions &TargetOpts, in ReadTargetOptions() argument
535 this->TargetOpts = std::make_shared<TargetOptions>(TargetOpts); in ReadTargetOptions()
537 TargetInfo::CreateTargetInfo(PP.getDiagnostics(), this->TargetOpts); in ReadTargetOptions()
727 *AST->PP, Context, AST->ASTFileLangOpts, AST->TargetOpts, AST->Target, in LoadFromASTFile()
1056 Clang->getDiagnostics(), Clang->getInvocation().TargetOpts)); in Parse()
1521 Clang->getDiagnostics(), Clang->getInvocation().TargetOpts)); in getMainBufferWithPrecompiledPreamble()
1782 Clang->getDiagnostics(), Clang->getInvocation().TargetOpts)); in LoadFromCompilerInvocationAction()
[all …]
H A DCompilerInvocation.cpp51 : LangOpts(new LangOptions()), TargetOpts(new TargetOptions()), in CompilerInvocationBase()
59 TargetOpts(new TargetOptions(X.getTargetOpts())), in CompilerInvocationBase()
347 const TargetOptions &TargetOpts) { in ParseCodeGenArgs() argument
379 if (llvm::Triple(TargetOpts.Triple).isOSDarwin() || in ParseCodeGenArgs()
380 llvm::Triple(TargetOpts.Triple).isOSFreeBSD()) in ParseCodeGenArgs()
1958 code = hash_combine(code, TargetOpts->Triple, TargetOpts->CPU, in getModuleHash()
1959 TargetOpts->ABI); in getModuleHash()
1960 for (unsigned i = 0, n = TargetOpts->FeaturesAsWritten.size(); i != n; ++i) in getModuleHash()
1961 code = hash_combine(code, TargetOpts->FeaturesAsWritten[i]); in getModuleHash()
H A DChainedIncludesSource.cpp151 Clang->getDiagnostics(), Clang->getInvocation().TargetOpts)); in createChainedIncludesSource()
H A DCompilerInstance.cpp778 getInvocation().TargetOpts)); in ExecuteAction()
/minix3/external/bsd/llvm/dist/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 __anon22d984a60111::SourceManagerTest
/minix3/external/bsd/llvm/dist/clang/include/clang/Basic/
H A DTargetInfo.h50 std::shared_ptr<TargetOptions> TargetOpts; variable
105 assert(TargetOpts && "Missing target options"); in getTargetOpts()
106 return *TargetOpts; in getTargetOpts()
/minix3/external/bsd/llvm/dist/clang/include/clang/Serialization/
H A DASTReader.h127 virtual bool ReadTargetOptions(const TargetOptions &TargetOpts, in ReadTargetOptions() argument
225 bool ReadTargetOptions(const TargetOptions &TargetOpts,
258 bool ReadTargetOptions(const TargetOptions &TargetOpts,
1520 const TargetOptions &TargetOpts,
/minix3/external/bsd/llvm/dist/clang/lib/Serialization/
H A DASTReader.cpp93 ChainedASTReaderListener::ReadTargetOptions(const TargetOptions &TargetOpts, in ReadTargetOptions() argument
95 return First->ReadTargetOptions(TargetOpts, Complain) || in ReadTargetOptions()
96 Second->ReadTargetOptions(TargetOpts, Complain); in ReadTargetOptions()
230 static bool checkTargetOptions(const TargetOptions &TargetOpts, in checkTargetOptions() argument
234 if (TargetOpts.Field != ExistingTargetOpts.Field) { \ in checkTargetOptions()
237 << Name << TargetOpts.Field << ExistingTargetOpts.Field; \ in checkTargetOptions()
250 SmallVector<StringRef, 4> ReadFeatures(TargetOpts.FeaturesAsWritten.begin(), in checkTargetOptions()
251 TargetOpts.FeaturesAsWritten.end()); in checkTargetOptions()
304 bool PCHValidator::ReadTargetOptions(const TargetOptions &TargetOpts, in ReadTargetOptions() argument
307 return checkTargetOptions(TargetOpts, ExistingTargetOpts, in ReadTargetOptions()
[all …]
H A DASTWriter.cpp1274 const TargetOptions &TargetOpts = Target.getTargetOpts(); in WriteControlBlock() local
1275 AddString(TargetOpts.Triple, Record); in WriteControlBlock()
1276 AddString(TargetOpts.CPU, Record); in WriteControlBlock()
1277 AddString(TargetOpts.ABI, Record); in WriteControlBlock()
1278 Record.push_back(TargetOpts.FeaturesAsWritten.size()); in WriteControlBlock()
1279 for (unsigned I = 0, N = TargetOpts.FeaturesAsWritten.size(); I != N; ++I) { in WriteControlBlock()
1280 AddString(TargetOpts.FeaturesAsWritten[I], Record); in WriteControlBlock()
1282 Record.push_back(TargetOpts.Features.size()); in WriteControlBlock()
1283 for (unsigned I = 0, N = TargetOpts.Features.size(); I != N; ++I) { in WriteControlBlock()
1284 AddString(TargetOpts.Features[I], Record); in WriteControlBlock()
/minix3/external/bsd/llvm/dist/clang/lib/Basic/
H A DTargetInfo.cpp27 TargetInfo::TargetInfo(const llvm::Triple &T) : TargetOpts(), Triple(T) { in TargetInfo()
H A DTargets.cpp6859 Target->TargetOpts = Opts; in CreateTargetInfo()
/minix3/external/bsd/llvm/dist/llvm/tools/gold/
H A Dgold-plugin.cpp81 static llvm::TargetOptions TargetOpts; variable