class GlobalIndirectSymbol
Declaration
class GlobalIndirectSymbol : public GlobalValue { /* full declaration omitted */ };
Description
This is an important base class in LLVM. It provides the common facilities of all constant values in an LLVM program. A constant is a value that is immutable at runtime. Functions are constants because their address is immutable. Same with global variables. All constants share the capabilities provided in this class. All constants can have a null value. They can have an operand list. Constants can be simple (integer and floating point values), complex (arrays and structures), or expression based (computations yielding a constant value composed of only certain operators and other constant values). Note that Constants are immutable (once created they never change) and are fully shared by structural equivalence. This means that two structurally equivalent constants will always have the same address. Constants are created on demand as needed and never deleted: thus clients don't have to worry about the lifetime of the objects. LLVM Constant Representation
Declared at: llvm/include/llvm/IR/GlobalIndirectSymbol.h:28
Inherits from: GlobalValue
Member Variables
Inherited from GlobalValue:
- protected ValueType
- protected Linkage
- protected Visibility
- protected UnnamedAddrVal
- protected DllStorageClass
- protected ThreadLocal
- protected HasLLVMReservedName
- protected IsDSOLocal
- protected HasPartition
- protected IntID
- protected Parent
- protected static GlobalValueSubClassDataBits = 16
Inherited from Value:
- protected SubclassOptionalData
- protected NumUserOperands
- protected IsUsedByMD
- protected HasName
- protected HasHungOffUses
- protected HasDescriptor
- public static MaxAlignmentExponent = 29
- public static MaximumAlignment = 1U << MaxAlignmentExponent
Method Overview
- protected GlobalIndirectSymbol(llvm::Type * Ty, llvm::Value::ValueTy VTy, unsigned int AddressSpace, llvm::GlobalValue::LinkageTypes Linkage, const llvm::Twine & Name, llvm::Constant * Symbol)
- public GlobalIndirectSymbol(const llvm::GlobalIndirectSymbol &)
- public static bool classof(const llvm::Value * V)
- public void copyAttributesFrom(const llvm::GlobalValue * Src)
- public const llvm::GlobalObject * getBaseObject() const
- public llvm::GlobalObject * getBaseObject()
- public const llvm::GlobalObject * getBaseObject(const llvm::DataLayout & DL, llvm::APInt & Offset) const
- public llvm::GlobalObject * getBaseObject(const llvm::DataLayout & DL, llvm::APInt & Offset)
- public const llvm::Constant * getIndirectSymbol() const
- public llvm::Constant * getIndirectSymbol()
- public void setIndirectSymbol(llvm::Constant * Symbol)
Inherited from GlobalValue:
- public canBeOmittedFromSymbolTable
- public canIncreaseAlignment
- public classof
- protected copyAttributesFrom
- public dropLLVMManglingEscape
- public eraseFromParent
- public getAbsoluteSymbolRange
- public getAddressSpace
- public getAlignment
- public getBaseObject
- public getBaseObject
- public getComdat
- public getComdat
- public getDLLStorageClass
- public getGUID
- public getGUID
- public getGlobalIdentifier
- public getGlobalIdentifier
- protected getGlobalValueSubClassData
- public getLinkOnceLinkage
- public getLinkage
- public getMinUnnamedAddr
- public getParent
- public getParent
- public getPartition
- public getSection
- public getThreadLocalMode
- public getType
- public getUnnamedAddr
- public getValueType
- public getVisibility
- public getWeakLinkage
- public hasAppendingLinkage
- public hasAtLeastLocalUnnamedAddr
- public hasAvailableExternallyLinkage
- public hasComdat
- public hasCommonLinkage
- public hasDLLExportStorageClass
- public hasDLLImportStorageClass
- public hasDefaultVisibility
- public hasExactDefinition
- public hasExternalLinkage
- public hasExternalWeakLinkage
- public hasGlobalUnnamedAddr
- public hasHiddenVisibility
- public hasInternalLinkage
- public hasLinkOnceLinkage
- public hasLinkOnceODRLinkage
- public hasLocalLinkage
- public hasPartition
- public hasPrivateLinkage
- public hasProtectedVisibility
- public hasSection
- public hasValidDeclarationLinkage
- public hasWeakAnyLinkage
- public hasWeakLinkage
- public hasWeakODRLinkage
- public isAbsoluteSymbolRef
- public isAppendingLinkage
- public isAvailableExternallyLinkage
- public isCommonLinkage
- public isDSOLocal
- public isDeclaration
- public isDeclarationForLinker
- public isDefinitionExact
- public isDiscardableIfUnused
- public isDiscardableIfUnused
- public isExternalLinkage
- public isExternalWeakLinkage
- public isInternalLinkage
- public isInterposable
- public isInterposableLinkage
- public isLinkOnceLinkage
- public isLinkOnceODRLinkage
- public isLocalLinkage
- public isMaterializable
- public isPrivateLinkage
- public isStrongDefinitionForLinker
- public isThreadLocal
- public isValidDeclarationLinkage
- public isWeakAnyLinkage
- public isWeakForLinker
- public isWeakForLinker
- public isWeakLinkage
- public isWeakODRLinkage
- public materialize
- public removeFromParent
- public setDLLStorageClass
- public setDSOLocal
- protected setGlobalValueSubClassData
- public setLinkage
- protected setParent
- public setPartition
- public setThreadLocal
- public setThreadLocalMode
- public setUnnamedAddr
- public setVisibility
Inherited from Constant:
- public canTrap
- public classof
- public containsConstantExpression
- public containsUndefElement
- public destroyConstant
- public getAggregateElement
- public getAggregateElement
- public getAllOnesValue
- public getIntegerValue
- public getNullValue
- public getSplatValue
- public getUniqueInteger
- public handleOperandChange
- public hasExactInverseFP
- public isAllOnesValue
- public isConstantUsed
- public isDLLImportDependent
- public isElementWiseEqual
- public isFiniteNonZeroFP
- public isMinSignedValue
- public isNaN
- public isNegativeZeroValue
- public isNormalFP
- public isNotMinSignedValue
- public isNotOneValue
- public isNullValue
- public isOneValue
- public isThreadDependent
- public isZeroValue
- public needsRelocation
- public removeDeadConstantUsers
- public replaceUndefsWith
- public stripPointerCasts
- public stripPointerCasts
Inherited from User:
- protected Op
- protected Op
- protected OpFrom
- protected allocHungoffUses
- public classof
- public dropAllReferences
- public getDescriptor
- public getDescriptor
- public getNumOperands
- public getOperand
- public getOperandList
- public getOperandList
- public getOperandUse
- public getOperandUse
- protected growHungoffUses
- public op_begin
- public op_begin
- public op_end
- public op_end
- public operand_values
- public operand_values
- public operands
- public operands
- public replaceUsesOfWith
- public setGlobalVariableNumOperands
- public setNumHungOffUseOperands
- public setOperand
- public value_op_begin
- public value_op_begin
- public value_op_end
- public value_op_end
Inherited from Value:
- public DoPHITranslation
- public DoPHITranslation
- public addUse
- public assertModuleIsMaterialized
- public assertModuleIsMaterializedImpl
- public clearSubclassOptionalData
- public deleteValue
- public dump
- public getContext
- public getName
- public getNumUses
- public getPointerAlignment
- public getPointerDereferenceableBytes
- public getRawSubclassOptionalData
- protected getSubclassDataFromValue
- public getType
- public getValueID
- public getValueName
- public hasNUses
- public hasNUsesOrMore
- public hasName
- public hasOneUse
- public hasSameSubclassOptionalData
- public hasValueHandle
- public isSwiftError
- public isUsedByMetadata
- public isUsedInBasicBlock
- public materialized_use_begin
- public materialized_use_begin
- public materialized_use_empty
- public materialized_user_begin
- public materialized_user_begin
- public materialized_users
- public materialized_users
- public materialized_uses
- public materialized_uses
- public mutateType
- public print
- public print
- public printAsOperand
- public printAsOperand
- public replaceAllUsesWith
- public replaceNonMetadataUsesWith
- public replaceUsesOutsideBlock
- public replaceUsesWithIf
- public reverseUseList
- public setName
- public setValueName
- protected setValueSubclassData
- public sortUseList
- public stripAndAccumulateConstantOffsets
- public stripAndAccumulateConstantOffsets
- public stripAndAccumulateInBoundsConstantOffsets
- public stripAndAccumulateInBoundsConstantOffsets
- public stripInBoundsConstantOffsets
- public stripInBoundsConstantOffsets
- public stripInBoundsOffsets
- public stripInBoundsOffsets
- public stripPointerCasts
- public stripPointerCasts
- public stripPointerCastsAndAliases
- public stripPointerCastsAndAliases
- public stripPointerCastsAndInvariantGroups
- public stripPointerCastsAndInvariantGroups
- public stripPointerCastsSameRepresentation
- public stripPointerCastsSameRepresentation
- public takeName
- public use_begin
- public use_begin
- public use_empty
- public use_end
- public use_end
- public user_back
- public user_back
- public user_begin
- public user_begin
- public user_empty
- public user_end
- public user_end
- public users
- public users
- public uses
- public uses
Methods
¶GlobalIndirectSymbol(
llvm::Type* Ty,
llvm::Value::ValueTy VTy,
unsigned int AddressSpace,
llvm::GlobalValue::LinkageTypes Linkage,
const llvm::Twine& Name,
llvm::Constant* Symbol)
GlobalIndirectSymbol(
llvm::Type* Ty,
llvm::Value::ValueTy VTy,
unsigned int AddressSpace,
llvm::GlobalValue::LinkageTypes Linkage,
const llvm::Twine& Name,
llvm::Constant* Symbol)
Declared at: llvm/include/llvm/IR/GlobalIndirectSymbol.h:30
Parameters
- llvm::Type* Ty
- llvm::Value::ValueTy VTy
- unsigned int AddressSpace
- llvm::GlobalValue::LinkageTypes Linkage
- const llvm::Twine& Name
- llvm::Constant* Symbol
¶GlobalIndirectSymbol(
const llvm::GlobalIndirectSymbol&)
GlobalIndirectSymbol(
const llvm::GlobalIndirectSymbol&)
Declared at: llvm/include/llvm/IR/GlobalIndirectSymbol.h:34
Parameters
- const llvm::GlobalIndirectSymbol&
¶static bool classof(const llvm::Value* V)
static bool classof(const llvm::Value* V)
Declared at: llvm/include/llvm/IR/GlobalIndirectSymbol.h:79
Parameters
- const llvm::Value* V
¶void copyAttributesFrom(
const llvm::GlobalValue* Src)
void copyAttributesFrom(
const llvm::GlobalValue* Src)
Declared at: llvm/include/llvm/IR/GlobalIndirectSymbol.h:45
Parameters
- const llvm::GlobalValue* Src
¶const llvm::GlobalObject* getBaseObject() const
const llvm::GlobalObject* getBaseObject() const
Declared at: llvm/include/llvm/IR/GlobalIndirectSymbol.h:61
¶llvm::GlobalObject* getBaseObject()
llvm::GlobalObject* getBaseObject()
Declared at: llvm/include/llvm/IR/GlobalIndirectSymbol.h:62
¶const llvm::GlobalObject* getBaseObject(
const llvm::DataLayout& DL,
llvm::APInt& Offset) const
const llvm::GlobalObject* getBaseObject(
const llvm::DataLayout& DL,
llvm::APInt& Offset) const
Declared at: llvm/include/llvm/IR/GlobalIndirectSymbol.h:67
Parameters
- const llvm::DataLayout& DL
- llvm::APInt& Offset
¶llvm::GlobalObject* getBaseObject(
const llvm::DataLayout& DL,
llvm::APInt& Offset)
llvm::GlobalObject* getBaseObject(
const llvm::DataLayout& DL,
llvm::APInt& Offset)
Declared at: llvm/include/llvm/IR/GlobalIndirectSymbol.h:72
Parameters
- const llvm::DataLayout& DL
- llvm::APInt& Offset
¶const llvm::Constant* getIndirectSymbol() const
const llvm::Constant* getIndirectSymbol() const
Declared at: llvm/include/llvm/IR/GlobalIndirectSymbol.h:53
¶llvm::Constant* getIndirectSymbol()
llvm::Constant* getIndirectSymbol()
Declared at: llvm/include/llvm/IR/GlobalIndirectSymbol.h:56
¶void setIndirectSymbol(llvm::Constant* Symbol)
void setIndirectSymbol(llvm::Constant* Symbol)
Description
These methods set and retrieve indirect symbol.
Declared at: llvm/include/llvm/IR/GlobalIndirectSymbol.h:50
Parameters
- llvm::Constant* Symbol