LLVM: llvm::sampleprof::LineLocation Struct Reference (original) (raw)
Represents the relative location of an instruction. More...
#include "[llvm/ProfileData/SampleProf.h](SampleProf%5F8h%5Fsource.html)"
| Public Member Functions | |
|---|---|
| LineLocation (uint32_t L, uint32_t D) | |
| LLVM_ABI void | print (raw_ostream &OS) const |
| LLVM_ABI void | dump () const |
| LLVM_ABI void | serialize (raw_ostream &OS) const |
| bool | operator< (const LineLocation &O) const |
| bool | operator== (const LineLocation &O) const |
| bool | operator!= (const LineLocation &O) const |
| uint64_t | getHashCode () const |
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 288 of file SampleProf.h.
Constructor & Destructor Documentation
Member Function Documentation
◆ dump()
◆ getHashCode()
| uint64_t llvm::sampleprof::LineLocation::getHashCode ( ) const | inline |
|---|
◆ operator!=()
◆ operator<()
◆ operator==()
◆ print()
◆ serialize()
Member Data Documentation
◆ Discriminator
uint32_t llvm::sampleprof::LineLocation::Discriminator
◆ LineOffset
uint32_t llvm::sampleprof::LineLocation::LineOffset
The documentation for this struct was generated from the following files:
- include/llvm/ProfileData/SampleProf.h
- lib/ProfileData/SampleProf.cpp