14#ifndef LLVM_IR_GLOBALALIAS_H
15#define LLVM_IR_GLOBALALIAS_H
64 void *
operator new(
size_t S) {
return User::operator
new(S, AllocMarker); }
65 void operator delete(
void *
Ptr) { User::operator
delete(
Ptr); }
104 return V->getValueID() == Value::GlobalAliasVal;
#define DEFINE_TRANSPARENT_OPERAND_ACCESSORS(CLASS, VALUECLASS)
Macro for generating out-of-class operand accessor definitions.
This is an important base class in LLVM.
This class represents an Operation in the Expression.
void eraseFromParent()
eraseFromParent - This method unlinks 'this' from the containing module and deletes it.
static bool isValidLinkage(LinkageTypes L)
const GlobalObject * getAliaseeObject() const
GlobalAlias & operator=(const GlobalAlias &)=delete
DECLARE_TRANSPARENT_OPERAND_ACCESSORS(Constant)
Provide fast operand accessors.
void setAliasee(Constant *Aliasee)
These methods retrieve and set alias target.
const Constant * getAliasee() const
static bool classof(const Value *V)
static GlobalAlias * create(Type *Ty, unsigned AddressSpace, LinkageTypes Linkage, const Twine &Name, Constant *Aliasee, Module *Parent)
If a parent module is specified, the alias is automatically inserted into the end of the specified mo...
GlobalAlias(const GlobalAlias &)=delete
void removeFromParent()
removeFromParent - This method unlinks 'this' from the containing module, but does not delete it.
GlobalObject * getAliaseeObject()
void copyAttributesFrom(const GlobalAlias *Src)
static bool isLocalLinkage(LinkageTypes Linkage)
static bool isLinkOnceLinkage(LinkageTypes Linkage)
static bool isAvailableExternallyLinkage(LinkageTypes Linkage)
static bool isExternalLinkage(LinkageTypes Linkage)
void copyAttributesFrom(const GlobalValue *Src)
Copy all additional attributes (those not needed to create a GlobalValue) from the GlobalValue Src to...
static bool isWeakLinkage(LinkageTypes Linkage)
LinkageTypes
An enumeration for the kinds of linkage for global values.
A Module instance is used to store all the information related to an LLVM module.
Twine - A lightweight data structure for efficiently representing the concatenation of temporary valu...
The instances of the Type class are immutable: once they are created, they are never changed.
LLVM Value Representation.
This file defines the ilist_node class template, which is a convenient base class for creating classe...
This is an optimization pass for GlobalISel generic memory operations.
FixedNumOperandTraits - determine the allocation regime of the Use array when it is a prefix to the U...
Compile-time customization of User operands.
Indicates this User has operands co-allocated.