clang
6.0.0
|
#include "clang/CodeGen/BackendUtil.h"
#include "clang/Basic/Diagnostic.h"
#include "clang/Basic/LangOptions.h"
#include "clang/Basic/TargetOptions.h"
#include "clang/Frontend/CodeGenOptions.h"
#include "clang/Frontend/FrontendDiagnostic.h"
#include "clang/Frontend/Utils.h"
#include "clang/Lex/HeaderSearchOptions.h"
#include "llvm/ADT/SmallSet.h"
#include "llvm/ADT/StringExtras.h"
#include "llvm/ADT/StringSwitch.h"
#include "llvm/ADT/Triple.h"
#include "llvm/Analysis/TargetLibraryInfo.h"
#include "llvm/Analysis/TargetTransformInfo.h"
#include "llvm/Bitcode/BitcodeReader.h"
#include "llvm/Bitcode/BitcodeWriter.h"
#include "llvm/Bitcode/BitcodeWriterPass.h"
#include "llvm/CodeGen/RegAllocRegistry.h"
#include "llvm/CodeGen/SchedulerRegistry.h"
#include "llvm/IR/DataLayout.h"
#include "llvm/IR/IRPrintingPasses.h"
#include "llvm/IR/LegacyPassManager.h"
#include "llvm/IR/Module.h"
#include "llvm/IR/ModuleSummaryIndex.h"
#include "llvm/IR/Verifier.h"
#include "llvm/LTO/LTOBackend.h"
#include "llvm/MC/MCAsmInfo.h"
#include "llvm/MC/SubtargetFeature.h"
#include "llvm/Passes/PassBuilder.h"
#include "llvm/Support/CommandLine.h"
#include "llvm/Support/MemoryBuffer.h"
#include "llvm/Support/PrettyStackTrace.h"
#include "llvm/Support/TargetRegistry.h"
#include "llvm/Support/Timer.h"
#include "llvm/Support/raw_ostream.h"
#include "llvm/Target/TargetMachine.h"
#include "llvm/Target/TargetOptions.h"
#include "llvm/CodeGen/TargetSubtargetInfo.h"
#include "llvm/Transforms/Coroutines.h"
#include "llvm/Transforms/IPO.h"
#include "llvm/Transforms/IPO/AlwaysInliner.h"
#include "llvm/Transforms/IPO/PassManagerBuilder.h"
#include "llvm/Transforms/IPO/ThinLTOBitcodeWriter.h"
#include "llvm/Transforms/Instrumentation.h"
#include "llvm/Transforms/Instrumentation/BoundsChecking.h"
#include "llvm/Transforms/ObjCARC.h"
#include "llvm/Transforms/Scalar.h"
#include "llvm/Transforms/Scalar/GVN.h"
#include "llvm/Transforms/Utils/NameAnonGlobals.h"
#include "llvm/Transforms/Utils/SymbolRewriter.h"
#include <memory>
Go to the source code of this file.
Functions | |
static void | addObjCARCAPElimPass (const PassManagerBuilder &Builder, PassManagerBase &PM) |
static void | addObjCARCExpandPass (const PassManagerBuilder &Builder, PassManagerBase &PM) |
static void | addObjCARCOptPass (const PassManagerBuilder &Builder, PassManagerBase &PM) |
static void | addAddDiscriminatorsPass (const PassManagerBuilder &Builder, legacy::PassManagerBase &PM) |
static void | addBoundsCheckingPass (const PassManagerBuilder &Builder, legacy::PassManagerBase &PM) |
static void | addSanitizerCoveragePass (const PassManagerBuilder &Builder, legacy::PassManagerBase &PM) |
static bool | asanUseGlobalsGC (const Triple &T, const CodeGenOptions &CGOpts) |
static void | addAddressSanitizerPasses (const PassManagerBuilder &Builder, legacy::PassManagerBase &PM) |
static void | addKernelAddressSanitizerPasses (const PassManagerBuilder &Builder, legacy::PassManagerBase &PM) |
static void | addHWAddressSanitizerPasses (const PassManagerBuilder &Builder, legacy::PassManagerBase &PM) |
static void | addMemorySanitizerPass (const PassManagerBuilder &Builder, legacy::PassManagerBase &PM) |
static void | addThreadSanitizerPass (const PassManagerBuilder &Builder, legacy::PassManagerBase &PM) |
static void | addDataFlowSanitizerPass (const PassManagerBuilder &Builder, legacy::PassManagerBase &PM) |
static void | addEfficiencySanitizerPass (const PassManagerBuilder &Builder, legacy::PassManagerBase &PM) |
static TargetLibraryInfoImpl * | createTLII (llvm::Triple &TargetTriple, const CodeGenOptions &CodeGenOpts) |
static void | addSymbolRewriterPass (const CodeGenOptions &Opts, legacy::PassManager *MPM) |
static CodeGenOpt::Level | getCGOptLevel (const CodeGenOptions &CodeGenOpts) |
static Optional< llvm::CodeModel::Model > | getCodeModel (const CodeGenOptions &CodeGenOpts) |
static llvm::Reloc::Model | getRelocModel (const CodeGenOptions &CodeGenOpts) |
static TargetMachine::CodeGenFileType | getCodeGenFileType (BackendAction Action) |
static void | initTargetOptions (llvm::TargetOptions &Options, const CodeGenOptions &CodeGenOpts, const clang::TargetOptions &TargetOpts, const LangOptions &LangOpts, const HeaderSearchOptions &HSOpts) |
static void | setCommandLineOpts (const CodeGenOptions &CodeGenOpts) |
static PassBuilder::OptimizationLevel | mapToLevel (const CodeGenOptions &Opts) |
static void | runThinLTOBackend (ModuleSummaryIndex *CombinedIndex, Module *M, const HeaderSearchOptions &HeaderOpts, const CodeGenOptions &CGOpts, const clang::TargetOptions &TOpts, const LangOptions &LOpts, std::unique_ptr< raw_pwrite_stream > OS, std::string SampleProfile, BackendAction Action) |
static const char * | getSectionNameForBitcode (const Triple &T) |
static const char * | getSectionNameForCommandline (const Triple &T) |
|
static |
Definition at line 165 of file BackendUtil.cpp.
|
static |
Definition at line 216 of file BackendUtil.cpp.
|
static |
Definition at line 170 of file BackendUtil.cpp.
|
static |
Definition at line 276 of file BackendUtil.cpp.
|
static |
Definition at line 284 of file BackendUtil.cpp.
|
static |
Definition at line 240 of file BackendUtil.cpp.
|
static |
Definition at line 231 of file BackendUtil.cpp.
|
static |
Definition at line 249 of file BackendUtil.cpp.
|
static |
Definition at line 150 of file BackendUtil.cpp.
|
static |
Definition at line 155 of file BackendUtil.cpp.
|
static |
Definition at line 160 of file BackendUtil.cpp.
|
static |
Definition at line 175 of file BackendUtil.cpp.
|
static |
Definition at line 323 of file BackendUtil.cpp.
References clang::CodeGenOptions::RewriteMapFiles.
|
static |
Definition at line 271 of file BackendUtil.cpp.
|
static |
Definition at line 202 of file BackendUtil.cpp.
|
static |
Definition at line 297 of file BackendUtil.cpp.
References clang::CodeGenOptions::Accelerate, clang::CodeGenOptions::getNoBuiltinFuncs(), and clang::CodeGenOptions::SVML.
Referenced by mapToLevel().
|
static |
Definition at line 334 of file BackendUtil.cpp.
References clang::Default, and clang::None.
Referenced by setCommandLineOpts().
|
static |
Definition at line 379 of file BackendUtil.cpp.
|
static |
Definition at line 350 of file BackendUtil.cpp.
References clang::CodeGenOptions::CodeModel, and clang::None.
Referenced by setCommandLineOpts().
|
static |
Definition at line 364 of file BackendUtil.cpp.
References clang::CodeGenOptions::RelocationModel.
Referenced by setCommandLineOpts().
|
static |
Definition at line 1196 of file BackendUtil.cpp.
Referenced by clang::EmbedBitcode().
|
static |
Definition at line 1209 of file BackendUtil.cpp.
Referenced by clang::EmbedBitcode().
|
static |
Definition at line 390 of file BackendUtil.cpp.
|
static |
Definition at line 819 of file BackendUtil.cpp.
References clang::Backend_EmitAssembly, clang::Backend_EmitBC, clang::Backend_EmitLL, clang::Backend_EmitMCNull, clang::Backend_EmitNothing, clang::Backend_EmitObj, createTLII(), clang::FindThinLTOModule(), clang::SanitizerSet::has(), clang::CodeGenOptions::hasProfileIRInstr(), clang::CodeGenOptions::hasProfileIRUse(), clang::CodeGenOptions::InstrProfileOutput, clang::CodeGenOptions::ProfileInstrumentUsePath, clang::DiagnosticsEngine::Report(), clang::CodeGenOptions::SampleProfileFile, clang::LangOptions::Sanitize, setCommandLineOpts(), and clang::CodeGenOptions::ThinLinkBitcodeFile.
|
static |
Definition at line 1039 of file BackendUtil.cpp.
References setCommandLineOpts().
|
static |
Definition at line 656 of file BackendUtil.cpp.
References clang::CodeGenOptions::BackendOptions, clang::CodeGenOptions::DebugPass, clang::Error, clang::TargetOptions::Features, getCGOptLevel(), getCodeModel(), getRelocModel(), clang::CodeGenOptions::LimitFloatPrecision, and clang::DiagnosticsEngine::Report().
Referenced by mapToLevel(), and runThinLTOBackend().