Home | History | Annotate | Download | only in VMCore

Lines Matching refs:GlobalValue

1 //===-- Globals.cpp - Implement the GlobalValue & GlobalVariable class ----===//
10 // This file implements the GlobalValue & GlobalVariable classes for the VMCore
26 // GlobalValue Class
29 bool GlobalValue::isMaterializable() const {
32 bool GlobalValue::isDematerializable() const {
35 bool GlobalValue::Materialize(std::string *ErrInfo) {
38 void GlobalValue::Dematerialize() {
43 /// GlobalValue's because they shouldn't be treated like other constants.
44 void GlobalValue::destroyConstant() {
49 /// create a GlobalValue) from the GlobalValue Src to this one.
50 void GlobalValue::copyAttributesFrom(const GlobalValue *Src) {
57 void GlobalValue::setAlignment(unsigned Align) {
65 bool GlobalValue::isDeclaration() const {
86 : GlobalValue(PointerType::get(Ty, AddressSpace),
105 : GlobalValue(PointerType::get(Ty, AddressSpace),
177 void GlobalVariable::copyAttributesFrom(const GlobalValue *Src) {
179 GlobalValue::copyAttributesFrom(Src);
192 : GlobalValue(Ty, Value::GlobalAliasVal, &Op<0>(), 1, Link, Name) {
226 const GlobalValue *GlobalAlias::getAliasedGlobal() const {
230 if (const GlobalValue *GV = dyn_cast<GlobalValue>(C))
238 return cast<GlobalValue>(CE->getOperand(0));
241 const GlobalValue *GlobalAlias::resolveAliasedGlobal(bool stopOnWeak) const {
242 SmallPtrSet<const GlobalValue*, 3> Visited;
248 const GlobalValue *GV = getAliasedGlobal();