Home
last modified time | relevance | path

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

/external/llvm/lib/Transforms/IPO/
DGlobalOpt.cpp863 GlobalVariable *NewGV = new GlobalVariable(*GV->getParent(), in OptimizeGlobalAddressOfMalloc() local
878 if (BCI->getType() == NewGV->getType()) { in OptimizeGlobalAddressOfMalloc()
879 BCI->replaceAllUsesWith(NewGV); in OptimizeGlobalAddressOfMalloc()
882 BCI->setOperand(0, NewGV); in OptimizeGlobalAddressOfMalloc()
886 TheBC = new BitCastInst(NewGV, CI->getType(), "newgv", CI); in OptimizeGlobalAddressOfMalloc()
891 Constant *RepValue = NewGV; in OptimizeGlobalAddressOfMalloc()
892 if (NewGV->getType() != GV->getType()->getElementType()) in OptimizeGlobalAddressOfMalloc()
965 ConstantPropUsersOf(NewGV); in OptimizeGlobalAddressOfMalloc()
966 if (RepValue != NewGV) in OptimizeGlobalAddressOfMalloc()
969 return NewGV; in OptimizeGlobalAddressOfMalloc()
[all …]
/external/llvm/lib/Linker/
DLinkModules.cpp329 GlobalVariable *NewGV; // New aggregate global in dest module. member
587 AVI.NewGV = NG; in linkAppendingVarProto()
771 ArrayType *NewType = cast<ArrayType>(AVI.NewGV->getType()->getElementType()); in linkAppendingVarInit()
772 AVI.NewGV->setInitializer(ConstantArray::get(NewType, Elements)); in linkAppendingVarInit()
/external/llvm/lib/Bitcode/Reader/
DBitcodeReader.cpp1692 GlobalVariable *NewGV = in ParseModule() local
1695 NewGV->setAlignment(Alignment); in ParseModule()
1697 NewGV->setSection(Section); in ParseModule()
1698 NewGV->setVisibility(Visibility); in ParseModule()
1699 NewGV->setThreadLocal(isThreadLocal); in ParseModule()
1700 NewGV->setUnnamedAddr(UnnamedAddr); in ParseModule()
1702 ValueList.push_back(NewGV); in ParseModule()
1706 GlobalInits.push_back(std::make_pair(NewGV, InitID-1)); in ParseModule()