LLVM  mainline
Public Types | Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes | Static Protected Attributes
llvm::GlobalValue Class Reference

#include <GlobalValue.h>

Inheritance diagram for llvm::GlobalValue:
Inheritance graph
[legend]
Collaboration diagram for llvm::GlobalValue:
Collaboration graph
[legend]

List of all members.

Public Types

enum  LinkageTypes {
  ExternalLinkage = 0, AvailableExternallyLinkage, LinkOnceAnyLinkage, LinkOnceODRLinkage,
  WeakAnyLinkage, WeakODRLinkage, AppendingLinkage, InternalLinkage,
  PrivateLinkage, ExternalWeakLinkage, CommonLinkage
}
 An enumeration for the kinds of linkage for global values. More...
enum  VisibilityTypes { DefaultVisibility = 0, HiddenVisibility, ProtectedVisibility }
 An enumeration for the kinds of visibility of global values. More...
enum  DLLStorageClassTypes { DefaultStorageClass = 0, DLLImportStorageClass = 1, DLLExportStorageClass = 2 }
 Storage classes of global values for PE targets. More...
enum  ThreadLocalMode {
  NotThreadLocal = 0, GeneralDynamicTLSModel, LocalDynamicTLSModel, InitialExecTLSModel,
  LocalExecTLSModel
}

Public Member Functions

 ~GlobalValue () override
unsigned getAlignment () const
bool hasUnnamedAddr () const
void setUnnamedAddr (bool Val)
bool hasComdat () const
ComdatgetComdat ()
const ComdatgetComdat () const
VisibilityTypes getVisibility () const
bool hasDefaultVisibility () const
bool hasHiddenVisibility () const
bool hasProtectedVisibility () const
void setVisibility (VisibilityTypes V)
bool isThreadLocal () const
 If the value is "Thread Local", its value isn't shared by the threads.
void setThreadLocal (bool Val)
void setThreadLocalMode (ThreadLocalMode Val)
ThreadLocalMode getThreadLocalMode () const
DLLStorageClassTypes getDLLStorageClass () const
bool hasDLLImportStorageClass () const
bool hasDLLExportStorageClass () const
void setDLLStorageClass (DLLStorageClassTypes C)
bool hasSection () const
const char * getSection () const
PointerTypegetType () const
 Global values are always pointers.
TypegetValueType () const
bool hasExternalLinkage () const
bool hasAvailableExternallyLinkage () const
bool hasLinkOnceLinkage () const
bool hasLinkOnceODRLinkage () const
bool hasWeakLinkage () const
bool hasWeakAnyLinkage () const
bool hasWeakODRLinkage () const
bool hasAppendingLinkage () const
bool hasInternalLinkage () const
bool hasPrivateLinkage () const
bool hasLocalLinkage () const
bool hasExternalWeakLinkage () const
bool hasCommonLinkage () const
void setLinkage (LinkageTypes LT)
LinkageTypes getLinkage () const
bool isDiscardableIfUnused () const
bool mayBeOverridden () const
bool isWeakForLinker () const
virtual void copyAttributesFrom (const GlobalValue *Src)
 Copy all additional attributes (those not needed to create a GlobalValue) from the GlobalValue Src to this one.
void destroyConstant () override
 Override from Constant class.
bool isDeclaration () const
 Return true if the primary definition of this global value is outside of the current translation unit.
bool isDeclarationForLinker () const
virtual void removeFromParent ()=0
 This method unlinks 'this' from the containing module, but does not delete it.
virtual void eraseFromParent ()=0
 This method unlinks 'this' from the containing module and deletes it.
ModulegetParent ()
 Get the module that this global value is contained inside of...
const ModulegetParent () const
Materialization

Materialization is used to construct functions only as they're needed.

This is useful to reduce memory usage in LLVM or parsing work done by the BitcodeReader to load the Module.

bool isMaterializable () const
 If this function's Module is being lazily streamed in functions from disk or some other source, this method can be used to check to see if the function has been read in yet or not.
bool isDematerializable () const
 Returns true if this function was loaded from a GVMaterializer that's still attached to its Module and that knows how to dematerialize the function.
std::error_code materialize ()
 Make sure this GlobalValue is fully read.
void dematerialize ()
 If this GlobalValue is read in, and if the GVMaterializer supports it, release the memory for the function, and set it up to be materialized lazily.

Static Public Member Functions

