Home | History | Annotate | Download | only in src

Lines Matching refs:Func

76 bool ASanInstrumentation::isInstrumentable(Cfg *Func) {
77 std::string FuncName = Func->getFunctionName().toStringOrEmpty();
223 Cfg *Func = Context.getNode()->getCfg();
247 auto *LastRzVar = Func->makeVariable(IceType_i32);
248 LastRzVar->setName(Func, nextRzName());
252 InstAlloca::create(Func, LastRzVar, ByteCount, Alignment));
256 FirstShadowLocVar = Func->makeVariable(IceType_i32);
257 FirstShadowLocVar->setName(Func, "firstShadowLoc");
258 auto *ShadowIndexVar = Func->makeVariable(IceType_i32);
259 ShadowIndexVar->setName(Func, "shadowIndex");
267 InstArithmetic::create(Func, InstArithmetic::Lshr, ShadowIndexVar,
270 InstArithmetic::create(Func, InstArithmetic::Add, FirstShadowLocVar,
283 InstAlloca::create(Func, Dest, ByteCount, Alignment));
330 auto *PoisonAddrVar = Func->makeVariable(IceType_i32);
331 Context.insert(InstArithmetic::create(Func, InstArithmetic::Add,
334 Context.insert(InstStore::create(Func, PoisonConst, PoisonAddrVar));
336 ->emplace_back(InstStore::create(Func, ZeroConst, PoisonAddrVar));
374 Constant *Func =
377 typeWidthInBytes(Instr->getDest()->getType()), Func);
390 Constant *Func =
393 typeWidthInBytes(Instr->getData()->getType()), Func);
461 Cfg *Func = Context.getNode()->getCfg();
465 InstStore::create(Func, RzUnpoison->getData(), RzUnpoison->getAddr()));
471 void ASanInstrumentation::instrumentStart(Cfg *Func) {
477 auto *Call = InstCall::create(Func, NumArgs, Void, ShadowMemInit, NoTailCall);
478 Func->getEntryNode()->getInsts().push_front(Call);