Lines Matching refs:Opnd
2788 TruncBuilder(Instruction *Opnd, Type *Ty) : TypePromotionAction(Opnd) { in TruncBuilder() argument
2789 IRBuilder<> Builder(Opnd); in TruncBuilder()
2791 Val = Builder.CreateTrunc(Opnd, Ty, "promoted"); in TruncBuilder()
2814 SExtBuilder(Instruction *InsertPt, Value *Opnd, Type *Ty) in SExtBuilder() argument
2817 Val = Builder.CreateSExt(Opnd, Ty, "promoted"); in SExtBuilder()
2840 ZExtBuilder(Instruction *InsertPt, Value *Opnd, Type *Ty) in ZExtBuilder() argument
2844 Val = Builder.CreateZExt(Opnd, Ty, "promoted"); in ZExtBuilder()
3021 Value *createTrunc(Instruction *Opnd, Type *Ty);
3024 Value *createSExt(Instruction *Inst, Value *Opnd, Type *Ty);
3027 Value *createZExt(Instruction *Inst, Value *Opnd, Type *Ty);
3068 Value *TypePromotionTransaction::createTrunc(Instruction *Opnd, in createTrunc() argument
3070 std::unique_ptr<TruncBuilder> Ptr(new TruncBuilder(Opnd, Ty)); in createTrunc()
3077 Value *Opnd, Type *Ty) { in createSExt() argument
3078 std::unique_ptr<SExtBuilder> Ptr(new SExtBuilder(Inst, Opnd, Ty)); in createSExt()
3085 Value *Opnd, Type *Ty) { in createZExt() argument
3086 std::unique_ptr<ZExtBuilder> Ptr(new ZExtBuilder(Inst, Opnd, Ty)); in createZExt()
4069 Instruction *Opnd, in getOrigType() argument
4072 InstrToOrigTy::const_iterator It = PromotedInsts.find(Opnd); in getOrigType()
4256 Instruction *Opnd = dyn_cast<Instruction>(OpndVal); in canGetThrough() local
4257 if (!Opnd) in canGetThrough()
4264 const Type *OpndType = getOrigType(PromotedInsts, Opnd, IsSExt); in canGetThrough()
4267 else if ((IsSExt && isa<SExtInst>(Opnd)) || (!IsSExt && isa<ZExtInst>(Opnd))) in canGetThrough()
4268 OpndType = Opnd->getOperand(0)->getType(); in canGetThrough()
4412 Value *Opnd = ExtOpnd->getOperand(OpIdx); in promoteOperandForOther() local
4413 if (const ConstantInt *Cst = dyn_cast<ConstantInt>(Opnd)) { in promoteOperandForOther()
4422 if (isa<UndefValue>(Opnd)) { in promoteOperandForOther()
4433 Value *ValForExtOpnd = IsSExt ? TPT.createSExt(Ext, Opnd, Ext->getType()) in promoteOperandForOther()
4434 : TPT.createZExt(Ext, Opnd, Ext->getType()); in promoteOperandForOther()
4443 TPT.setOperand(ExtForOpnd, 0, Opnd); in promoteOperandForOther()