static LinkageTypes getLinkOnceLinkage (bool ODR)
static LinkageTypes getWeakLinkage (bool ODR)
static bool isExternalLinkage (LinkageTypes Linkage)
static bool isAvailableExternallyLinkage (LinkageTypes Linkage)
static bool isLinkOnceODRLinkage (LinkageTypes Linkage)
static bool isLinkOnceLinkage (LinkageTypes Linkage)
static bool isWeakAnyLinkage (LinkageTypes Linkage)
static bool isWeakODRLinkage (LinkageTypes Linkage)
static bool isWeakLinkage (LinkageTypes Linkage)
static bool isAppendingLinkage (LinkageTypes Linkage)
static bool isInternalLinkage (LinkageTypes Linkage)
static bool isPrivateLinkage (LinkageTypes Linkage)
static bool isLocalLinkage (LinkageTypes Linkage)
static bool isExternalWeakLinkage (LinkageTypes Linkage)
static bool isCommonLinkage (LinkageTypes Linkage)
static bool isDiscardableIfUnused (LinkageTypes Linkage)
 Whether the definition of this global may be discarded if it is not used in its compilation unit.
static bool mayBeOverridden (LinkageTypes Linkage)
 Whether the definition of this global may be replaced by something non-equivalent at link time.
static bool isWeakForLinker (LinkageTypes Linkage)
 Whether the definition of this global may be replaced at link time.
static StringRef getRealLinkageName (StringRef Name)
 If special LLVM prefix that is used to inform the asm printer to not emit usual symbol prefix before the symbol name is used then return linkage name after skipping this special LLVM prefix.
static bool classof (const Value *V)

Protected Member Functions

 GlobalValue (PointerType *Ty, ValueTy VTy, Use *Ops, unsigned NumOps, LinkageTypes Linkage, const Twine &Name)
unsigned getGlobalValueSubClassData () const
void setGlobalValueSubClassData (unsigned V)

Protected Attributes

LinkageTypes Linkage: 5
unsigned Visibility: 2
unsigned UnnamedAddr: 1
unsigned DllStorageClass: 2
unsigned ThreadLocal: 3
Intrinsic::ID IntID
 The intrinsic ID for this subclass (which must be a Function).
ModuleParent

Static Protected Attributes

static const unsigned GlobalValueSubClassDataBits = 19

Detailed Description

Definition at line 35 of file GlobalValue.h.


Member Enumeration Documentation

Storage classes of global values for PE targets.

Enumerator:
DefaultStorageClass 
DLLImportStorageClass 

Function to be imported from DLL.

DLLExportStorageClass 

Function to be accessible from DLL.

Definition at line 61 of file GlobalValue.h.

An enumeration for the kinds of linkage for global values.

Enumerator:
ExternalLinkage 

Externally visible function.

AvailableExternallyLinkage 

Available for inspection, not emission.

LinkOnceAnyLinkage 

Keep one copy of function when linking (inline)

LinkOnceODRLinkage 

Same, but only replaced by something equivalent.

WeakAnyLinkage 

Keep one copy of named function when linking (weak)

WeakODRLinkage 

Same, but only replaced by something equivalent.

AppendingLinkage 

Special purpose, only applies to global arrays.

InternalLinkage 

Rename collisions when linking (static functions).

PrivateLinkage 

Like Internal, but omit from symbol table.

ExternalWeakLinkage 

ExternalWeak linkage description.

CommonLinkage 

Tentative definitions.

Definition at line 39 of file GlobalValue.h.

Enumerator:
NotThreadLocal 
GeneralDynamicTLSModel 
LocalDynamicTLSModel 
InitialExecTLSModel 
LocalExecTLSModel 

Definition at line 112 of file GlobalValue.h.

An enumeration for the kinds of visibility of global values.

Enumerator:
DefaultVisibility 

The GV is visible.

HiddenVisibility 

The GV is hidden.

ProtectedVisibility 

The GV is protected.

Definition at line 54 of file GlobalValue.h.


Constructor & Destructor Documentation

llvm::GlobalValue::GlobalValue ( PointerType Ty,
ValueTy  VTy,
Use Ops,
unsigned  NumOps,
LinkageTypes  Linkage,
const Twine Name 
) [inline, protected]

Definition at line 68 of file GlobalValue.h.

References llvm::Value::setName().

llvm::GlobalValue::~GlobalValue ( ) [inline, override]

Definition at line 120 of file GlobalValue.h.

