Struct that holds a reference to a particular GUID in a global value summary.

Synopsis

Declared in <llvm/IR/ModuleSummaryIndex.h>

struct ValueInfo;

Enums

Name

Description

Flags

Flag bits packed into RefAndFlags.

Member Functions

Name

Description

ValueInfo [constructor]

Constructors

canAutoHide

Checks if all copies are eligible for auto‐hiding (have flag set).

getAccessSpecifier

Return the ReadOnly/WriteOnly access specifier bits.

getELFVisibility

Returns the most constraining visibility among summaries. The visibilities, ordered from least to most constraining, are: default, protected and hidden.

getGUID

Return the GUID for this value.

getRef

Return the underlying GUID map entry pointer, or null.

getSummaryList

Return the summary list for this value.

getValue

Return the GlobalValue pointer when HaveGVs is set.

hasLocal

Return true if any summary for this value has local linkage.

hasName

Return true if a name string is available for this value.

haveGVs

Return true if this ValueInfo was built with GlobalValue pointers.

isDSOLocal

Checks if all summaries are DSO local (have the flag set). When DSOLocal propagation has been done, set the parameter to enable fast check.

isReadOnly

Return true if this value is known read‐only.

isValidAccessSpecifier

Return true if the access specifier bits are not both set.

isWriteOnly

Return true if this value is known write‐only.

name

Return the name of this value (from GV or the summary string).

setReadOnly

Mark this value as read‐only.

setWriteOnly

Mark this value as write‐only.

verifyLocal

Verify that the HasLocal flag matches the summary list.

operator bool

Return true if this ValueInfo refers to a map entry.

Data Members

Name

Description

RefAndFlags

Pointer to the map entry plus HaveGV/ReadOnly/WriteOnly flag bits.

Non-Member Functions

Name

Description

operator!=

Return true if A and B refer to different map entries.

operator<

Order ValueInfos by GUID.

operator==

Return true if A and B refer to the same map entry.

Created with MrDocs