llvm::MCPseudoProbeBase

Shared state for an encoded or decoded pseudo probe.

Synopsis

Declared in <llvm/MC/MCPseudoProbe.h>

class MCPseudoProbeBase;

Member Functions

NameDescription
MCPseudoProbeBase [constructor]Construct a probe with index, attributes, type, and discriminator.
getAttributes Return the probe attribute bitmask.
getDiscriminator Return the probe discriminator.
getIndex Return the probe index within its function.
getType Return the probe type.
isBlock Return true if this is a basic-block probe.
isCall Return true if this is any call probe.
isDirectCall Return true if this is a direct-call probe.
isEntry Return true if this is the function-entry probe.
isIndirectCall Return true if this is an indirect-call probe.
setAttributes Replace the probe attribute bitmask with Attr.

Protected Data Members

NameDescription
Attributes Bitmask of probe attributes (see PseudoProbeAttributes).
Discriminator Source discriminator associated with the probe, if any.
Index Probe index within the originating function.
Type Probe kind (block, indirect call, or direct call).

Protected Static Data Members

NameDescription
PseudoProbeFirstId First valid user probe index.

Derived Classes

NameDescription
MCDecodedPseudoProbe A pseudo probe decoded from a .pseudoprobe section.
MCPseudoProbe A pseudo probe instance for one table entry.