Lines Matching defs:Mat
702 /// instruction Mat. If the instruction is a PHI node then special
706 /// Mat was used for the update or not.
707 static bool updateOperand(Instruction *Inst, unsigned Idx, Instruction *Mat) {
725 Inst->setOperand(Idx, Mat);
733 Instruction *Mat = Base;
742 Mat = GetElementPtrInst::Create(Type::getInt8Ty(*Ctx), Base, Adj->Offset,
745 Mat = new BitCastInst(Mat, Adj->Ty, "mat_bitcast",
749 Mat =
755 << Mat->getParent()->getName() << '\n'
756 << *Mat << '\n');
757 Mat->setDebugLoc(Adj->User.Inst->getDebugLoc());
764 if (!updateOperand(Adj->User.Inst, Adj->User.OpndIdx, Mat) && Adj->Offset)
765 Mat->eraseFromParent();
778 ClonedCastInst->setOperand(0, Mat);
796 updateOperand(Adj->User.Inst, Adj->User.OpndIdx, Mat);
804 ConstExprInst->setOperand(0, Mat);
815 Mat->eraseFromParent();