Lines Matching refs:Ext

4108       Instruction *Ext, TypePromotionTransaction &TPT,
4122 static Value *promoteOperandForOther(Instruction *Ext,
4132 Instruction *Ext, TypePromotionTransaction &TPT, in signExtendOperandForOther() argument
4136 return promoteOperandForOther(Ext, TPT, PromotedInsts, CreatedInstsCost, in signExtendOperandForOther()
4142 Instruction *Ext, TypePromotionTransaction &TPT, in zeroExtendOperandForOther() argument
4146 return promoteOperandForOther(Ext, TPT, PromotedInsts, CreatedInstsCost, in zeroExtendOperandForOther()
4152 using Action = Value *(*)(Instruction *Ext, TypePromotionTransaction &TPT,
4168 static Action getAction(Instruction *Ext, const SetOfInstrs &InsertedInsts,
4278 Instruction *Ext, const SetOfInstrs &InsertedInsts, in getAction() argument
4280 assert((isa<SExtInst>(Ext) || isa<ZExtInst>(Ext)) && in getAction()
4282 Instruction *ExtOpnd = dyn_cast<Instruction>(Ext->getOperand(0)); in getAction()
4283 Type *ExtTy = Ext->getType(); in getAction()
4284 bool IsSExt = isa<SExtInst>(Ext); in getAction()
4359 Instruction *Ext, TypePromotionTransaction &TPT, in promoteOperandForOther() argument
4366 Instruction *ExtOpnd = cast<Instruction>(Ext->getOperand(0)); in promoteOperandForOther()
4373 Value *Trunc = TPT.createTrunc(Ext, ExtOpnd->getType()); in promoteOperandForOther()
4384 TPT.setOperand(Ext, 0, ExtOpnd); in promoteOperandForOther()
4396 TPT.mutateType(ExtOpnd, Ext->getType()); in promoteOperandForOther()
4398 TPT.replaceAllUsesWith(Ext, ExtOpnd); in promoteOperandForOther()
4400 Instruction *ExtForOpnd = Ext; in promoteOperandForOther()
4406 if (ExtOpnd->getOperand(OpIdx)->getType() == Ext->getType() || in promoteOperandForOther()
4415 unsigned BitWidth = Ext->getType()->getIntegerBitWidth(); in promoteOperandForOther()
4418 TPT.setOperand(ExtOpnd, OpIdx, ConstantInt::get(Ext->getType(), CstVal)); in promoteOperandForOther()
4424 TPT.setOperand(ExtOpnd, OpIdx, UndefValue::get(Ext->getType())); in promoteOperandForOther()
4433 Value *ValForExtOpnd = IsSExt ? TPT.createSExt(Ext, Opnd, Ext->getType()) in promoteOperandForOther()
4434 : TPT.createZExt(Ext, Opnd, Ext->getType()); in promoteOperandForOther()
4452 if (ExtForOpnd == Ext) { in promoteOperandForOther()
4454 TPT.eraseInstruction(Ext); in promoteOperandForOther()
4706 Instruction *Ext = dyn_cast<Instruction>(AddrInst); in matchOperationAddr() local
4707 if (!Ext) in matchOperationAddr()
4713 TypePromotionHelper::getAction(Ext, InsertedInsts, TLI, PromotedInsts); in matchOperationAddr()
4720 unsigned ExtCost = !TLI.isExtFree(Ext); in matchOperationAddr()
4722 TPH(Ext, TPT, PromotedInsts, CreatedInstsCost, nullptr, nullptr, TLI); in matchOperationAddr()