Home
last modified time | relevance | path

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

/external/llvm/lib/Transforms/IPO/
DGlobalOpt.cpp1033 GlobalVariable *NewGV = new GlobalVariable(*GV->getParent(), in OptimizeGlobalAddressOfMalloc() local
1048 if (BCI->getType() == NewGV->getType()) { in OptimizeGlobalAddressOfMalloc()
1049 BCI->replaceAllUsesWith(NewGV); in OptimizeGlobalAddressOfMalloc()
1052 BCI->setOperand(0, NewGV); in OptimizeGlobalAddressOfMalloc()
1056 TheBC = new BitCastInst(NewGV, CI->getType(), "newgv", CI); in OptimizeGlobalAddressOfMalloc()
1061 Constant *RepValue = NewGV; in OptimizeGlobalAddressOfMalloc()
1062 if (NewGV->getType() != GV->getType()->getElementType()) in OptimizeGlobalAddressOfMalloc()
1139 ConstantPropUsersOf(NewGV, TD, TLI); in OptimizeGlobalAddressOfMalloc()
1140 if (RepValue != NewGV) in OptimizeGlobalAddressOfMalloc()
1143 return NewGV; in OptimizeGlobalAddressOfMalloc()
[all …]
/external/llvm/lib/Linker/
DLinkModules.cpp364 GlobalVariable *NewGV; // New aggregate global in dest module. member
695 AVI.NewGV = NG; in linkAppendingVarProto()
898 ArrayType *NewType = cast<ArrayType>(AVI.NewGV->getType()->getElementType()); in linkAppendingVarInit()
899 AVI.NewGV->setInitializer(ConstantArray::get(NewType, Elements)); in linkAppendingVarInit()
/external/llvm/lib/Bitcode/Reader/
DBitcodeReader.cpp1594 GlobalVariable *NewGV = in ParseModule() local
1597 NewGV->setAlignment(Alignment); in ParseModule()
1599 NewGV->setSection(Section); in ParseModule()
1600 NewGV->setVisibility(Visibility); in ParseModule()
1601 NewGV->setUnnamedAddr(UnnamedAddr); in ParseModule()
1603 ValueList.push_back(NewGV); in ParseModule()
1607 GlobalInits.push_back(std::make_pair(NewGV, InitID-1)); in ParseModule()