Lines Matching refs:BaseGV
396 GlobalVariable *BaseGV = dyn_cast<GlobalVariable>(ConstExpr->getOperand(0)); in collectConstantCandidates() local
397 if (!BaseGV) in collectConstantCandidates()
401 PointerType *GVPtrTy = dyn_cast<PointerType>(BaseGV->getType()); in collectConstantCandidates()
416 ConstCandVecType &ExprCandVec = ConstGEPCandMap[BaseGV]; in collectConstantCandidates()
634 void ConstantHoistingPass::findBaseConstants(GlobalVariable *BaseGV) { in findBaseConstants() argument
637 ConstCandVecType &ConstCandVec = BaseGV ? in findBaseConstants()
638 ConstGEPCandMap[BaseGV] : ConstIntCandVec; in findBaseConstants()
639 ConstInfoVecType &ConstInfoVec = BaseGV ? in findBaseConstants()
640 ConstGEPInfoMap[BaseGV] : ConstIntInfoVec; in findBaseConstants()
821 bool ConstantHoistingPass::emitBaseConstants(GlobalVariable *BaseGV) { in emitBaseConstants() argument
824 BaseGV ? ConstGEPInfoMap[BaseGV] : ConstIntInfoVec; in emitBaseConstants()
862 assert(BaseGV && "A base constant expression must have an base GV"); in emitBaseConstants()