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

Inherited from GlobalValue:

Inherited from Constant:

Inherited from User:

Inherited from Value:

Methods

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&)

Declared at: llvm/include/llvm/IR/GlobalIndirectSymbol.h:34

Parameters

const llvm::GlobalIndirectSymbol&

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)

Declared at: llvm/include/llvm/IR/GlobalIndirectSymbol.h:45

Parameters

const llvm::GlobalValue* Src

const llvm::GlobalObject* getBaseObject() const

Declared at: llvm/include/llvm/IR/GlobalIndirectSymbol.h:61

llvm::GlobalObject* getBaseObject()

Declared at: llvm/include/llvm/IR/GlobalIndirectSymbol.h:62

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)

Declared at: llvm/include/llvm/IR/GlobalIndirectSymbol.h:72

Parameters

const llvm::DataLayout& DL
llvm::APInt& Offset

const llvm::Constant* getIndirectSymbol() const

Declared at: llvm/include/llvm/IR/GlobalIndirectSymbol.h:53

llvm::Constant* getIndirectSymbol()

Declared at: llvm/include/llvm/IR/GlobalIndirectSymbol.h:56

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