LLVM  8.0.1
Classes | Namespaces | Macros | Typedefs | Functions
InstrProfReader.cpp File Reference
#include "llvm/ProfileData/InstrProfReader.h"
#include "llvm/ADT/ArrayRef.h"
#include "llvm/ADT/DenseMap.h"
#include "llvm/ADT/STLExtras.h"
#include "llvm/ADT/StringRef.h"
#include "llvm/IR/ProfileSummary.h"
#include "llvm/ProfileData/InstrProf.h"
#include "llvm/ProfileData/ProfileCommon.h"
#include "llvm/Support/Endian.h"
#include "llvm/Support/Error.h"
#include "llvm/Support/ErrorOr.h"
#include "llvm/Support/MemoryBuffer.h"
#include "llvm/Support/SymbolRemappingReader.h"
#include "llvm/Support/SwapByteOrder.h"
#include <algorithm>
#include <cctype>
#include <cstddef>
#include <cstdint>
#include <limits>
#include <memory>
#include <system_error>
#include <utility>
#include <vector>
Include dependency graph for InstrProfReader.cpp:

Go to the source code of this file.

Classes

class  llvm::InstrProfReaderItaniumRemapper< HashTableImpl >
 A remapper that applies remappings based on a symbol remapping file. More...
 

Namespaces

 llvm
 This class represents lattice values for constants.
 

Macros

#define CHECK_LINE_END(Line)
 
#define READ_NUM(Str, Dst)
 
#define VP_READ_ADVANCE(Val)
 

Typedefs

using data_type = InstrProfLookupTrait::data_type
 
using offset_type = InstrProfLookupTrait::offset_type
 

Functions

static Expected< std::unique_ptr< MemoryBuffer > > setupMemoryBuffer (const Twine &Path)
 
static Error initializeReader (InstrProfReader &Reader)
 

Macro Definition Documentation

◆ CHECK_LINE_END

#define CHECK_LINE_END (   Line)
Value:
if (Line.is_at_end()) \
return error(instrprof_error::truncated);
#define error(X)

Referenced by llvm::TextInstrProfReader::readHeader().

◆ READ_NUM

#define READ_NUM (   Str,
  Dst 
)
Value:
if ((Str).getAsInteger(10, (Dst))) \
return error(instrprof_error::malformed);
#define error(X)

Referenced by llvm::TextInstrProfReader::readHeader().

◆ VP_READ_ADVANCE

#define VP_READ_ADVANCE (   Val)
Value:
uint32_t Val; \
READ_NUM((*Line), (Val)); \
Line++;
#define CHECK_LINE_END(Line)

Referenced by llvm::TextInstrProfReader::readHeader().

Typedef Documentation

◆ data_type

Definition at line 502 of file InstrProfReader.cpp.

◆ offset_type

using offset_type = InstrProfLookupTrait::offset_type

Definition at line 503 of file InstrProfReader.cpp.

Function Documentation

◆ initializeReader()

static Error initializeReader ( InstrProfReader Reader)
static

◆ setupMemoryBuffer()

static Expected<std::unique_ptr<MemoryBuffer> > setupMemoryBuffer ( const Twine Path)
static