|
LLVM
3.7.0
|
Represents the relative location of an instruction. More...
#include <SampleProf.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 71 of file SampleProf.h.
Definition at line 72 of file SampleProf.h.
| unsigned llvm::sampleprof::LineLocation::Discriminator |
Definition at line 74 of file SampleProf.h.
Referenced by llvm::DenseMapInfo< sampleprof::LineLocation >::getHashValue(), llvm::DenseMapInfo< sampleprof::LineLocation >::isEqual(), llvm::sampleprof::FunctionSamples::print(), llvm::sampleprof::SampleProfileWriterText::write(), and llvm::sampleprof::SampleProfileWriterBinary::write().
| int llvm::sampleprof::LineLocation::LineOffset |
Definition at line 73 of file SampleProf.h.
Referenced by llvm::DenseMapInfo< sampleprof::LineLocation >::getHashValue(), llvm::DenseMapInfo< sampleprof::LineLocation >::isEqual(), llvm::sampleprof::FunctionSamples::print(), llvm::sampleprof::SampleProfileWriterText::write(), and llvm::sampleprof::SampleProfileWriterBinary::write().
1.8.6