Lines Matching refs:Mat
699 static bool updateOperand(Instruction *Inst, unsigned Idx, Instruction *Mat) { in updateOperand() argument
717 Inst->setOperand(Idx, Mat); in updateOperand()
727 Instruction *Mat = Base; in emitBaseConstants() local
741 Mat = GetElementPtrInst::Create(Int8PtrTy->getElementType(), Base, in emitBaseConstants()
743 Mat = new BitCastInst(Mat, Ty, "mat_bitcast", InsertionPt); in emitBaseConstants()
746 Mat = BinaryOperator::Create(Instruction::Add, Base, Offset, in emitBaseConstants()
751 << Mat->getParent()->getName() << '\n' in emitBaseConstants()
752 << *Mat << '\n'); in emitBaseConstants()
753 Mat->setDebugLoc(ConstUser.Inst->getDebugLoc()); in emitBaseConstants()
760 if (!updateOperand(ConstUser.Inst, ConstUser.OpndIdx, Mat) && Offset) in emitBaseConstants()
761 Mat->eraseFromParent(); in emitBaseConstants()
774 ClonedCastInst->setOperand(0, Mat); in emitBaseConstants()
792 updateOperand(ConstUser.Inst, ConstUser.OpndIdx, Mat); in emitBaseConstants()
799 ConstExprInst->setOperand(0, Mat); in emitBaseConstants()
812 Mat->eraseFromParent(); in emitBaseConstants()