Lines Matching defs:BaseGV
410 GlobalVariable *BaseGV = dyn_cast<GlobalVariable>(ConstExpr->getOperand(0));
411 if (!BaseGV)
415 PointerType *GVPtrTy = cast<PointerType>(BaseGV->getType());
440 ConstCandVecType &ExprCandVec = ConstGEPCandMap[BaseGV];
643 void ConstantHoistingPass::findBaseConstants(GlobalVariable *BaseGV) {
644 // If BaseGV is nullptr, find base among candidate constant integers;
645 // Otherwise find base among constant GEPs that share the same BaseGV.
646 ConstCandVecType &ConstCandVec = BaseGV ?
647 ConstGEPCandMap[BaseGV] : ConstIntCandVec;
648 ConstInfoVecType &ConstInfoVec = BaseGV ?
649 ConstGEPInfoMap[BaseGV] : ConstIntInfoVec;
687 /*BaseGV*/nullptr, /*BaseOffset*/Diff.getSExtValue(),
824 bool ConstantHoistingPass::emitBaseConstants(GlobalVariable *BaseGV) {
827 BaseGV ? ConstGEPInfoMap[BaseGV] : ConstIntInfoVec;
869 assert(BaseGV && "A base constant expression must have an base GV");