References llvm::Constant::removeDeadConstantUsers().


Member Function Documentation

static bool llvm::GlobalValue::classof ( const Value V) [inline, static]

Copy all additional attributes (those not needed to create a GlobalValue) from the GlobalValue Src to this one.

copyAttributesFrom - copy all additional attributes (those not needed to create a GlobalValue) from the GlobalValue Src to this one.

Reimplemented in llvm::Function, llvm::GlobalVariable, and llvm::GlobalObject.

Definition at line 53 of file Globals.cpp.

References getDLLStorageClass(), getVisibility(), hasUnnamedAddr(), setDLLStorageClass(), setUnnamedAddr(), and setVisibility().

Referenced by llvm::CloneModule(), and copyGVAttributes().

If this GlobalValue is read in, and if the GVMaterializer supports it, release the memory for the function, and set it up to be materialized lazily.

If !isDematerializable(), this method is a noop.

Definition at line 41 of file Globals.cpp.

References llvm::Module::dematerialize(), and getParent().

void GlobalValue::destroyConstant ( ) [override, virtual]

Override from Constant class.

Override destroyConstant to make sure it doesn't get called on GlobalValue's because they shouldn't be treated like other constants.

Reimplemented from llvm::Constant.

Definition at line 47 of file Globals.cpp.

References llvm_unreachable.

virtual void llvm::GlobalValue::eraseFromParent ( ) [pure virtual]

This method unlinks 'this' from the containing module and deletes it.

Implemented in llvm::Function, llvm::GlobalVariable, and llvm::GlobalAlias.

Reimplemented in llvm::GlobalObject.

Definition at line 131 of file GlobalValue.h.

References getComdat().

Definition at line 160 of file GlobalValue.h.

References DllStorageClass.

Referenced by copyAttributesFrom(), and getEncodedDLLStorageClass().

static LinkageTypes llvm::GlobalValue::getLinkOnceLinkage ( bool  ODR) [inline, static]

Definition at line 185 of file GlobalValue.h.

References LinkOnceAnyLinkage, and LinkOnceODRLinkage.

Get the module that this global value is contained inside of...

Definition at line 359 of file GlobalValue.h.

References Parent.

