Lines Matching refs:Mat
731 static bool updateOperand(Instruction *Inst, unsigned Idx, Instruction *Mat) { in updateOperand() argument
749 Inst->setOperand(Idx, Mat); in updateOperand()
759 Instruction *Mat = Base; in emitBaseConstants() local
773 Mat = GetElementPtrInst::Create(Type::getInt8Ty(*Ctx), Base, in emitBaseConstants()
775 Mat = new BitCastInst(Mat, Ty, "mat_bitcast", InsertionPt); in emitBaseConstants()
778 Mat = BinaryOperator::Create(Instruction::Add, Base, Offset, in emitBaseConstants()
783 << Mat->getParent()->getName() << '\n' in emitBaseConstants()
784 << *Mat << '\n'); in emitBaseConstants()
785 Mat->setDebugLoc(ConstUser.Inst->getDebugLoc()); in emitBaseConstants()
792 if (!updateOperand(ConstUser.Inst, ConstUser.OpndIdx, Mat) && Offset) in emitBaseConstants()
793 Mat->eraseFromParent(); in emitBaseConstants()
806 ClonedCastInst->setOperand(0, Mat); in emitBaseConstants()
824 updateOperand(ConstUser.Inst, ConstUser.OpndIdx, Mat); in emitBaseConstants()
832 ConstExprInst->setOperand(0, Mat); in emitBaseConstants()
843 Mat->eraseFromParent(); in emitBaseConstants()