|
LLVM
10.0.0
|
Group flags (Linkage, NotEligibleToImport, etc.) as a bitfield. More...
#include "llvm/IR/ModuleSummaryIndex.h"
Public Member Functions | |
| GVFlags (GlobalValue::LinkageTypes Linkage, bool NotEligibleToImport, bool Live, bool IsLocal, bool CanAutoHide) | |
| Convenience Constructors. More... | |
Public Attributes | |
| unsigned | Linkage: 4 |
| The linkage type of the associated global value. More... | |
| unsigned | NotEligibleToImport: 1 |
| Indicate if the global value cannot be imported (e.g. More... | |
| unsigned | Live: 1 |
| In per-module summary, indicate that the global value must be considered a live root for index-based liveness analysis. More... | |
| unsigned | DSOLocal: 1 |
| Indicates that the linker resolved the symbol to a definition from within the same linkage unit. More... | |
| unsigned | CanAutoHide: 1 |
| In the per-module summary, indicates that the global value is linkonce_odr and global unnamed addr (so eligible for auto-hiding via hidden visibility). More... | |
Group flags (Linkage, NotEligibleToImport, etc.) as a bitfield.
Definition at line 286 of file ModuleSummaryIndex.h.
|
inlineexplicit |
Convenience Constructors.
Definition at line 323 of file ModuleSummaryIndex.h.
| unsigned llvm::GlobalValueSummary::GVFlags::CanAutoHide |
In the per-module summary, indicates that the global value is linkonce_odr and global unnamed addr (so eligible for auto-hiding via hidden visibility).
In the combined summary, indicates that the prevailing linkonce_odr copy can be auto-hidden via hidden visibility when it is upgraded to weak_odr in the backend. This is legal when all copies are eligible for auto-hiding (i.e. all copies were linkonce_odr global unnamed addr. If any copy is not (e.g. it was originally weak_odr, we cannot auto-hide the prevailing copy as it means the symbol was externally visible.
Definition at line 320 of file ModuleSummaryIndex.h.
Referenced by llvm::GlobalValueSummary::canAutoHide(), getEncodedGVSummaryFlags(), getLinkageNameWithSpace(), resolveFwdRef(), and llvm::GlobalValueSummary::setCanAutoHide().
| unsigned llvm::GlobalValueSummary::GVFlags::DSOLocal |
Indicates that the linker resolved the symbol to a definition from within the same linkage unit.
Definition at line 309 of file ModuleSummaryIndex.h.
Referenced by getEncodedGVSummaryFlags(), getLinkageNameWithSpace(), llvm::GlobalValueSummary::isDSOLocal(), resolveFwdRef(), and llvm::GlobalValueSummary::setDSOLocal().
| unsigned llvm::GlobalValueSummary::GVFlags::Linkage |
The linkage type of the associated global value.
One use is to flag values that have local linkage types and need to have module identifier appended before placing into the combined index, to disambiguate from other values with the same name. In the future this will be used to update and optimize linkage types based on global summary-based analysis.
Definition at line 294 of file ModuleSummaryIndex.h.
Referenced by getEncodedGVSummaryFlags(), getLinkageNameWithSpace(), llvm::GlobalValueSummary::linkage(), resolveFwdRef(), and llvm::GlobalValueSummary::setLinkage().
| unsigned llvm::GlobalValueSummary::GVFlags::Live |
In per-module summary, indicate that the global value must be considered a live root for index-based liveness analysis.
Used for special LLVM values such as llvm.global_ctors that the linker does not know about.
In combined summary, indicate that the global value is live.
Definition at line 305 of file ModuleSummaryIndex.h.
Referenced by getEncodedGVSummaryFlags(), getLinkageNameWithSpace(), llvm::GlobalValueSummary::isLive(), resolveFwdRef(), and llvm::GlobalValueSummary::setLive().
| unsigned llvm::GlobalValueSummary::GVFlags::NotEligibleToImport |
Indicate if the global value cannot be imported (e.g.
it cannot be renamed or references something that can't be renamed).
Definition at line 298 of file ModuleSummaryIndex.h.
Referenced by getEncodedGVSummaryFlags(), getLinkageNameWithSpace(), llvm::GlobalValueSummary::notEligibleToImport(), resolveFwdRef(), and llvm::GlobalValueSummary::setNotEligibleToImport().
1.8.13