Searched refs:SGVar (Results 1 – 4 of 4) sorted by relevance
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Linker/ |
D | LinkModules.cpp | 347 auto *SGVar = dyn_cast<GlobalVariable>(&GV); in linkIfNeeded() local 348 if (DGVar && SGVar) { in linkIfNeeded() 349 if (DGVar->isDeclaration() && SGVar->isDeclaration() && in linkIfNeeded() 350 (!DGVar->isConstant() || !SGVar->isConstant())) { in linkIfNeeded() 352 SGVar->setConstant(false); in linkIfNeeded() 354 if (DGVar->hasCommonLinkage() && SGVar->hasCommonLinkage()) { in linkIfNeeded() 355 unsigned Align = std::max(DGVar->getAlignment(), SGVar->getAlignment()); in linkIfNeeded() 356 SGVar->setAlignment(Align); in linkIfNeeded()
|
D | IRMover.cpp | 494 GlobalVariable *copyGlobalVariableProto(const GlobalVariable *SGVar); 608 GlobalVariable *IRLinker::copyGlobalVariableProto(const GlobalVariable *SGVar) { in copyGlobalVariableProto() argument 613 new GlobalVariable(DstM, TypeMap.get(SGVar->getValueType()), in copyGlobalVariableProto() 614 SGVar->isConstant(), GlobalValue::ExternalLinkage, in copyGlobalVariableProto() 615 /*init*/ nullptr, SGVar->getName(), in copyGlobalVariableProto() 616 /*insertbefore*/ nullptr, SGVar->getThreadLocalMode(), in copyGlobalVariableProto() 617 SGVar->getType()->getAddressSpace()); in copyGlobalVariableProto() 618 NewDGV->setAlignment(SGVar->getAlignment()); in copyGlobalVariableProto() 619 NewDGV->copyAttributesFrom(SGVar); in copyGlobalVariableProto() 650 if (auto *SGVar = dyn_cast<GlobalVariable>(SGV)) { in copyGlobalValueProto() local [all …]
|
/external/llvm/lib/Linker/ |
D | LinkModules.cpp | 361 auto *SGVar = dyn_cast<GlobalVariable>(&GV); in linkIfNeeded() local 362 if (DGVar && SGVar) { in linkIfNeeded() 363 if (DGVar->isDeclaration() && SGVar->isDeclaration() && in linkIfNeeded() 364 (!DGVar->isConstant() || !SGVar->isConstant())) { in linkIfNeeded() 366 SGVar->setConstant(false); in linkIfNeeded() 368 if (DGVar->hasCommonLinkage() && SGVar->hasCommonLinkage()) { in linkIfNeeded() 369 unsigned Align = std::max(DGVar->getAlignment(), SGVar->getAlignment()); in linkIfNeeded() 370 SGVar->setAlignment(Align); in linkIfNeeded()
|
D | IRMover.cpp | 475 GlobalVariable *copyGlobalVariableProto(const GlobalVariable *SGVar); 582 GlobalVariable *IRLinker::copyGlobalVariableProto(const GlobalVariable *SGVar) { in copyGlobalVariableProto() argument 587 new GlobalVariable(DstM, TypeMap.get(SGVar->getValueType()), in copyGlobalVariableProto() 588 SGVar->isConstant(), GlobalValue::ExternalLinkage, in copyGlobalVariableProto() 589 /*init*/ nullptr, SGVar->getName(), in copyGlobalVariableProto() 590 /*insertbefore*/ nullptr, SGVar->getThreadLocalMode(), in copyGlobalVariableProto() 591 SGVar->getType()->getAddressSpace()); in copyGlobalVariableProto() 592 NewDGV->setAlignment(SGVar->getAlignment()); in copyGlobalVariableProto() 618 if (auto *SGVar = dyn_cast<GlobalVariable>(SGV)) { in copyGlobalValueProto() local 619 NewGV = copyGlobalVariableProto(SGVar); in copyGlobalValueProto()
|