class GlobalValueSummary

Declaration

class GlobalValueSummary { /* full declaration omitted */ };

Description

Function and variable summary information to aid decisions and implementation of importing.

Declared at: llvm/include/llvm/IR/ModuleSummaryIndex.h:280

Method Overview

Methods

GlobalValueSummary(
    llvm::GlobalValueSummary::SummaryKind K,
    llvm::GlobalValueSummary::GVFlags Flags,
    std::vector<ValueInfo> Refs)

Declared at: llvm/include/llvm/IR/ModuleSummaryIndex.h:357

Parameters

llvm::GlobalValueSummary::SummaryKind K
llvm::GlobalValueSummary::GVFlags Flags
std::vector<ValueInfo> Refs

bool canAutoHide() const

Declared at: llvm/include/llvm/IR/ModuleSummaryIndex.h:410

llvm::GlobalValueSummary::GVFlags flags() const

Description

Get the flags for this GlobalValue (see \p struct GVFlags).

Declared at: llvm/include/llvm/IR/ModuleSummaryIndex.h:384

const llvm::GlobalValueSummary* getBaseObject()
    const

Declared at: llvm/include/llvm/IR/ModuleSummaryIndex.h:421

llvm::GlobalValueSummary* getBaseObject()

Description

If this is an alias summary, returns the summary of the aliased object (a global variable or function), otherwise returns itself.

Declared at: llvm/include/llvm/IR/ModuleSummaryIndex.h:420

GlobalValue::GUID getOriginalName() const

Description

Returns the hash of the original name, it is identical to the GUID for externally visible symbols, but not for local ones.

Declared at: llvm/include/llvm/IR/ModuleSummaryIndex.h:368

llvm::GlobalValueSummary::SummaryKind
getSummaryKind() const

Description

Which kind of summary subclass this is.

Declared at: llvm/include/llvm/IR/ModuleSummaryIndex.h:374

bool isDSOLocal() const

Declared at: llvm/include/llvm/IR/ModuleSummaryIndex.h:406

bool isLive() const

Declared at: llvm/include/llvm/IR/ModuleSummaryIndex.h:400

GlobalValue::LinkageTypes linkage() const

Description

Return linkage type recorded for this global value.

Declared at: llvm/include/llvm/IR/ModuleSummaryIndex.h:387

llvm::StringRef modulePath() const

Description

Get the path to the module containing this function.

Declared at: llvm/include/llvm/IR/ModuleSummaryIndex.h:381

bool notEligibleToImport() const

Description

Return true if this global value can't be imported.

Declared at: llvm/include/llvm/IR/ModuleSummaryIndex.h:398

ArrayRef<llvm::ValueInfo> refs() const

Description

Return the list of values referenced by this global value definition.

Declared at: llvm/include/llvm/IR/ModuleSummaryIndex.h:416

void setCanAutoHide(bool CanAutoHide)

Declared at: llvm/include/llvm/IR/ModuleSummaryIndex.h:408

Parameters

bool CanAutoHide

void setDSOLocal(bool Local)

Declared at: llvm/include/llvm/IR/ModuleSummaryIndex.h:404

Parameters

bool Local

void setLinkage(GlobalValue::LinkageTypes Linkage)

Description

Sets the linkage to the value determined by global summary-based optimization. Will be applied in the ThinLTO backends.

Declared at: llvm/include/llvm/IR/ModuleSummaryIndex.h:393

Parameters

GlobalValue::LinkageTypes Linkage

void setLive(bool Live)

Declared at: llvm/include/llvm/IR/ModuleSummaryIndex.h:402

Parameters

bool Live

void setModulePath(llvm::StringRef ModPath)

Description

Set the path to the module containing this function, for use in the combined index.

Declared at: llvm/include/llvm/IR/ModuleSummaryIndex.h:378

Parameters

llvm::StringRef ModPath

void setNotEligibleToImport()

Description

Flag that this global value cannot be imported.

Declared at: llvm/include/llvm/IR/ModuleSummaryIndex.h:413

void setOriginalName(GlobalValue::GUID Name)

Description

Initialize the original name hash in this summary.

Declared at: llvm/include/llvm/IR/ModuleSummaryIndex.h:371

Parameters

GlobalValue::GUID Name

virtual ~GlobalValueSummary()

Declared at: llvm/include/llvm/IR/ModuleSummaryIndex.h:364