15 #ifndef LLVM_IR_GLOBALOBJECT_H
16 #define LLVM_IR_GLOBALOBJECT_H
43 static const unsigned AlignmentMask = (1 <<
AlignmentBits) - 1;
48 unsigned AlignmentData = Data & AlignmentMask;
49 return (1u << AlignmentData) >> 1;
69 return V->
getValueID() == Value::FunctionVal ||
void setAlignment(unsigned Align)
unsigned getGlobalObjectSubClassData() const
Twine - A lightweight data structure for efficiently representing the concatenation of temporary valu...
A Use represents the edge between a Value definition and its users.
static const unsigned GlobalObjectSubClassDataBits
unsigned getAlignment() const
void setComdat(Comdat *C)
PointerType - Class to represent pointers.
const Comdat * getComdat() const
unsigned getValueID() const
Return an ID for the concrete type of this object.
const char * getSection() const
void copyAttributesFrom(const GlobalValue *Src) override
Copy all additional attributes (those not needed to create a GlobalValue) from the GlobalValue Src to...
static cl::opt< AlignMode > Align(cl::desc("Load/store alignment support"), cl::Hidden, cl::init(NoStrictAlign), cl::values(clEnumValN(StrictAlign,"aarch64-strict-align","Disallow all unaligned memory accesses"), clEnumValN(NoStrictAlign,"aarch64-no-strict-align","Allow unaligned memory accesses"), clEnumValEnd))
ValueTy
Concrete subclass of this.
LinkageTypes
An enumeration for the kinds of linkage for global values.
void setGlobalValueSubClassData(unsigned V)
static bool classof(const Value *V)
static const unsigned GlobalValueSubClassDataBits
unsigned getGlobalValueSubClassData() const
static const unsigned AlignmentBits
LLVM Value Representation.
GlobalObject(PointerType *Ty, ValueTy VTy, Use *Ops, unsigned NumOps, LinkageTypes Linkage, const Twine &Name)
StringRef - Represent a constant reference to a string, i.e.
void setSection(StringRef S)
void setGlobalObjectSubClassData(unsigned Val)
bool empty() const
empty - Check if the string is empty.