Lines Matching refs:Opnd
3114 TruncBuilder(Instruction *Opnd, Type *Ty) : TypePromotionAction(Opnd) { in TruncBuilder() argument
3115 IRBuilder<> Builder(Opnd); in TruncBuilder()
3117 Val = Builder.CreateTrunc(Opnd, Ty, "promoted"); in TruncBuilder()
3140 SExtBuilder(Instruction *InsertPt, Value *Opnd, Type *Ty) in SExtBuilder() argument
3143 Val = Builder.CreateSExt(Opnd, Ty, "promoted"); in SExtBuilder()
3166 ZExtBuilder(Instruction *InsertPt, Value *Opnd, Type *Ty) in ZExtBuilder() argument
3170 Val = Builder.CreateZExt(Opnd, Ty, "promoted"); in ZExtBuilder()
3356 Value *createTrunc(Instruction *Opnd, Type *Ty);
3359 Value *createSExt(Instruction *Inst, Value *Opnd, Type *Ty);
3362 Value *createZExt(Instruction *Inst, Value *Opnd, Type *Ty);
3400 Value *TypePromotionTransaction::createTrunc(Instruction *Opnd, Type *Ty) { in createTrunc() argument
3401 std::unique_ptr<TruncBuilder> Ptr(new TruncBuilder(Opnd, Ty)); in createTrunc()
3407 Value *TypePromotionTransaction::createSExt(Instruction *Inst, Value *Opnd, in createSExt() argument
3409 std::unique_ptr<SExtBuilder> Ptr(new SExtBuilder(Inst, Opnd, Ty)); in createSExt()
3415 Value *TypePromotionTransaction::createZExt(Instruction *Inst, Value *Opnd, in createZExt() argument
3417 std::unique_ptr<ZExtBuilder> Ptr(new ZExtBuilder(Inst, Opnd, Ty)); in createZExt()
4400 Instruction *Opnd, bool IsSExt) { in getOrigType() argument
4402 InstrToOrigTy::const_iterator It = PromotedInsts.find(Opnd); in getOrigType()
4586 Instruction *Opnd = dyn_cast<Instruction>(OpndVal); in canGetThrough() local
4587 if (!Opnd) in canGetThrough()
4594 const Type *OpndType = getOrigType(PromotedInsts, Opnd, IsSExt); in canGetThrough()
4597 else if ((IsSExt && isa<SExtInst>(Opnd)) || (!IsSExt && isa<ZExtInst>(Opnd))) in canGetThrough()
4598 OpndType = Opnd->getOperand(0)->getType(); in canGetThrough()
4740 Value *Opnd = ExtOpnd->getOperand(OpIdx); in promoteOperandForOther() local
4741 if (const ConstantInt *Cst = dyn_cast<ConstantInt>(Opnd)) { in promoteOperandForOther()
4750 if (isa<UndefValue>(Opnd)) { in promoteOperandForOther()
4758 ? TPT.createSExt(ExtOpnd, Opnd, Ext->getType()) in promoteOperandForOther()
4759 : TPT.createZExt(ExtOpnd, Opnd, Ext->getType()); in promoteOperandForOther()