Referenced by AddAlignmentAssumptions(), AllCallersPassInValidPointerForArgument(), callIntrinsic(), changeToUnreachable(), checkStringCopyLibFuncSignature(), CloneDebugInfoMetadata(), llvm::orc::cloneFunctionDecl(), llvm::orc::cloneGlobalVariableDecl(), combineInstructionsOverFunction(), CombineUAddWithOverflow(), llvm::GlobalAlias::create(), llvm::IRBuilderBase::CreateAssumption(), llvm::IRBuilderBase::CreateGCRelocate(), CreateGCRelocates(), llvm::IRBuilderBase::CreateGCResult(), llvm::IRBuilderBase::CreateGCStatepointCall(), llvm::IRBuilderBase::CreateGCStatepointInvoke(), llvm::IRBuilderBase::CreateGlobalString(), llvm::IRBuilderBase::CreateLifetimeEnd(), llvm::IRBuilderBase::CreateLifetimeStart(), llvm::IRBuilderBase::CreateMemCpy(), llvm::IRBuilderBase::CreateMemMove(), llvm::IRBuilderBase::CreateMemSet(), createStubLandingPad(), dematerialize(), llvm::EmitBinaryFloatFnCall(), llvm::EmitFPutC(), llvm::EmitFPutS(), llvm::EmitFWrite(), llvm::AsmPrinter::EmitGlobalVariable(), llvm::AArch64TargetLowering::emitLoadLinked(), llvm::ARMTargetLowering::emitLoadLinked(), llvm::EmitMemChr(), llvm::EmitMemCmp(), llvm::EmitMemCpyChk(), llvm::EmitPutChar(), llvm::EmitPutS(), llvm::AArch64TargetLowering::emitStoreConditional(), llvm::ARMTargetLowering::emitStoreConditional(), llvm::EmitStrChr(), llvm::EmitStrCpy(), llvm::EmitStrLen(), llvm::EmitStrNCmp(), llvm::EmitStrNCpy(), llvm::EmitStrNLen(), llvm::EmitUnaryFloatFnCall(), llvm::GlobalAlias::eraseFromParent(), llvm::GlobalVariable::eraseFromParent(), llvm::Function::eraseFromParent(), llvm::CodeExtractor::extractCodeRegion(), llvm::findAllNVVMAnnotation(), findBasePointer(), llvm::findOneNVVMAnnotation(), forceRenaming(), generateUnsignedDivisionCode(), llvm::CallSiteBase< Function, Value, User, Instruction, CallInst, InvokeInst, User::op_iterator >::getCaller(), getComdatGVForCOFF(), llvm::RegionBase< Tr >::getDepth(), llvm::ScalarEvolution::getEffectiveSCEVType(), llvm::Trace::getModule(), llvm::BasicBlock::getModule(), getModuleFromVal(), llvm::ScalarEvolution::getOffsetOfExpr(), llvm::CallGraph::getOrInsertFunction(), getParent(), llvm::MCJIT::getPointerToFunction(), llvm::ScalarEvolution::getSizeOfExpr(), llvm::SparcTargetLowering::getSRetArgSize(), llvm::ScalarEvolution::getTypeSizeInBits(), llvm::MachineModuleInfo::getWinEHParent(), llvm::GlobalVariable::GlobalVariable(), HandleByValArgument(), hasDebugInfo(), hasReturnsTwiceAttr(), INITIALIZE_PASS(), InlineCallIfPossible(), llvm::InlineFunction(), InsertSafepointPoll(), insertSinCosCall(), insertUseHolderAfter(), isDematerializable(), llvm::isImageReadOnly(), llvm::isImageReadWrite(), llvm::isImageWriteOnly(), llvm::isSampler(), llvm::lintFunction(), LLVMGetNextFunction(), LLVMGetNextGlobal(), LLVMGetPreviousFunction(), LLVMGetPreviousGlobal(), llvm::AsmPrinter::lowerConstant(), llvm::LowerDbgDeclare(), llvm::IntrinsicLowering::LowerToByteSwap(), llvm::ARMTargetLowering::makeDMB(), makeStatepointExplicitImpl(), llvm::orc::makeStub(), materialize(), llvm::orc::moveFunctionBody(), llvm::orc::moveGlobalVariableInitializer(), OptimizeGlobalAddressOfMalloc(), parentFunctionOfValue(), PerformHeapAllocSRoA(), llvm::Value::print(), llvm::Function::print(), PrintOps(), ProcessUGT_ADDCST_ADD(), ProcessUMulZExtIdiom(), promoteSingleBlockAlloca(), llvm::GlobalAlias::removeFromParent(), llvm::GlobalVariable::removeFromParent(), llvm::Function::removeFromParent(), ReplaceCallWith(), ReplaceWithStatepoint(), rewriteSingleStoreAlloca(), llvm::TargetLibraryAnalysis::run(), llvm::LibCallAliasAnalysis::runOnFunction(), llvm::LazyValueInfo::runOnFunction(), llvm::StackProtector::runOnFunction(), setUsedInitializer(), SRAGlobal(), SwitchToLookupTable(), TryToShrinkGlobalToBoolean(), upgradeGlobalArray(), llvm::UpgradeIntrinsicCall(), UpgradeIntrinsicFunction1(), UpgradeSSE41Function(), UpgradeX86IntrinsicsWith8BitMask(), usedInOneFunc(), llvm::InstCombiner::visitCallInst(), and llvm::InstCombiner::visitFPTrunc().

Definition at line 360 of file GlobalValue.h.

References Parent.

static StringRef llvm::GlobalValue::getRealLinkageName ( StringRef  Name) [inline, static]

If special LLVM prefix that is used to inform the asm printer to not emit usual symbol prefix before the symbol name is used then return linkage name after skipping this special LLVM prefix.

Definition at line 303 of file GlobalValue.h.

References llvm::StringRef::empty(), Name, and llvm::StringRef::substr().

Referenced by llvm::DwarfUnit::addLinkageName(), llvm::Win64Exception::beginFunction(), and sanitizeFunctionName().

const char * GlobalValue::getSection ( ) const
static LinkageTypes llvm::GlobalValue::getWeakLinkage ( bool  ODR) [inline, static]

Definition at line 188 of file GlobalValue.h.

References WeakAnyLinkage, and WeakODRLinkage.

bool llvm::GlobalValue::hasComdat ( ) const [inline]

Definition at line 136 of file GlobalValue.h.

References DefaultVisibility, and Visibility.

Referenced by bindsLocally(), and llvm::AArch64Subtarget::ClassifyGlobalReference().

