Lines Matching refs:BaseGV
407 GlobalVariable *BaseGV = dyn_cast<GlobalVariable>(ConstExpr->getOperand(0)); in collectConstantCandidates() local
408 if (!BaseGV) in collectConstantCandidates()
412 PointerType *GVPtrTy = cast<PointerType>(BaseGV->getType()); in collectConstantCandidates()
437 ConstCandVecType &ExprCandVec = ConstGEPCandMap[BaseGV]; in collectConstantCandidates()
662 void ConstantHoistingPass::findBaseConstants(GlobalVariable *BaseGV) { in findBaseConstants() argument
665 ConstCandVecType &ConstCandVec = BaseGV ? in findBaseConstants()
666 ConstGEPCandMap[BaseGV] : ConstIntCandVec; in findBaseConstants()
667 ConstInfoVecType &ConstInfoVec = BaseGV ? in findBaseConstants()
668 ConstGEPInfoMap[BaseGV] : ConstIntInfoVec; in findBaseConstants()
840 bool ConstantHoistingPass::emitBaseConstants(GlobalVariable *BaseGV) { in emitBaseConstants() argument
843 BaseGV ? ConstGEPInfoMap[BaseGV] : ConstIntInfoVec; in emitBaseConstants()
885 assert(BaseGV && "A base constant expression must have an base GV"); in emitBaseConstants()