Lines Matching refs:Ext
2797 Instruction *Ext, TypePromotionTransaction &TPT,
2811 static Value *promoteOperandForOther(Instruction *Ext,
2821 Instruction *Ext, TypePromotionTransaction &TPT, in signExtendOperandForOther() argument
2825 return promoteOperandForOther(Ext, TPT, PromotedInsts, CreatedInstsCost, in signExtendOperandForOther()
2831 Instruction *Ext, TypePromotionTransaction &TPT, in zeroExtendOperandForOther() argument
2835 return promoteOperandForOther(Ext, TPT, PromotedInsts, CreatedInstsCost, in zeroExtendOperandForOther()
2841 typedef Value *(*Action)(Instruction *Ext, TypePromotionTransaction &TPT,
2856 static Action getAction(Instruction *Ext, const SetOfInstrs &InsertedInsts,
2926 Instruction *Ext, const SetOfInstrs &InsertedInsts, in getAction() argument
2928 assert((isa<SExtInst>(Ext) || isa<ZExtInst>(Ext)) && in getAction()
2930 Instruction *ExtOpnd = dyn_cast<Instruction>(Ext->getOperand(0)); in getAction()
2931 Type *ExtTy = Ext->getType(); in getAction()
2932 bool IsSExt = isa<SExtInst>(Ext); in getAction()
3007 Instruction *Ext, TypePromotionTransaction &TPT, in promoteOperandForOther() argument
3014 Instruction *ExtOpnd = cast<Instruction>(Ext->getOperand(0)); in promoteOperandForOther()
3021 Value *Trunc = TPT.createTrunc(Ext, ExtOpnd->getType()); in promoteOperandForOther()
3033 TPT.setOperand(Ext, 0, ExtOpnd); in promoteOperandForOther()
3046 TPT.mutateType(ExtOpnd, Ext->getType()); in promoteOperandForOther()
3048 TPT.replaceAllUsesWith(Ext, ExtOpnd); in promoteOperandForOther()
3050 Instruction *ExtForOpnd = Ext; in promoteOperandForOther()
3056 if (ExtOpnd->getOperand(OpIdx)->getType() == Ext->getType() || in promoteOperandForOther()
3065 unsigned BitWidth = Ext->getType()->getIntegerBitWidth(); in promoteOperandForOther()
3068 TPT.setOperand(ExtOpnd, OpIdx, ConstantInt::get(Ext->getType(), CstVal)); in promoteOperandForOther()
3074 TPT.setOperand(ExtOpnd, OpIdx, UndefValue::get(Ext->getType())); in promoteOperandForOther()
3083 Value *ValForExtOpnd = IsSExt ? TPT.createSExt(Ext, Opnd, Ext->getType()) in promoteOperandForOther()
3084 : TPT.createZExt(Ext, Opnd, Ext->getType()); in promoteOperandForOther()
3102 if (ExtForOpnd == Ext) { in promoteOperandForOther()
3104 TPT.eraseInstruction(Ext); in promoteOperandForOther()
3319 Instruction *Ext = dyn_cast<Instruction>(AddrInst); in matchOperationAddr() local
3320 if (!Ext) in matchOperationAddr()
3326 TypePromotionHelper::getAction(Ext, InsertedInsts, TLI, PromotedInsts); in matchOperationAddr()
3333 unsigned ExtCost = !TLI.isExtFree(Ext); in matchOperationAddr()
3335 TPH(Ext, TPT, PromotedInsts, CreatedInstsCost, nullptr, nullptr, TLI); in matchOperationAddr()