Lines Matching refs:BaseGV
412 GlobalVariable *BaseGV = dyn_cast<GlobalVariable>(ConstExpr->getOperand(0)); in collectConstantCandidates() local
413 if (!BaseGV) in collectConstantCandidates()
417 PointerType *GVPtrTy = cast<PointerType>(BaseGV->getType()); in collectConstantCandidates()
442 ConstCandVecType &ExprCandVec = ConstGEPCandMap[BaseGV]; in collectConstantCandidates()
667 void ConstantHoistingPass::findBaseConstants(GlobalVariable *BaseGV) { in findBaseConstants() argument
670 ConstCandVecType &ConstCandVec = BaseGV ? in findBaseConstants()
671 ConstGEPCandMap[BaseGV] : ConstIntCandVec; in findBaseConstants()
672 ConstInfoVecType &ConstInfoVec = BaseGV ? in findBaseConstants()
673 ConstGEPInfoMap[BaseGV] : ConstIntInfoVec; in findBaseConstants()
848 bool ConstantHoistingPass::emitBaseConstants(GlobalVariable *BaseGV) { in emitBaseConstants() argument
851 BaseGV ? ConstGEPInfoMap[BaseGV] : ConstIntInfoVec; in emitBaseConstants()
893 assert(BaseGV && "A base constant expression must have an base GV"); in emitBaseConstants()