LLVM  4.0.0
Namespaces | Macros | Typedefs | Functions
InstrProfReader.cpp File Reference
#include "llvm/ProfileData/InstrProfReader.h"
#include "llvm/ADT/STLExtras.h"
#include <cassert>
Include dependency graph for InstrProfReader.cpp:

Go to the source code of this file.

Namespaces

 llvm
 Compute iterated dominance frontiers using a linear time algorithm.
 

Macros

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

Typedefs

typedef
InstrProfLookupTrait::data_type 
data_type
 
typedef
InstrProfLookupTrait::offset_type 
offset_type
 

Functions

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

Macro Definition Documentation

#define CHECK_LINE_END (   Line)
Value:
if (Line.is_at_end()) \
return error(instrprof_error::truncated);
Error error(const Twine &Message)
#define READ_NUM (   Str,
  Dst 
)
Value:
if ((Str).getAsInteger(10, (Dst))) \
return error(instrprof_error::malformed);
Error error(const Twine &Message)
#define VP_READ_ADVANCE (   Val)
Value:
uint32_t Val; \
READ_NUM((*Line), (Val)); \
Line++;
#define CHECK_LINE_END(Line)
#define READ_NUM(Str, Dst)

Typedef Documentation

Definition at line 466 of file InstrProfReader.cpp.

typedef InstrProfLookupTrait::offset_type offset_type

Definition at line 467 of file InstrProfReader.cpp.

Function Documentation

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