LLVM  5.0.0
Functions | Variables
DiagnosticInfo.cpp File Reference
#include "llvm/IR/DiagnosticInfo.h"
#include "llvm/ADT/StringExtras.h"
#include "llvm/ADT/Twine.h"
#include "llvm/ADT/iterator_range.h"
#include "llvm/IR/BasicBlock.h"
#include "llvm/IR/Constants.h"
#include "llvm/IR/DebugInfoMetadata.h"
#include "llvm/IR/DerivedTypes.h"
#include "llvm/IR/DiagnosticPrinter.h"
#include "llvm/IR/Function.h"
#include "llvm/IR/GlobalValue.h"
#include "llvm/IR/Instruction.h"
#include "llvm/IR/LLVMContext.h"
#include "llvm/IR/Metadata.h"
#include "llvm/IR/Module.h"
#include "llvm/IR/Type.h"
#include "llvm/IR/Value.h"
#include "llvm/Support/Casting.h"
#include "llvm/Support/CommandLine.h"
#include "llvm/Support/ErrorHandling.h"
#include "llvm/Support/Regex.h"
#include "llvm/Support/raw_ostream.h"
#include <atomic>
#include <cassert>
#include <memory>
#include <string>
Include dependency graph for DiagnosticInfo.cpp:

Go to the source code of this file.

Functions

static const BasicBlock & getFirstFunctionBlock (const Function *Func)
 

Variables

static PassRemarksOpt PassRemarksOptLoc
 
static PassRemarksOpt PassRemarksMissedOptLoc
 
static PassRemarksOpt PassRemarksAnalysisOptLoc
 
static cl::opt< PassRemarksOpt,
true, cl::parser< std::string > > 
PassRemarks ("pass-remarks", cl::value_desc("pattern"), cl::desc("Enable optimization remarks from passes whose name match ""the given regular expression"), cl::Hidden, cl::location(PassRemarksOptLoc), cl::ValueRequired, cl::ZeroOrMore)
 
static cl::opt< PassRemarksOpt,
true, cl::parser< std::string > > 
PassRemarksMissed ("pass-remarks-missed", cl::value_desc("pattern"), cl::desc("Enable missed optimization remarks from passes whose name match ""the given regular expression"), cl::Hidden, cl::location(PassRemarksMissedOptLoc), cl::ValueRequired, cl::ZeroOrMore)
 
static cl::opt< PassRemarksOpt,
true, cl::parser< std::string > > 
PassRemarksAnalysis ("pass-remarks-analysis", cl::value_desc("pattern"), cl::desc("Enable optimization analysis remarks from passes whose name match ""the given regular expression"), cl::Hidden, cl::location(PassRemarksAnalysisOptLoc), cl::ValueRequired, cl::ZeroOrMore)
 

Function Documentation

static const BasicBlock& getFirstFunctionBlock ( const Function *  Func)
static

Definition at line 250 of file DiagnosticInfo.cpp.

References assert(), llvm::Function::empty(), and llvm::Function::front().

Variable Documentation

cl::opt<PassRemarksOpt, true, cl::parser<std::string> > PassRemarks("pass-remarks", cl::value_desc("pattern"), cl::desc("Enable optimization remarks from passes whose name match ""the given regular expression"), cl::Hidden, cl::location(PassRemarksOptLoc), cl::ValueRequired, cl::ZeroOrMore)
static
cl::opt<PassRemarksOpt, true, cl::parser<std::string> > PassRemarksAnalysis("pass-remarks-analysis", cl::value_desc("pattern"), cl::desc("Enable optimization analysis remarks from passes whose name match ""the given regular expression"), cl::Hidden, cl::location(PassRemarksAnalysisOptLoc), cl::ValueRequired, cl::ZeroOrMore)
static
PassRemarksOpt PassRemarksAnalysisOptLoc
static

Definition at line 71 of file DiagnosticInfo.cpp.

Referenced by llvm::OptimizationRemarkAnalysis::isEnabled().

cl::opt<PassRemarksOpt, true, cl::parser<std::string> > PassRemarksMissed("pass-remarks-missed", cl::value_desc("pattern"), cl::desc("Enable missed optimization remarks from passes whose name match ""the given regular expression"), cl::Hidden, cl::location(PassRemarksMissedOptLoc), cl::ValueRequired, cl::ZeroOrMore)
static
PassRemarksOpt PassRemarksMissedOptLoc
static

Definition at line 70 of file DiagnosticInfo.cpp.

Referenced by llvm::OptimizationRemarkMissed::isEnabled().

PassRemarksOpt PassRemarksOptLoc
static

Definition at line 69 of file DiagnosticInfo.cpp.

Referenced by llvm::OptimizationRemark::isEnabled().