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()
431 ConstCandVecType &ExprCandVec = ConstGEPCandMap[BaseGV]; in collectConstantCandidates()
658 void ConstantHoistingPass::findBaseConstants(GlobalVariable *BaseGV) { in findBaseConstants() argument
661 ConstCandVecType &ConstCandVec = BaseGV ? in findBaseConstants()
662 ConstGEPCandMap[BaseGV] : ConstIntCandVec; in findBaseConstants()
663 ConstInfoVecType &ConstInfoVec = BaseGV ? in findBaseConstants()
664 ConstGEPInfoMap[BaseGV] : ConstIntInfoVec; in findBaseConstants()
845 bool ConstantHoistingPass::emitBaseConstants(GlobalVariable *BaseGV) { in emitBaseConstants() argument
848 BaseGV ? ConstGEPInfoMap[BaseGV] : ConstIntInfoVec; in emitBaseConstants()
888 assert(BaseGV && "A base constant expression must have an base GV"); in emitBaseConstants()