Home | History | Annotate | Download | only in AArch64

Lines Matching defs:Cst

245 /// Check if the given use (Instruction + OpIdx) of Cst should be converted into
246 /// a load of a global variable initialized with Cst.
250 static bool shouldConvertUse(const Constant *Cst, const Instruction *Instr,
302 /// Check if the given Cst should be converted into
303 /// a load of a global variable initialized with Cst.
316 static bool shouldConvertImpl(const Constant *Cst) {
317 if (isa<const UndefValue>(Cst))
322 // E.g., when the type of Cst require more instructions than the
324 // instances of Cst.
327 if (Cst->isZeroValue())
334 if (Cst->getType()->isVectorTy())
336 return isConstantUsingVectorTy(Cst->getType());
543 Constant *Cst = dyn_cast<Constant>(U);
547 if (!Cst || isa<GlobalValue>(Cst) || isa<ConstantExpr>(Cst))
551 if (!shouldConvert(*Cst, PromotionCache))
556 if (!shouldConvertUse(Cst, &I, OpNo))
559 Updates.emplace_back(Cst, &I, OpNo);