LLVM API Documentation

Public Member Functions | Static Public Member Functions | Friends
llvm::GlobalAlias Class Reference

#include <GlobalAlias.h>

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

List of all members.

Public Member Functions

void * operator new (size_t s)
 DECLARE_TRANSPARENT_OPERAND_ACCESSORS (Constant)
 Provide fast operand accessors.
void removeFromParent () override
void eraseFromParent () override
void setAliasee (Constant *Aliasee)
 These methods retrive and set alias target.
const ConstantgetAliasee () const
ConstantgetAliasee ()
const GlobalObjectgetBaseObject () const
GlobalObjectgetBaseObject ()
const GlobalObjectgetBaseObject (const DataLayout &DL, APInt &Offset) const
GlobalObjectgetBaseObject (const DataLayout &DL, APInt &Offset)

Static Public Member Functions

static GlobalAliascreate (Type *Ty, unsigned AddressSpace, LinkageTypes Linkage, const Twine &Name, Constant *Aliasee, Module *Parent)
static GlobalAliascreate (Type *Ty, unsigned AddressSpace, LinkageTypes Linkage, const Twine &Name, Module *Parent)
static GlobalAliascreate (Type *Ty, unsigned AddressSpace, LinkageTypes Linkage, const Twine &Name, GlobalValue *Aliasee)
static GlobalAliascreate (LinkageTypes Linkage, const Twine &Name, GlobalValue *Aliasee)
static GlobalAliascreate (const Twine &Name, GlobalValue *Aliasee)
static bool isValidLinkage (LinkageTypes L)
static bool classof (const Value *V)

Friends

class SymbolTableListTraits< GlobalAlias, Module >

Detailed Description

Definition at line 29 of file GlobalAlias.h.


Member Function Documentation

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

Reimplemented from llvm::GlobalValue.

Definition at line 111 of file GlobalAlias.h.

References llvm::Value::getValueID(), and llvm::Value::GlobalAliasVal.

GlobalAlias * GlobalAlias::create ( Type Ty,
unsigned  AddressSpace,
LinkageTypes  Linkage,
const Twine Name,
Constant Aliasee,
Module Parent 
) [static]

If a parent module is specified, the alias is automatically inserted into the end of the specified module's alias list.

Definition at line 252 of file Globals.cpp.

Referenced by llvm::CloneModule(), create(), INITIALIZE_TM_PASS(), and LLVMAddAlias().

GlobalAlias * GlobalAlias::create ( Type Ty,
unsigned  AddressSpace,
LinkageTypes  Linkage,
const Twine Name,
Module Parent 
) [static]

Definition at line 258 of file Globals.cpp.

References create().

GlobalAlias * GlobalAlias::create ( Type Ty,
unsigned  AddressSpace,
LinkageTypes  Linkage,
const Twine Name,
GlobalValue Aliasee 
) [static]

Definition at line 264 of file Globals.cpp.

References create(), and llvm::GlobalValue::getParent().

GlobalAlias * GlobalAlias::create ( LinkageTypes  Linkage,
const Twine Name,
GlobalValue Aliasee 
) [static]
GlobalAlias * GlobalAlias::create ( const Twine Name,
GlobalValue Aliasee 
) [static]

Definition at line 277 of file Globals.cpp.

References create(), and llvm::GlobalValue::getLinkage().

Provide fast operand accessors.

void GlobalAlias::eraseFromParent ( ) [override, virtual]

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

Implements llvm::GlobalValue.

Definition at line 293 of file Globals.cpp.

References llvm::iplist< NodeTy, Traits >::erase(), llvm::Module::getAliasList(), and llvm::GlobalValue::getParent().

Definition at line 86 of file GlobalAlias.h.

References llvm::User::getOperand().

Definition at line 90 of file GlobalAlias.h.

Referenced by getBaseObject().

Definition at line 93 of file GlobalAlias.h.

References llvm::dyn_cast(), getAliasee(), and llvm::Value::stripInBoundsOffsets().

const GlobalObject* llvm::GlobalAlias::getBaseObject ( const DataLayout DL,
APInt Offset 
) const [inline]

Definition at line 97 of file GlobalAlias.h.

References getBaseObject().

static bool llvm::GlobalAlias::isValidLinkage ( LinkageTypes  L) [inline, static]
void* llvm::GlobalAlias::operator new ( size_t  s) [inline]

Reimplemented from llvm::User.

Definition at line 41 of file GlobalAlias.h.

void GlobalAlias::removeFromParent ( ) [override, virtual]

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

Implements llvm::GlobalValue.

Definition at line 289 of file Globals.cpp.

References llvm::Module::getAliasList(), llvm::GlobalValue::getParent(), and llvm::iplist< NodeTy, Traits >::remove().

void GlobalAlias::setAliasee ( Constant Aliasee)

These methods retrive and set alias target.

Definition at line 297 of file Globals.cpp.

References llvm::GlobalValue::getType(), llvm::Value::getType(), and llvm::User::setOperand().

Referenced by llvm::CloneModule().


Friends And Related Function Documentation

friend class SymbolTableListTraits< GlobalAlias, Module > [friend]

Definition at line 30 of file GlobalAlias.h.


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