LLVM  9.0.0svn
Classes | Namespaces | Functions | Variables
DiagnosticInfo.cpp File Reference
#include "llvm/IR/DiagnosticInfo.h"
#include "LLVMContextImpl.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/Path.h"
#include "llvm/Support/Regex.h"
#include "llvm/Support/ScopedPrinter.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.

Classes

struct  llvm::yaml::MappingTraits< DiagnosticLocation >
 
struct  llvm::yaml::StringBlockVal
 Helper struct for multiline string block literals. More...
 
struct  llvm::yaml::BlockScalarTraits< StringBlockVal >
 
struct  llvm::yaml::MappingTraits< DiagnosticInfoOptimizationBase::Argument >
 

Namespaces

 llvm
 This class represents lattice values for constants.
 
 llvm::yaml
 

Functions

static const BasicBlockgetFirstFunctionBlock (const Function *Func)
 
template<typename T >
static void mapRemarkHeader (yaml::IO &io, T PassName, T RemarkName, DiagnosticLocation DL, T FunctionName, Optional< uint64_t > Hotness, SmallVectorImpl< DiagnosticInfoOptimizationBase::Argument > &Args)
 

Variables

cl::opt< boolUseStringTable ("remarks-yaml-string-table", cl::init(false))
 

Function Documentation

◆ getFirstFunctionBlock()

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().

◆ mapRemarkHeader()

template<typename T >
static void mapRemarkHeader ( yaml::IO &  io,
T  PassName,
T  RemarkName,
DiagnosticLocation  DL,
T  FunctionName,
Optional< uint64_t >  Hotness,
SmallVectorImpl< DiagnosticInfoOptimizationBase::Argument > &  Args 
)
static

Variable Documentation

◆ UseStringTable

cl::opt<bool> UseStringTable("remarks-yaml-string-table", cl::init(false))