Lines Matching refs:Opnd
2302 TruncBuilder(Instruction *Opnd, Type *Ty) : TypePromotionAction(Opnd) { in TruncBuilder() argument
2303 IRBuilder<> Builder(Opnd); in TruncBuilder()
2304 Val = Builder.CreateTrunc(Opnd, Ty, "promoted"); in TruncBuilder()
2326 SExtBuilder(Instruction *InsertPt, Value *Opnd, Type *Ty) in SExtBuilder() argument
2329 Val = Builder.CreateSExt(Opnd, Ty, "promoted"); in SExtBuilder()
2351 ZExtBuilder(Instruction *InsertPt, Value *Opnd, Type *Ty) in ZExtBuilder() argument
2354 Val = Builder.CreateZExt(Opnd, Ty, "promoted"); in ZExtBuilder()
2494 Value *createTrunc(Instruction *Opnd, Type *Ty);
2496 Value *createSExt(Instruction *Inst, Value *Opnd, Type *Ty);
2498 Value *createZExt(Instruction *Inst, Value *Opnd, Type *Ty);
2530 Value *TypePromotionTransaction::createTrunc(Instruction *Opnd, in createTrunc() argument
2532 std::unique_ptr<TruncBuilder> Ptr(new TruncBuilder(Opnd, Ty)); in createTrunc()
2539 Value *Opnd, Type *Ty) { in createSExt() argument
2540 std::unique_ptr<SExtBuilder> Ptr(new SExtBuilder(Inst, Opnd, Ty)); in createSExt()
2547 Value *Opnd, Type *Ty) { in createZExt() argument
2548 std::unique_ptr<ZExtBuilder> Ptr(new ZExtBuilder(Inst, Opnd, Ty)); in createZExt()
2903 Instruction *Opnd = dyn_cast<Instruction>(OpndVal); in canGetThrough() local
2904 if (!Opnd) in canGetThrough()
2912 InstrToOrigTy::const_iterator It = PromotedInsts.find(Opnd); in canGetThrough()
2915 else if ((IsSExt && isa<SExtInst>(Opnd)) || (!IsSExt && isa<ZExtInst>(Opnd))) in canGetThrough()
2916 OpndType = Opnd->getOperand(0)->getType(); in canGetThrough()
3062 Value *Opnd = ExtOpnd->getOperand(OpIdx); in promoteOperandForOther() local
3063 if (const ConstantInt *Cst = dyn_cast<ConstantInt>(Opnd)) { in promoteOperandForOther()
3072 if (isa<UndefValue>(Opnd)) { in promoteOperandForOther()
3083 Value *ValForExtOpnd = IsSExt ? TPT.createSExt(Ext, Opnd, Ext->getType()) in promoteOperandForOther()
3084 : TPT.createZExt(Ext, Opnd, Ext->getType()); in promoteOperandForOther()
3093 TPT.setOperand(ExtForOpnd, 0, Opnd); in promoteOperandForOther()