LLVM API Documentation

Public Member Functions | Public Attributes
sampleprof::LineLocation Struct Reference

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

#include <SampleProfReader.h>

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

List of all members.

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 40 of file SampleProfReader.h.


Constructor & Destructor Documentation

Definition at line 41 of file SampleProfReader.h.


Member Data Documentation


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