Lines Matching defs:BaseGV
412 GlobalVariable *BaseGV = dyn_cast<GlobalVariable>(ConstExpr->getOperand(0));
413 if (!BaseGV)
417 PointerType *GVPtrTy = cast<PointerType>(BaseGV->getType());
442 ConstCandVecType &ExprCandVec = ConstGEPCandMap[BaseGV];
667 void ConstantHoistingPass::findBaseConstants(GlobalVariable *BaseGV) {
668 // If BaseGV is nullptr, find base among candidate constant integers;
669 // Otherwise find base among constant GEPs that share the same BaseGV.
670 ConstCandVecType &ConstCandVec = BaseGV ?
671 ConstGEPCandMap[BaseGV] : ConstIntCandVec;
672 ConstInfoVecType &ConstInfoVec = BaseGV ?
673 ConstGEPInfoMap[BaseGV] : ConstIntInfoVec;
711 /*BaseGV*/nullptr, /*BaseOffset*/Diff.getSExtValue(),
848 bool ConstantHoistingPass::emitBaseConstants(GlobalVariable *BaseGV) {
851 BaseGV ? ConstGEPInfoMap[BaseGV] : ConstIntInfoVec;
893 assert(BaseGV && "A base constant expression must have an base GV");