struct LineLocation

Declaration

struct LineLocation { /* full declaration omitted */ };

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++;").

Declared at: llvm/include/llvm/ProfileData/SampleProf.h:179

Member Variables

public uint32_t LineOffset
public uint32_t Discriminator

Method Overview

  • public LineLocation(uint32_t L, uint32_t D)
  • public void dump() const
  • public void print(llvm::raw_ostream & OS) const

Methods

LineLocation(uint32_t L, uint32_t D)

Declared at: llvm/include/llvm/ProfileData/SampleProf.h:180

Parameters

uint32_t L
uint32_t D

void dump() const

Declared at: llvm/include/llvm/ProfileData/SampleProf.h:183

void print(llvm::raw_ostream& OS) const

Declared at: llvm/include/llvm/ProfileData/SampleProf.h:182

Parameters

llvm::raw_ostream& OS