Lines Matching refs:Ext

3491       Instruction *Ext, TypePromotionTransaction &TPT,
3505 static Value *promoteOperandForOther(Instruction *Ext,
3515 Instruction *Ext, TypePromotionTransaction &TPT, in signExtendOperandForOther() argument
3519 return promoteOperandForOther(Ext, TPT, PromotedInsts, CreatedInstsCost, in signExtendOperandForOther()
3525 Instruction *Ext, TypePromotionTransaction &TPT, in zeroExtendOperandForOther() argument
3529 return promoteOperandForOther(Ext, TPT, PromotedInsts, CreatedInstsCost, in zeroExtendOperandForOther()
3535 using Action = Value *(*)(Instruction *Ext, TypePromotionTransaction &TPT,
3551 static Action getAction(Instruction *Ext, const SetOfInstrs &InsertedInsts,
3663 Instruction *Ext, const SetOfInstrs &InsertedInsts, in getAction() argument
3665 assert((isa<SExtInst>(Ext) || isa<ZExtInst>(Ext)) && in getAction()
3667 Instruction *ExtOpnd = dyn_cast<Instruction>(Ext->getOperand(0)); in getAction()
3668 Type *ExtTy = Ext->getType(); in getAction()
3669 bool IsSExt = isa<SExtInst>(Ext); in getAction()
3744 Instruction *Ext, TypePromotionTransaction &TPT, in promoteOperandForOther() argument
3751 Instruction *ExtOpnd = cast<Instruction>(Ext->getOperand(0)); in promoteOperandForOther()
3758 Value *Trunc = TPT.createTrunc(Ext, ExtOpnd->getType()); in promoteOperandForOther()
3769 TPT.setOperand(Ext, 0, ExtOpnd); in promoteOperandForOther()
3781 TPT.mutateType(ExtOpnd, Ext->getType()); in promoteOperandForOther()
3783 TPT.replaceAllUsesWith(Ext, ExtOpnd); in promoteOperandForOther()
3785 Instruction *ExtForOpnd = Ext; in promoteOperandForOther()
3791 if (ExtOpnd->getOperand(OpIdx)->getType() == Ext->getType() || in promoteOperandForOther()
3800 unsigned BitWidth = Ext->getType()->getIntegerBitWidth(); in promoteOperandForOther()
3803 TPT.setOperand(ExtOpnd, OpIdx, ConstantInt::get(Ext->getType(), CstVal)); in promoteOperandForOther()
3809 TPT.setOperand(ExtOpnd, OpIdx, UndefValue::get(Ext->getType())); in promoteOperandForOther()
3818 Value *ValForExtOpnd = IsSExt ? TPT.createSExt(Ext, Opnd, Ext->getType()) in promoteOperandForOther()
3819 : TPT.createZExt(Ext, Opnd, Ext->getType()); in promoteOperandForOther()
3837 if (ExtForOpnd == Ext) { in promoteOperandForOther()
3839 TPT.eraseInstruction(Ext); in promoteOperandForOther()
4083 Instruction *Ext = dyn_cast<Instruction>(AddrInst); in matchOperationAddr() local
4084 if (!Ext) in matchOperationAddr()
4090 TypePromotionHelper::getAction(Ext, InsertedInsts, TLI, PromotedInsts); in matchOperationAddr()
4097 unsigned ExtCost = !TLI.isExtFree(Ext); in matchOperationAddr()
4099 TPH(Ext, TPT, PromotedInsts, CreatedInstsCost, nullptr, nullptr, TLI); in matchOperationAddr()