Definition at line 163 of file GlobalValue.h.

References DLLImportStorageClass, and DllStorageClass.

Referenced by isSimpleEnoughValueToCommitHelper().

Definition at line 264 of file GlobalValue.h.

References isLinkOnceODRLinkage(), and Linkage.

Referenced by llvm::canBeOmittedFromSymbolTable().

Definition at line 138 of file GlobalValue.h.

References ProtectedVisibility, and Visibility.

bool llvm::GlobalValue::hasSection ( ) const [inline]

Definition at line 268 of file GlobalValue.h.

References isWeakAnyLinkage(), and Linkage.

Definition at line 271 of file GlobalValue.h.

References isWeakODRLinkage(), and Linkage.

static bool llvm::GlobalValue::isAppendingLinkage ( LinkageTypes  Linkage) [inline, static]

Definition at line 213 of file GlobalValue.h.

References AppendingLinkage.

Referenced by hasAppendingLinkage().

Definition at line 195 of file GlobalValue.h.

References AvailableExternallyLinkage.

Referenced by hasAvailableExternallyLinkage().

static bool llvm::GlobalValue::isCommonLinkage ( LinkageTypes  Linkage) [inline, static]

Definition at line 228 of file GlobalValue.h.

References CommonLinkage.

Referenced by hasCommonLinkage().

Returns true if this function was loaded from a GVMaterializer that's still attached to its Module and that knows how to dematerialize the function.

Definition at line 35 of file Globals.cpp.

References getParent(), and llvm::Module::isDematerializable().

static bool llvm::GlobalValue::isDiscardableIfUnused ( LinkageTypes  Linkage) [inline, static]

Whether the definition of this global may be discarded if it is not used in its compilation unit.

Definition at line 234 of file GlobalValue.h.

References isLinkOnceLinkage(), and isLocalLinkage().

Referenced by isGOTEquivalentCandidate(), and makeVisible().

Definition at line 288 of file GlobalValue.h.

References Linkage.

static bool llvm::GlobalValue::isExternalLinkage ( LinkageTypes  Linkage) [inline, static]

Definition at line 192 of file GlobalValue.h.

References ExternalLinkage.

Referenced by hasExternalLinkage(), and llvm::GlobalAlias::isValidLinkage().

static bool llvm::GlobalValue::isExternalWeakLinkage ( LinkageTypes  Linkage) [inline, static]

Definition at line 225 of file GlobalValue.h.

References ExternalWeakLinkage.

Referenced by hasExternalWeakLinkage().

static bool llvm::GlobalValue::isInternalLinkage ( LinkageTypes  Linkage) [inline, static]

Definition at line 216 of file GlobalValue.h.

References InternalLinkage.

Referenced by hasInternalLinkage(), and isLocalLinkage().

static bool llvm::GlobalValue::isLinkOnceLinkage ( LinkageTypes  Linkage) [inline, static]
static bool llvm::GlobalValue::isLinkOnceODRLinkage ( LinkageTypes  Linkage) [inline, static]

Definition at line 198 of file GlobalValue.h.

References LinkOnceODRLinkage.

Referenced by hasLinkOnceODRLinkage().

static bool llvm::GlobalValue::isLocalLinkage ( LinkageTypes  Linkage) [inline, static]

If this function's Module is being lazily streamed in functions from disk or some other source, this method can be used to check to see if the function has been read in yet or not.

Reimplemented in llvm::Function.

Definition at line 30 of file Globals.cpp.

References F().

static bool llvm::GlobalValue::isPrivateLinkage ( LinkageTypes  Linkage) [inline, static]

Definition at line 219 of file GlobalValue.h.

References PrivateLinkage.

Referenced by hasPrivateLinkage(), and isLocalLinkage().

If the value is "Thread Local", its value isn't shared by the threads.

Definition at line 148 of file GlobalValue.h.

References getThreadLocalMode(), and NotThreadLocal.

Referenced by llvm::ExecutionEngine::EmitGlobalVariable(), llvm::SelectionDAG::getGlobalAddress(), llvm::TargetLoweringObjectFile::getKindForGlobal(), and isSimpleEnoughValueToCommitHelper().

static bool llvm::GlobalValue::isWeakAnyLinkage ( LinkageTypes  Linkage) [inline, static]

Definition at line 204 of file GlobalValue.h.

References WeakAnyLinkage.

Referenced by hasWeakAnyLinkage(), and isWeakLinkage().

