LLVM API Documentation
Represents the relative location of an instruction. More...
#include <SampleProfReader.h>
Public Member Functions | |
LineLocation (int L, unsigned D) | |
Public Attributes | |
int | LineOffset |
unsigned | Discriminator |
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.
sampleprof::LineLocation::LineLocation | ( | int | L, |
unsigned | D | ||
) | [inline] |
Definition at line 41 of file SampleProfReader.h.
Definition at line 43 of file SampleProfReader.h.
Referenced by llvm::DenseMapInfo< sampleprof::LineLocation >::getHashValue(), and llvm::DenseMapInfo< sampleprof::LineLocation >::isEqual().
Definition at line 42 of file SampleProfReader.h.
Referenced by llvm::DenseMapInfo< sampleprof::LineLocation >::getHashValue(), and llvm::DenseMapInfo< sampleprof::LineLocation >::isEqual().