Home
last modified time | relevance | path

Searched refs:GCL (Results 1 – 2 of 2) sorted by relevance

/external/llvm/lib/Transforms/Utils/
DCtorUtils.cpp30 void removeGlobalCtors(GlobalVariable *GCL, const BitVector &CtorsToRemove) { in removeGlobalCtors() argument
32 ConstantArray *OldCA = cast<ConstantArray>(GCL->getInitializer()); in removeGlobalCtors()
45 GCL->setInitializer(CA); in removeGlobalCtors()
51 new GlobalVariable(CA->getType(), GCL->isConstant(), GCL->getLinkage(), in removeGlobalCtors()
52 CA, "", GCL->getThreadLocalMode()); in removeGlobalCtors()
53 GCL->getParent()->getGlobalList().insert(GCL->getIterator(), NGV); in removeGlobalCtors()
54 NGV->takeName(GCL); in removeGlobalCtors()
57 if (!GCL->use_empty()) { in removeGlobalCtors()
59 if (V->getType() != GCL->getType()) in removeGlobalCtors()
60 V = ConstantExpr::getBitCast(V, GCL->getType()); in removeGlobalCtors()
[all …]
/external/swiftshader/third_party/LLVM/lib/Transforms/IPO/
DGlobalOpt.cpp77 bool OptimizeGlobalCtorsList(GlobalVariable *&GCL);
1995 static GlobalVariable *InstallGlobalCtors(GlobalVariable *GCL, in InstallGlobalCtors() argument
1999 CSVals[0] = ConstantInt::get(Type::getInt32Ty(GCL->getContext()), 65535); in InstallGlobalCtors()
2004 cast<ArrayType>(GCL->getType()->getElementType())->getElementType()); in InstallGlobalCtors()
2012 Type *FTy = FunctionType::get(Type::getVoidTy(GCL->getContext()), in InstallGlobalCtors()
2016 CSVals[0] = ConstantInt::get(Type::getInt32Ty(GCL->getContext()), in InstallGlobalCtors()
2027 if (CA->getType() == GCL->getInitializer()->getType()) { in InstallGlobalCtors()
2028 GCL->setInitializer(CA); in InstallGlobalCtors()
2029 return GCL; in InstallGlobalCtors()
2033 GlobalVariable *NGV = new GlobalVariable(CA->getType(), GCL->isConstant(), in InstallGlobalCtors()
[all …]