#include "LLVMContextImpl.h"
#include "llvm/IR/ConstantRange.h"
#include "llvm/IR/Constants.h"
#include "llvm/IR/DerivedTypes.h"
#include "llvm/IR/GlobalAlias.h"
#include "llvm/IR/GlobalValue.h"
#include "llvm/IR/GlobalVariable.h"
#include "llvm/IR/Module.h"
#include "llvm/Support/Error.h"
#include "llvm/Support/ErrorHandling.h"
#include "llvm/Support/MD5.h"
#include "llvm/TargetParser/Triple.h"
usingnamespacellvm;
static_assert …;
static_assert …;
bool GlobalValue::isMaterializable() const { … }
Error GlobalValue::materialize() { … }
void GlobalValue::destroyConstantImpl() { … }
Value *GlobalValue::handleOperandChangeImpl(Value *From, Value *To) { … }
void GlobalValue::copyAttributesFrom(const GlobalValue *Src) { … }
GlobalValue::GUID GlobalValue::getGUID(StringRef GlobalName) { … }
void GlobalValue::removeFromParent() { … }
void GlobalValue::eraseFromParent() { … }
GlobalObject::~GlobalObject() { … }
bool GlobalValue::isInterposable() const { … }
bool GlobalValue::canBenefitFromLocalAlias() const { … }
const DataLayout &GlobalValue::getDataLayout() const { … }
void GlobalObject::setAlignment(MaybeAlign Align) { … }
void GlobalObject::setAlignment(Align Align) { … }
void GlobalObject::copyAttributesFrom(const GlobalObject *Src) { … }
std::string GlobalValue::getGlobalIdentifier(StringRef Name,
GlobalValue::LinkageTypes Linkage,
StringRef FileName) { … }
std::string GlobalValue::getGlobalIdentifier() const { … }
StringRef GlobalValue::getSection() const { … }
const Comdat *GlobalValue::getComdat() const { … }
void GlobalObject::setComdat(Comdat *C) { … }
StringRef GlobalValue::getPartition() const { … }
void GlobalValue::setPartition(StringRef S) { … }
SanitizerMetadata;
const SanitizerMetadata &GlobalValue::getSanitizerMetadata() const { … }
void GlobalValue::setSanitizerMetadata(SanitizerMetadata Meta) { … }
void GlobalValue::removeSanitizerMetadata() { … }
void GlobalValue::setNoSanitizeMetadata() { … }
StringRef GlobalObject::getSectionImpl() const { … }
void GlobalObject::setSection(StringRef S) { … }
bool GlobalValue::isNobuiltinFnDef() const { … }
bool GlobalValue::isDeclaration() const { … }
bool GlobalObject::canIncreaseAlignment() const { … }
template <typename Operation>
static const GlobalObject *
findBaseObject(const Constant *C, DenseSet<const GlobalAlias *> &Aliases,
const Operation &Op) { … }
const GlobalObject *GlobalValue::getAliaseeObject() const { … }
bool GlobalValue::isAbsoluteSymbolRef() const { … }
std::optional<ConstantRange> GlobalValue::getAbsoluteSymbolRange() const { … }
bool GlobalValue::canBeOmittedFromSymbolTable() const { … }
GlobalVariable::GlobalVariable(Type *Ty, bool constant, LinkageTypes Link,
Constant *InitVal, const Twine &Name,
ThreadLocalMode TLMode, unsigned AddressSpace,
bool isExternallyInitialized)
: … { … }
GlobalVariable::GlobalVariable(Module &M, Type *Ty, bool constant,
LinkageTypes Link, Constant *InitVal,
const Twine &Name, GlobalVariable *Before,
ThreadLocalMode TLMode,
std::optional<unsigned> AddressSpace,
bool isExternallyInitialized)
: … { … }
void GlobalVariable::removeFromParent() { … }
void GlobalVariable::eraseFromParent() { … }
void GlobalVariable::setInitializer(Constant *InitVal) { … }
void GlobalVariable::replaceInitializer(Constant *InitVal) { … }
void GlobalVariable::copyAttributesFrom(const GlobalVariable *Src) { … }
void GlobalVariable::dropAllReferences() { … }
void GlobalVariable::setCodeModel(CodeModel::Model CM) { … }
GlobalAlias::GlobalAlias(Type *Ty, unsigned AddressSpace, LinkageTypes Link,
const Twine &Name, Constant *Aliasee,
Module *ParentModule)
: … { … }
GlobalAlias *GlobalAlias::create(Type *Ty, unsigned AddressSpace,
LinkageTypes Link, const Twine &Name,
Constant *Aliasee, Module *ParentModule) { … }
GlobalAlias *GlobalAlias::create(Type *Ty, unsigned AddressSpace,
LinkageTypes Linkage, const Twine &Name,
Module *Parent) { … }
GlobalAlias *GlobalAlias::create(Type *Ty, unsigned AddressSpace,
LinkageTypes Linkage, const Twine &Name,
GlobalValue *Aliasee) { … }
GlobalAlias *GlobalAlias::create(LinkageTypes Link, const Twine &Name,
GlobalValue *Aliasee) { … }
GlobalAlias *GlobalAlias::create(const Twine &Name, GlobalValue *Aliasee) { … }
void GlobalAlias::removeFromParent() { … }
void GlobalAlias::eraseFromParent() { … }
void GlobalAlias::setAliasee(Constant *Aliasee) { … }
const GlobalObject *GlobalAlias::getAliaseeObject() const { … }
GlobalIFunc::GlobalIFunc(Type *Ty, unsigned AddressSpace, LinkageTypes Link,
const Twine &Name, Constant *Resolver,
Module *ParentModule)
: … { … }
GlobalIFunc *GlobalIFunc::create(Type *Ty, unsigned AddressSpace,
LinkageTypes Link, const Twine &Name,
Constant *Resolver, Module *ParentModule) { … }
void GlobalIFunc::removeFromParent() { … }
void GlobalIFunc::eraseFromParent() { … }
const Function *GlobalIFunc::getResolverFunction() const { … }
void GlobalIFunc::applyAlongResolverPath(
function_ref<void(const GlobalValue &)> Op) const { … }