LLVM API Documentation
#include <GlobalObject.h>
Public Member Functions | |
unsigned | getAlignment () const |
void | setAlignment (unsigned Align) |
bool | hasSection () const |
const char * | getSection () const |
void | setSection (StringRef S) |
bool | hasComdat () const |
const Comdat * | getComdat () const |
Comdat * | getComdat () |
void | setComdat (Comdat *C) |
void | copyAttributesFrom (const GlobalValue *Src) override |
Static Public Member Functions | |
static bool | classof (const Value *V) |
Protected Member Functions | |
GlobalObject (Type *Ty, ValueTy VTy, Use *Ops, unsigned NumOps, LinkageTypes Linkage, const Twine &Name) | |
Protected Attributes | |
std::string | Section |
Comdat * | ObjComdat |
Definition at line 26 of file GlobalObject.h.
llvm::GlobalObject::GlobalObject | ( | Type * | Ty, |
ValueTy | VTy, | ||
Use * | Ops, | ||
unsigned | NumOps, | ||
LinkageTypes | Linkage, | ||
const Twine & | Name | ||
) | [inline, protected] |
Definition at line 30 of file GlobalObject.h.
References llvm::GlobalValue::setGlobalValueSubClassData().
static bool llvm::GlobalObject::classof | ( | const Value * | V | ) | [inline, static] |
Reimplemented from llvm::GlobalValue.
Reimplemented in llvm::Function, and llvm::GlobalVariable.
Definition at line 56 of file GlobalObject.h.
References llvm::Value::FunctionVal, llvm::Value::getValueID(), and llvm::Value::GlobalVariableVal.
void GlobalObject::copyAttributesFrom | ( | const GlobalValue * | Src | ) | [override, virtual] |
Copy all additional attributes (those not needed to create a GlobalValue) from the GlobalValue Src to this one.
copyAttributesFrom - copy all additional attributes (those not needed to create a GlobalValue) from the GlobalValue Src to this one.
Reimplemented from llvm::GlobalValue.
Reimplemented in llvm::Function, and llvm::GlobalVariable.
Definition at line 84 of file Globals.cpp.
References setAlignment(), and setSection().
unsigned llvm::GlobalObject::getAlignment | ( | ) | const [inline] |
Reimplemented from llvm::GlobalValue.
Definition at line 39 of file GlobalObject.h.
References llvm::GlobalValue::getGlobalValueSubClassData().
Referenced by llvm::DataLayout::getPreferredAlignment(), llvm::AssemblyWriter::printFunction(), llvm::AssemblyWriter::printGlobal(), setAlignment(), SRAGlobal(), and llvm::ObjectSizeOffsetVisitor::visitGlobalVariable().
const Comdat* llvm::GlobalObject::getComdat | ( | ) | const [inline] |
Reimplemented from llvm::GlobalValue.
Definition at line 49 of file GlobalObject.h.
References ObjComdat.
Referenced by hasComdat(), llvm::AssemblyWriter::printFunction(), and llvm::AssemblyWriter::printGlobal().
Comdat* llvm::GlobalObject::getComdat | ( | ) | [inline] |
Reimplemented from llvm::GlobalValue.
Definition at line 50 of file GlobalObject.h.
References ObjComdat.
const char* llvm::GlobalObject::getSection | ( | ) | const [inline] |
Reimplemented from llvm::GlobalValue.
Definition at line 45 of file GlobalObject.h.
References Section.
Referenced by llvm::AsmPrinter::EmitSpecialLLVMGlobal(), hasSection(), llvm::AssemblyWriter::printFunction(), and llvm::AssemblyWriter::printGlobal().
bool llvm::GlobalObject::hasComdat | ( | ) | const [inline] |
Reimplemented from llvm::GlobalValue.
Definition at line 48 of file GlobalObject.h.
References getComdat().
Referenced by llvm::AssemblyWriter::printFunction(), and llvm::AssemblyWriter::printGlobal().
bool llvm::GlobalObject::hasSection | ( | ) | const [inline] |
Reimplemented from llvm::GlobalValue.
Definition at line 44 of file GlobalObject.h.
References llvm::StringRef::empty(), and getSection().
Referenced by isSuitableForBSS(), llvm::AssemblyWriter::printFunction(), and llvm::AssemblyWriter::printGlobal().
void GlobalObject::setAlignment | ( | unsigned | Align | ) |
Definition at line 76 of file Globals.cpp.
References getAlignment(), llvm::Log2_32(), and llvm::GlobalValue::setGlobalValueSubClassData().
Referenced by copyAttributesFrom(), and SRAGlobal().
void llvm::GlobalObject::setComdat | ( | Comdat * | C | ) | [inline] |
Definition at line 51 of file GlobalObject.h.
References llvm::CallingConv::C, and ObjComdat.
void GlobalObject::setSection | ( | StringRef | S | ) |
Definition at line 111 of file Globals.cpp.
References Section.
Referenced by assureFPCallStub(), copyAttributesFrom(), createFPFnStub(), llvm::JumpInstrTables::insertEntry(), and setUsedInitializer().
Comdat* llvm::GlobalObject::ObjComdat [protected] |
Definition at line 37 of file GlobalObject.h.
Referenced by getComdat(), and setComdat().
std::string llvm::GlobalObject::Section [protected] |
Definition at line 36 of file GlobalObject.h.
Referenced by getSection(), and setSection().