Lines Matching refs:InitVal
142 Constant *InitVal, const Twine &Name, in GlobalVariable() argument
147 InitVal != nullptr, Link, Name, AddressSpace), in GlobalVariable()
151 if (InitVal) { in GlobalVariable()
152 assert(InitVal->getType() == Ty && in GlobalVariable()
154 Op<0>() = InitVal; in GlobalVariable()
159 LinkageTypes Link, Constant *InitVal, in GlobalVariable() argument
165 InitVal != nullptr, Link, Name, AddressSpace), in GlobalVariable()
169 if (InitVal) { in GlobalVariable()
170 assert(InitVal->getType() == Ty && in GlobalVariable()
172 Op<0>() = InitVal; in GlobalVariable()
193 void GlobalVariable::setInitializer(Constant *InitVal) { in setInitializer() argument
194 if (!InitVal) { in setInitializer()
203 assert(InitVal->getType() == getType()->getElementType() && in setInitializer()
210 Op<0>().set(InitVal); in setInitializer()