Lines Matching refs:Mat
726 static bool updateOperand(Instruction *Inst, unsigned Idx, Instruction *Mat) { in updateOperand() argument
744 Inst->setOperand(Idx, Mat); in updateOperand()
752 Instruction *Mat = Base; in emitBaseConstants() local
761 Mat = GetElementPtrInst::Create(Type::getInt8Ty(*Ctx), Base, Adj->Offset, in emitBaseConstants()
764 Mat = new BitCastInst(Mat, Adj->Ty, "mat_bitcast", Adj->MatInsertPt); in emitBaseConstants()
767 Mat = BinaryOperator::Create(Instruction::Add, Base, Adj->Offset, in emitBaseConstants()
772 << Mat->getParent()->getName() << '\n' in emitBaseConstants()
773 << *Mat << '\n'); in emitBaseConstants()
774 Mat->setDebugLoc(Adj->User.Inst->getDebugLoc()); in emitBaseConstants()
781 if (!updateOperand(Adj->User.Inst, Adj->User.OpndIdx, Mat) && Adj->Offset) in emitBaseConstants()
782 Mat->eraseFromParent(); in emitBaseConstants()
795 ClonedCastInst->setOperand(0, Mat); in emitBaseConstants()
813 updateOperand(Adj->User.Inst, Adj->User.OpndIdx, Mat); in emitBaseConstants()
820 ConstExprInst->setOperand(0, Mat); in emitBaseConstants()
831 Mat->eraseFromParent(); in emitBaseConstants()