Home
last modified time | relevance | path

Searched refs:NewGV (Results 1 – 5 of 5) sorted by relevance

/external/llvm/lib/Linker/
DLinkModules.cpp409 GlobalVariable *NewGV; // New aggregate global in dest module. member
586 GlobalValue *NewGV; in copyGlobalValueProto() local
588 NewGV = copyGlobalVariableProto(TypeMap, DstM, SGVar); in copyGlobalValueProto()
590 NewGV = copyFunctionProto(TypeMap, DstM, SF); in copyGlobalValueProto()
592 NewGV = copyGlobalAliasProto(TypeMap, DstM, cast<GlobalAlias>(SGV)); in copyGlobalValueProto()
593 copyGVAttributes(NewGV, SGV); in copyGlobalValueProto()
594 return NewGV; in copyGlobalValueProto()
911 GlobalVariable *NewGV = new GlobalVariable( in upgradeGlobalArray() local
915 NewGV->copyAttributesFrom(GV); in upgradeGlobalArray()
916 NewGV->takeName(GV); in upgradeGlobalArray()
[all …]
/external/llvm/lib/Target/NVPTX/
DNVPTXGenericToNVVM.cpp88 GlobalVariable *NewGV = new GlobalVariable( in runOnModule() local
93 NewGV->copyAttributesFrom(GV); in runOnModule()
94 GVMap[GV] = NewGV; in runOnModule()
147 GlobalVariable *NewGV = I->second; in runOnModule() local
155 Constant *BitCastNewGV = ConstantExpr::getPointerCast(NewGV, GV->getType()); in runOnModule()
162 NewGV->setName(Name); in runOnModule()
/external/llvm/lib/Target/XCore/
DXCoreLowerThreadLocal.cpp197 GlobalVariable *NewGV = in lowerGlobal() local
217 Builder.CreateInBoundsGEP(NewGV->getValueType(), NewGV, Indices); in lowerGlobal()
222 NewGV->takeName(GV); in lowerGlobal()
/external/llvm/lib/Transforms/IPO/
DGlobalOpt.cpp843 GlobalVariable *NewGV = new GlobalVariable(*GV->getParent(), in OptimizeGlobalAddressOfMalloc() local
858 if (BCI->getType() == NewGV->getType()) { in OptimizeGlobalAddressOfMalloc()
859 BCI->replaceAllUsesWith(NewGV); in OptimizeGlobalAddressOfMalloc()
862 BCI->setOperand(0, NewGV); in OptimizeGlobalAddressOfMalloc()
866 TheBC = new BitCastInst(NewGV, CI->getType(), "newgv", CI); in OptimizeGlobalAddressOfMalloc()
871 Constant *RepValue = NewGV; in OptimizeGlobalAddressOfMalloc()
872 if (NewGV->getType() != GV->getType()->getElementType()) in OptimizeGlobalAddressOfMalloc()
949 ConstantPropUsersOf(NewGV, DL, TLI); in OptimizeGlobalAddressOfMalloc()
950 if (RepValue != NewGV) in OptimizeGlobalAddressOfMalloc()
953 return NewGV; in OptimizeGlobalAddressOfMalloc()
[all …]
/external/llvm/lib/Bitcode/Reader/
DBitcodeReader.cpp2899 GlobalVariable *NewGV = in ParseModule() local
2902 NewGV->setAlignment(Alignment); in ParseModule()
2904 NewGV->setSection(Section); in ParseModule()
2905 NewGV->setVisibility(Visibility); in ParseModule()
2906 NewGV->setUnnamedAddr(UnnamedAddr); in ParseModule()
2909 NewGV->setDLLStorageClass(GetDecodedDLLStorageClass(Record[10])); in ParseModule()
2911 UpgradeDLLImportExportLinkage(NewGV, RawLinkage); in ParseModule()
2913 ValueList.push_back(NewGV); in ParseModule()
2917 GlobalInits.push_back(std::make_pair(NewGV, InitID-1)); in ParseModule()
2922 NewGV->setComdat(ComdatList[ComdatID - 1]); in ParseModule()
[all …]