Lines Matching refs:ExtOpnd

4378                               Instruction *ExtOpnd, bool IsSExt) {  in addPromotedInst()  argument
4380 InstrToOrigTy::iterator It = PromotedInsts.find(ExtOpnd); in addPromotedInst()
4392 PromotedInsts[ExtOpnd] = TypeIsSExt(ExtOpnd->getType(), ExtTy); in addPromotedInst()
4612 Instruction *ExtOpnd = dyn_cast<Instruction>(Ext->getOperand(0)); in getAction() local
4618 if (!ExtOpnd || !canGetThrough(ExtOpnd, ExtTy, PromotedInsts, IsSExt)) in getAction()
4624 if (isa<TruncInst>(ExtOpnd) && InsertedInsts.count(ExtOpnd)) in getAction()
4629 if (isa<SExtInst>(ExtOpnd) || isa<TruncInst>(ExtOpnd) || in getAction()
4630 isa<ZExtInst>(ExtOpnd)) in getAction()
4635 if (!ExtOpnd->hasOneUse() && !TLI.isTruncateFree(ExtTy, ExtOpnd->getType())) in getAction()
4696 Instruction *ExtOpnd = cast<Instruction>(Ext->getOperand(0)); in promoteOperandForOther() local
4698 if (!ExtOpnd->hasOneUse()) { in promoteOperandForOther()
4703 Value *Trunc = TPT.createTrunc(Ext, ExtOpnd->getType()); in promoteOperandForOther()
4706 ITrunc->moveAfter(ExtOpnd); in promoteOperandForOther()
4711 TPT.replaceAllUsesWith(ExtOpnd, Trunc); in promoteOperandForOther()
4714 TPT.setOperand(Ext, 0, ExtOpnd); in promoteOperandForOther()
4724 addPromotedInst(PromotedInsts, ExtOpnd, IsSExt); in promoteOperandForOther()
4726 TPT.mutateType(ExtOpnd, Ext->getType()); in promoteOperandForOther()
4728 TPT.replaceAllUsesWith(Ext, ExtOpnd); in promoteOperandForOther()
4731 for (int OpIdx = 0, EndOpIdx = ExtOpnd->getNumOperands(); OpIdx != EndOpIdx; in promoteOperandForOther()
4733 LLVM_DEBUG(dbgs() << "Operand:\n" << *(ExtOpnd->getOperand(OpIdx)) << '\n'); in promoteOperandForOther()
4734 if (ExtOpnd->getOperand(OpIdx)->getType() == Ext->getType() || in promoteOperandForOther()
4735 !shouldExtOperand(ExtOpnd, OpIdx)) { in promoteOperandForOther()
4740 Value *Opnd = ExtOpnd->getOperand(OpIdx); in promoteOperandForOther()
4746 TPT.setOperand(ExtOpnd, OpIdx, ConstantInt::get(Ext->getType(), CstVal)); in promoteOperandForOther()
4752 TPT.setOperand(ExtOpnd, OpIdx, UndefValue::get(Ext->getType())); in promoteOperandForOther()
4758 ? TPT.createSExt(ExtOpnd, Opnd, Ext->getType()) in promoteOperandForOther()
4759 : TPT.createZExt(ExtOpnd, Opnd, Ext->getType()); in promoteOperandForOther()
4760 TPT.setOperand(ExtOpnd, OpIdx, ValForExtOpnd); in promoteOperandForOther()
4772 return ExtOpnd; in promoteOperandForOther()