Lines Matching refs:SExt
947 CallerAttrs.hasAttribute(AttributeSet::ReturnIndex, Attribute::SExt)) in DupRetToEnableTailCallOpts()
1689 static Value *promoteOperandForTruncAndSExt(Instruction *SExt,
1701 static Value *promoteOperandForOther(Instruction *SExt,
1708 typedef Value *(*Action)(Instruction *SExt, TypePromotionTransaction &TPT,
1720 static Action getAction(Instruction *SExt, const SetOfInstrs &InsertedTruncs,
1779 Instruction *SExt, const SetOfInstrs &InsertedTruncs, in getAction() argument
1781 Instruction *SExtOpnd = dyn_cast<Instruction>(SExt->getOperand(0)); in getAction()
1782 Type *SExtTy = SExt->getType(); in getAction()
1809 llvm::Instruction *SExt, TypePromotionTransaction &TPT, in promoteOperandForTruncAndSExt() argument
1813 Instruction *SExtOpnd = cast<Instruction>(SExt->getOperand(0)); in promoteOperandForTruncAndSExt()
1816 TPT.setOperand(SExt, 0, SExtOpnd->getOperand(0)); in promoteOperandForTruncAndSExt()
1824 if (SExt->getType() != SExt->getOperand(0)->getType()) in promoteOperandForTruncAndSExt()
1825 return SExt; in promoteOperandForTruncAndSExt()
1829 Value *NextVal = SExt->getOperand(0); in promoteOperandForTruncAndSExt()
1830 TPT.eraseInstruction(SExt, NextVal); in promoteOperandForTruncAndSExt()
1835 TypePromotionHelper::promoteOperandForOther(Instruction *SExt, in promoteOperandForOther() argument
1841 Instruction *SExtOpnd = cast<Instruction>(SExt->getOperand(0)); in promoteOperandForOther()
1848 Instruction *Trunc = TPT.createTrunc(SExt, SExtOpnd->getType()); in promoteOperandForOther()
1856 TPT.setOperand(SExt, 0, SExtOpnd); in promoteOperandForOther()
1869 TPT.mutateType(SExtOpnd, SExt->getType()); in promoteOperandForOther()
1871 TPT.replaceAllUsesWith(SExt, SExtOpnd); in promoteOperandForOther()
1873 Instruction *SExtForOpnd = SExt; in promoteOperandForOther()
1879 if (SExtOpnd->getOperand(OpIdx)->getType() == SExt->getType() || in promoteOperandForOther()
1890 ConstantInt::getSigned(SExt->getType(), Cst->getSExtValue())); in promoteOperandForOther()
1896 TPT.setOperand(SExtOpnd, OpIdx, UndefValue::get(SExt->getType())); in promoteOperandForOther()
1905 SExtForOpnd = TPT.createSExt(SExt, Opnd, SExt->getType()); in promoteOperandForOther()
1917 if (SExtForOpnd == SExt) { in promoteOperandForOther()
1919 TPT.eraseInstruction(SExt); in promoteOperandForOther()
2132 case Instruction::SExt: { in MatchOperationAddr()
2134 Instruction *SExt = cast<Instruction>(AddrInst); in MatchOperationAddr() local
2137 SExt, InsertedTruncs, TLI, PromotedInsts); in MatchOperationAddr()
2144 Value *PromotedOperand = TPH(SExt, TPT, PromotedInsts, CreatedInsts); in MatchOperationAddr()