clang API Documentation

Functions
BackendUtil.cpp File Reference
#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 "llvm/ADT/StringSwitch.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/Module.h"
#include "llvm/IR/Verifier.h"
#include "llvm/MC/SubtargetFeature.h"
#include "llvm/PassManager.h"
#include "llvm/Support/CommandLine.h"
#include "llvm/Support/FormattedStream.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/TargetLibraryInfo.h"
#include "llvm/Target/TargetMachine.h"
#include "llvm/Target/TargetOptions.h"
#include "llvm/Target/TargetSubtargetInfo.h"
#include "llvm/Transforms/IPO.h"
#include "llvm/Transforms/IPO/PassManagerBuilder.h"
#include "llvm/Transforms/Instrumentation.h"
#include "llvm/Transforms/ObjCARC.h"
#include "llvm/Transforms/Scalar.h"
#include <memory>
Include dependency graph for BackendUtil.cpp:

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 addSampleProfileLoaderPass (const PassManagerBuilder &Builder, PassManagerBase &PM)
static void addAddDiscriminatorsPass (const PassManagerBuilder &Builder, PassManagerBase &PM)
static void addBoundsCheckingPass (const PassManagerBuilder &Builder, PassManagerBase &PM)
static void addSanitizerCoveragePass (const PassManagerBuilder &Builder, PassManagerBase &PM)
static void addAddressSanitizerPasses (const PassManagerBuilder &Builder, PassManagerBase &PM)
static void addMemorySanitizerPass (const PassManagerBuilder &Builder, PassManagerBase &PM)
static void addThreadSanitizerPass (const PassManagerBuilder &Builder, PassManagerBase &PM)
static void addDataFlowSanitizerPass (const PassManagerBuilder &Builder, PassManagerBase &PM)
static TargetLibraryInfo * createTLI (llvm::Triple &TargetTriple, const CodeGenOptions &CodeGenOpts)

Function Documentation

static void addAddDiscriminatorsPass ( const PassManagerBuilder &  Builder,
PassManagerBase &  PM 
) [static]

Definition at line 172 of file BackendUtil.cpp.

static void addAddressSanitizerPasses ( const PassManagerBuilder &  Builder,
PassManagerBase &  PM 
) [static]

Definition at line 190 of file BackendUtil.cpp.

static void addBoundsCheckingPass ( const PassManagerBuilder &  Builder,
PassManagerBase &  PM 
) [static]

Definition at line 177 of file BackendUtil.cpp.

static void addDataFlowSanitizerPass ( const PassManagerBuilder &  Builder,
PassManagerBase &  PM 
) [static]

Definition at line 221 of file BackendUtil.cpp.

References Builder, and clang::LangOptions::SanitizerBlacklistFile.

static void addMemorySanitizerPass ( const PassManagerBuilder &  Builder,
PassManagerBase &  PM 
) [static]

Definition at line 196 of file BackendUtil.cpp.

References Builder.

static void addObjCARCAPElimPass ( const PassManagerBuilder &  Builder,
PassManagerBase &  PM 
) [static]

Definition at line 149 of file BackendUtil.cpp.

static void addObjCARCExpandPass ( const PassManagerBuilder &  Builder,
PassManagerBase &  PM 
) [static]

Definition at line 154 of file BackendUtil.cpp.

static void addObjCARCOptPass ( const PassManagerBuilder &  Builder,
PassManagerBase &  PM 
) [static]

Definition at line 159 of file BackendUtil.cpp.

static void addSampleProfileLoaderPass ( const PassManagerBuilder &  Builder,
PassManagerBase &  PM 
) [static]

Definition at line 164 of file BackendUtil.cpp.

References Builder, and clang::CodeGenOptions::SampleProfileFile.

static void addSanitizerCoveragePass ( const PassManagerBuilder &  Builder,
PassManagerBase &  PM 
) [static]

Definition at line 182 of file BackendUtil.cpp.

References Builder.

static void addThreadSanitizerPass ( const PassManagerBuilder &  Builder,
PassManagerBase &  PM 
) [static]

Definition at line 216 of file BackendUtil.cpp.

static TargetLibraryInfo* createTLI ( llvm::Triple &  TargetTriple,
const CodeGenOptions CodeGenOpts 
) [static]

Definition at line 229 of file BackendUtil.cpp.