LLVM  3.7.0
Public Member Functions | Public Attributes | List of all members
llvm::sampleprof::LineLocation Struct Reference

Represents the relative location of an instruction. More...

#include <SampleProf.h>

Collaboration diagram for llvm::sampleprof::LineLocation:
[legend]

Public Member Functions

 LineLocation (int L, unsigned D)
 

Public Attributes

int LineOffset
 
unsigned Discriminator
 

Detailed Description

Represents the relative location of an instruction.

Instruction locations are specified by the line offset from the beginning of the function (marked by the line where the function header is) and the discriminator value within that line.

The discriminator value is useful to distinguish instructions that are on the same line but belong to different basic blocks (e.g., the two post-increment instructions in "if (p) x++; else y++;").

Definition at line 71 of file SampleProf.h.

Constructor & Destructor Documentation

llvm::sampleprof::LineLocation::LineLocation ( int  L,
unsigned  D 
)
inline

Definition at line 72 of file SampleProf.h.

Member Data Documentation

unsigned llvm::sampleprof::LineLocation::Discriminator
int llvm::sampleprof::LineLocation::LineOffset

The documentation for this struct was generated from the following file: