Lines Matching defs:PromotedInsts
335 InstrToOrigTy PromotedInsts;
384 PromotedInsts.clear();
3758 InstrToOrigTy &PromotedInsts;
3781 const SetOfInstrs &InsertedInsts, InstrToOrigTy &PromotedInsts,
3788 InsertedInsts(InsertedInsts), PromotedInsts(PromotedInsts), TPT(TPT),
3799 /// \p PromotedInsts maps the instructions to their type before promotion.
3807 InstrToOrigTy &PromotedInsts, TypePromotionTransaction &TPT,
3814 InsertedInsts, PromotedInsts, TPT,
4663 /// \p PromotedInsts and record the type of extension we have seen.
4664 static void addPromotedInst(InstrToOrigTy &PromotedInsts,
4667 InstrToOrigTy::iterator It = PromotedInsts.find(ExtOpnd);
4668 if (It != PromotedInsts.end()) {
4670 // PromotedInsts[ExtOpnd] is still correct.
4679 PromotedInsts[ExtOpnd] = TypeIsSExt(ExtOpnd->getType(), ExtTy);
4686 static const Type *getOrigType(const InstrToOrigTy &PromotedInsts,
4689 InstrToOrigTy::const_iterator It = PromotedInsts.find(Opnd);
4690 if (It != PromotedInsts.end() && It->second.getInt() == ExtTy)
4705 /// \p PromotedInsts maps the instructions to their type before promotion.
4707 const InstrToOrigTy &PromotedInsts, bool IsSExt);
4717 /// \p PromotedInsts maps the instructions to their type before promotion.
4726 InstrToOrigTy &PromotedInsts, unsigned &CreatedInstsCost,
4732 /// \p PromotedInsts maps the instructions to their type before promotion.
4741 InstrToOrigTy &PromotedInsts,
4750 InstrToOrigTy &PromotedInsts, unsigned &CreatedInstsCost,
4753 return promoteOperandForOther(Ext, TPT, PromotedInsts, CreatedInstsCost,
4760 InstrToOrigTy &PromotedInsts, unsigned &CreatedInstsCost,
4763 return promoteOperandForOther(Ext, TPT, PromotedInsts, CreatedInstsCost,
4770 InstrToOrigTy &PromotedInsts,
4784 /// \p PromotedInsts maps the instructions to their type before promotion.
4787 const InstrToOrigTy &PromotedInsts);
4794 const InstrToOrigTy &PromotedInsts,
4881 const Type *OpndType = getOrigType(PromotedInsts, Opnd, IsSExt);
4896 const TargetLowering &TLI, const InstrToOrigTy &PromotedInsts) {
4905 if (!ExtOpnd || !canGetThrough(ExtOpnd, ExtTy, PromotedInsts, IsSExt))
4929 InstrToOrigTy &PromotedInsts, unsigned &CreatedInstsCost,
4977 InstrToOrigTy &PromotedInsts, unsigned &CreatedInstsCost,
5011 addPromotedInst(PromotedInsts, ExtOpnd, IsSExt);
5324 TypePromotionHelper::getAction(Ext, InsertedInsts, TLI, PromotedInsts);
5333 TPH(Ext, TPT, PromotedInsts, CreatedInstsCost, nullptr, nullptr, TLI);
5690 InsertedInsts, PromotedInsts, TPT,
5803 *TRI, InsertedInsts, PromotedInsts, TPT, LargeOffsetGEP, OptSize, PSI,
6392 TypePromotionHelper::getAction(I, InsertedInsts, *TLI, PromotedInsts);
6407 Value *PromotedVal = TPH(I, TPT, PromotedInsts, NewCreatedInstsCost,