Home | History | Annotate | Download | only in Instrumentation

Lines Matching refs:AI

67   Function::arg_iterator AI;
71 AI = MainFn->arg_begin(); ++AI;
72 if (AI->getType() != ArgVTy) {
73 Instruction::CastOps opcode = CastInst::getCastOpcode(AI, false, ArgVTy,
76 CastInst::Create(opcode, AI, ArgVTy, "argv.cast", InitCall));
78 InitCall->setArgOperand(1, AI);
83 AI = MainFn->arg_begin();
86 if (!AI->getType()->isIntegerTy(32)) {
88 if (!AI->use_empty()) {
89 opcode = CastInst::getCastOpcode(InitCall, true, AI->getType(), true);
90 AI->replaceAllUsesWith(
91 CastInst::Create(opcode, InitCall, AI->getType(), "", InsertPos));
93 opcode = CastInst::getCastOpcode(AI, true,
96 CastInst::Create(opcode, AI, Type::getInt32Ty(Context),
99 AI->replaceAllUsesWith(InitCall);
100 InitCall->setArgOperand(0, AI);