LLVM API Documentation
#include <GlobalAlias.h>
Definition at line 29 of file GlobalAlias.h.
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] |
Definition at line 270 of file Globals.cpp.
References create(), llvm::PointerType::getAddressSpace(), llvm::SequentialType::getElementType(), and llvm::GlobalValue::getType().
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().
const Constant* llvm::GlobalAlias::getAliasee | ( | ) | const [inline] |
Definition at line 83 of file GlobalAlias.h.
Referenced by getBaseObject(), hasUsesToReplace(), llvm::AssemblyWriter::printAlias(), and llvm::ObjectSizeOffsetVisitor::visitGlobalAlias().
Constant* llvm::GlobalAlias::getAliasee | ( | ) | [inline] |
Definition at line 86 of file GlobalAlias.h.
References llvm::User::getOperand().
const GlobalObject* llvm::GlobalAlias::getBaseObject | ( | ) | const [inline] |
Definition at line 90 of file GlobalAlias.h.
Referenced by getBaseObject().
GlobalObject* llvm::GlobalAlias::getBaseObject | ( | ) | [inline] |
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().
GlobalObject* llvm::GlobalAlias::getBaseObject | ( | const DataLayout & | DL, |
APInt & | Offset | ||
) | [inline] |
Definition at line 100 of file GlobalAlias.h.
References llvm::dyn_cast(), getAliasee(), and llvm::Value::stripAndAccumulateInBoundsConstantOffsets().
static bool llvm::GlobalAlias::isValidLinkage | ( | LinkageTypes | L | ) | [inline, static] |
Definition at line 105 of file GlobalAlias.h.
References llvm::GlobalValue::isExternalLinkage(), llvm::GlobalValue::isLinkOnceLinkage(), llvm::GlobalValue::isLocalLinkage(), and llvm::GlobalValue::isWeakLinkage().
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().
friend class SymbolTableListTraits< GlobalAlias, Module > [friend] |
Definition at line 30 of file GlobalAlias.h.