Lines Matching refs:Mat
723 static bool updateOperand(Instruction *Inst, unsigned Idx, Instruction *Mat) { in updateOperand() argument
741 Inst->setOperand(Idx, Mat); in updateOperand()
751 Instruction *Mat = Base; in emitBaseConstants() local
765 Mat = GetElementPtrInst::Create(Int8PtrTy->getElementType(), Base, in emitBaseConstants()
767 Mat = new BitCastInst(Mat, Ty, "mat_bitcast", InsertionPt); in emitBaseConstants()
770 Mat = BinaryOperator::Create(Instruction::Add, Base, Offset, in emitBaseConstants()
775 << Mat->getParent()->getName() << '\n' in emitBaseConstants()
776 << *Mat << '\n'); in emitBaseConstants()
777 Mat->setDebugLoc(ConstUser.Inst->getDebugLoc()); in emitBaseConstants()
784 if (!updateOperand(ConstUser.Inst, ConstUser.OpndIdx, Mat) && Offset) in emitBaseConstants()
785 Mat->eraseFromParent(); in emitBaseConstants()
798 ClonedCastInst->setOperand(0, Mat); in emitBaseConstants()
816 updateOperand(ConstUser.Inst, ConstUser.OpndIdx, Mat); in emitBaseConstants()
823 ConstExprInst->setOperand(0, Mat); in emitBaseConstants()
836 Mat->eraseFromParent(); in emitBaseConstants()