static bool llvm::GlobalValue::isWeakForLinker ( LinkageTypes  Linkage) [inline, static]

Whether the definition of this global may be replaced at link time.

NB: Using this method outside of the code generators is almost always a mistake: when working at the IR level use mayBeOverridden instead as it knows about ODR semantics.

Definition at line 250 of file GlobalValue.h.

References AvailableExternallyLinkage, CommonLinkage, ExternalWeakLinkage, LinkOnceAnyLinkage, LinkOnceODRLinkage, WeakAnyLinkage, and WeakODRLinkage.

Referenced by llvm::AArch64Subtarget::ClassifyGlobalReference(), getSelectionForCOFF(), llvm::ARMSubtarget::GVIsIndirectSymbol(), llvm::TargetLowering::isOffsetFoldingLegal(), PrepareCall(), llvm::TargetLoweringObjectFileMachO::SelectSectionForGlobal(), and llvm::TargetLoweringObjectFile::shouldPutJumpTableInFunctionSection().

Definition at line 294 of file GlobalValue.h.

References isWeakForLinker(), and Linkage.

Referenced by llvm::GlobalVariable::hasUniqueInitializer(), and isWeakForLinker().

static bool llvm::GlobalValue::isWeakLinkage ( LinkageTypes  Linkage) [inline, static]

Definition at line 210 of file GlobalValue.h.

References isWeakAnyLinkage(), and isWeakODRLinkage().

Referenced by hasWeakLinkage(), and llvm::GlobalAlias::isValidLinkage().

static bool llvm::GlobalValue::isWeakODRLinkage ( LinkageTypes  Linkage) [inline, static]

Definition at line 207 of file GlobalValue.h.

References WeakODRLinkage.

Referenced by hasWeakODRLinkage(), and isWeakLinkage().

std::error_code GlobalValue::materialize ( )

Make sure this GlobalValue is fully read.

If the module is corrupt, this returns true and fills in the optional string with information about the problem. If successful, this returns false.

Definition at line 38 of file Globals.cpp.

References getParent(), and llvm::Module::materialize().

Referenced by llvm::legacy::FunctionPassManager::run().

static bool llvm::GlobalValue::mayBeOverridden ( LinkageTypes  Linkage) [inline, static]

Whether the definition of this global may be replaced by something non-equivalent at link time.

For example, if a function has weak linkage then the code defining it may be replaced by different code.

Definition at line 241 of file GlobalValue.h.

References CommonLinkage, ExternalWeakLinkage, LinkOnceAnyLinkage, and WeakAnyLinkage.

Referenced by llvm::InlineCostAnalysis::getInlineCost(), and llvm::ObjectSizeOffsetVisitor::visitGlobalAlias().

Definition at line 292 of file GlobalValue.h.

References Linkage, and mayBeOverridden().

Referenced by llvm::GlobalVariable::hasDefinitiveInitializer(), and mayBeOverridden().

virtual void llvm::GlobalValue::removeFromParent ( ) [pure virtual]

This method unlinks 'this' from the containing module, but does not delete it.

Implemented in llvm::Function, llvm::GlobalVariable, and llvm::GlobalAlias.

Definition at line 169 of file GlobalValue.h.

References llvm::C, and DllStorageClass.

Referenced by copyAttributesFrom(), and UpgradeDLLImportExportLinkage().

void llvm::GlobalValue::setThreadLocal ( bool  Val) [inline]

Definition at line 149 of file GlobalValue.h.

References GeneralDynamicTLSModel, NotThreadLocal, and setThreadLocalMode().

void llvm::GlobalValue::setUnnamedAddr ( bool  Val) [inline]

Member Data Documentation

Definition at line 101 of file GlobalValue.h.

The intrinsic ID for this subclass (which must be a Function).

This member is defined by this class, but not used for anything. Subclasses can use it to store their intrinsic ID, if they have one.

This is stored here to save space in Function on 64-bit hosts.

Definition at line 99 of file GlobalValue.h.

Referenced by llvm::Function::getIntrinsicID(), and llvm::Function::recalculateIntrinsicID().

Definition at line 110 of file GlobalValue.h.

Referenced by getParent().

Definition at line 84 of file GlobalValue.h.

Referenced by getThreadLocalMode().

Definition at line 81 of file GlobalValue.h.

Referenced by hasUnnamedAddr(), and setUnnamedAddr().


The documentation for this class was generated from the following files: