Lines Matching refs:BaseGV
409 GlobalVariable *BaseGV = dyn_cast<GlobalVariable>(ConstExpr->getOperand(0)); in collectConstantCandidates() local
410 if (!BaseGV) in collectConstantCandidates()
414 PointerType *GVPtrTy = cast<PointerType>(BaseGV->getType()); in collectConstantCandidates()
439 ConstCandVecType &ExprCandVec = ConstGEPCandMap[BaseGV]; in collectConstantCandidates()
666 void ConstantHoistingPass::findBaseConstants(GlobalVariable *BaseGV) { in findBaseConstants() argument
669 ConstCandVecType &ConstCandVec = BaseGV ? in findBaseConstants()
670 ConstGEPCandMap[BaseGV] : ConstIntCandVec; in findBaseConstants()
671 ConstInfoVecType &ConstInfoVec = BaseGV ? in findBaseConstants()
672 ConstGEPInfoMap[BaseGV] : ConstIntInfoVec; in findBaseConstants()
852 bool ConstantHoistingPass::emitBaseConstants(GlobalVariable *BaseGV) { in emitBaseConstants() argument
855 BaseGV ? ConstGEPInfoMap[BaseGV] : ConstIntInfoVec; in emitBaseConstants()
895 assert(BaseGV && "A base constant expression must have an base GV"); in emitBaseConstants()