Lines Matching defs:compiler
296 // Don't store away warning fixits, since the compiler doesn't have
325 /// the compiler instance when compiling the `std` module.
365 static void SetupModuleHeaderPaths(CompilerInstance *compiler,
370 HeaderSearchOptions &search_opts = compiler->getHeaderSearchOpts();
424 static void SetupDefaultClangDiagnostics(CompilerInstance &compiler) {
432 compiler.getDiagnostics().setSeverityForGroup(
505 static void SetupTargetOpts(CompilerInstance &compiler,
513 compiler.getTargetOpts().Triple = triple;
515 compiler.getTargetOpts().Triple.c_str());
523 compiler.getTargetOpts().Triple = llvm::sys::getDefaultTargetTriple();
525 compiler.getTargetOpts().Triple.c_str());
529 if (compiler.getTargetOpts().Triple.find("arm64") == std::string::npos &&
530 compiler.getTargetOpts().Triple.find("arm") != std::string::npos &&
531 compiler.getTargetOpts().Triple.find("ios") != std::string::npos) {
532 compiler.getTargetOpts().ABI = "apcs-gnu";
537 compiler.getTargetOpts().FeaturesAsWritten.push_back("+sse");
538 compiler.getTargetOpts().FeaturesAsWritten.push_back("+sse2");
544 compiler.getTargetOpts().CPU = target_arch.GetClangTargetCPU();
548 compiler.getTargetOpts().ABI = std::move(abi);
551 compiler.getTargetOpts().ABI == "lp64f") ||
553 compiler.getTargetOpts().ABI == "ilp32f"))
554 compiler.getTargetOpts().FeaturesAsWritten.emplace_back("+f");
557 compiler.getTargetOpts().ABI == "lp64d") ||
559 compiler.getTargetOpts().ABI == "ilp32d"))
560 compiler.getTargetOpts().FeaturesAsWritten.emplace_back("+d");
563 compiler.getTargetOpts().ABI == "lp64f"))
564 compiler.getTargetOpts().FeaturesAsWritten.emplace_back("+f");
567 compiler.getTargetOpts().ABI == "lp64d"))
568 compiler.getTargetOpts().FeaturesAsWritten.emplace_back("+d");
571 static void SetupLangOpts(CompilerInstance &compiler,
596 LangOptions &lang_opts = compiler.getLangOpts();
619 // cause compiler error when evaluating expressions (e.g. nullptr not found
639 compiler.getHeaderSearchOpts().UseLibcxx = true;
656 compiler.getHeaderSearchOpts().UseLibcxx = true;
669 ArchSpec(compiler.getTargetOpts().Triple.c_str()).CharIsSignedByDefault();
706 static void SetupImportStdModuleLangOpts(CompilerInstance &compiler,
709 LangOptions &lang_opts = compiler.getLangOpts();
753 // lldbassert and not make any of the compiler objects since
755 // check if the compiler was made and
772 // 1. Create a new compiler instance.
778 // 2. Configure the compiler with a set of default options that are
782 // 3. Create and install the target on the compiler.
842 // 6. Set up the source management objects inside the compiler